dpuwov1487 2016-01-01 00:44
浏览 50

有没有办法使用查询获取所有谷歌数据存储“KIND”的列表

I would like to get a list of KINDS from my google app engine datastore using queries (GQL maybe?). For example the way one would simply show tables of a database.

I have looked at a similar question (How to list kinds in datastore?), however it does not solve my problem as it is python specific.

I am currently using a GDS library in PHP (https://github.com/tomwalder/php-gds) that helps me fetch data from GDS if I know the Entity name using "SELECT * FROM Kind" GQL query.

I am currently in a situation where I may not know the name of the Entity KIND which I need to fetch data from hence the need to get the list of Entity KINDS which I can then look through and confirm if the entity exists, then run my select query.

Any pointers would be greatly appreciated.

  • 写回答

2条回答 默认 最新

  • duanbozhong9689 2016-01-01 02:32
    关注

    You can query them Using the metadata objects of ndb.

    https://cloud.google.com/appengine/docs/python/ndb/metadata#get_kinds

    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效