Create entity using datastore viewer Google App Engine

人走茶凉 提交于 2019-12-01 03:59:54

问题


I would like to create an entity in my datastore from the admin console on google app engine.

To do this, I read I must clicked on the tab "create" in the datastore viewer BUT I don't have this link. I have just the "query" tab and as I have no data, nothing appears.

How can I create an entity from the admin console on google app engine?


回答1:


App Engine will only let you create new entities for a Kind that has already been defined. If you haven't ever saved anything to the datastore, your datastore is a blank slate, and you won't be able to query or create in it.

If you don't want to deploy code in order to write your first entities to the datastore, you can enable the interactive console in production, and write code that generates a model, populates, and saves it. Once you've done that, your Create link should appear.




回答2:


Check the permissions section maybe you only have the Viewer role which doesn't allow you to create entities.

BTW, the create link looks like this:



来源:https://stackoverflow.com/questions/11620094/create-entity-using-datastore-viewer-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!