DAOCLOUD
推荐学习书目
› Python Cookbook
› Using Google App Engine
推荐下载
› Latest Google App Engine SDK
其他兼容技术
› AppScale
nttdocomo

GAE下如何获取当前应用下的所有model?

  •  
  •   nttdocomo · Dec 13, 2011 · 5845 views
    This topic created in 5449 days ago, the information mentioned may be changed or developed.
    如题?有现成的方法吗?没有的话我自己写一个了!
    2 replies  •  1970-01-01 08:00:00 +08:00
    keakon
    keakon
    Dec 13, 2011
    1
    用这个API,不过不是实时更新的
    https://code.google.com/appengine/docs/python/datastore/stats.html

    from google.appengine.ext.db import stats

    for kind in stats.KindStat.all():
    print kind.kind_name
    nttdocomo
    nttdocomo
    OP
    Dec 14, 2011
    2
    不过这个方法官方说会比一般的方法使用的限额要高。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2663 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:30 · PVG 18:30 · LAX 02:30 · JFK 05:30
    ♥ Do have faith in what you're doing.