Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create entity using datastore viewer Google App Engine

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?

like image 314
Kiva Avatar asked Jul 23 '12 20:07

Kiva


People also ask

How do I create a Datastore entity?

In Java, you create a new entity by constructing an instance of class Entity , supplying the entity's kind as an argument to the Entity() constructor. After populating the entity's properties if necessary, you save it to the datastore by passing it as an argument to the DatastoreService. put() method.

Is Datastore deprecated?

Because Cloud Datastore API v1 is released, Cloud Datastore API v1beta3 is now deprecated.

What is the Datastore used by Google App Engine?

Datastore is a NoSQL document database built for automatic scaling, high performance, and ease of application development. Datastore features include: Atomic transactions.


2 Answers

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.

like image 55
Dan Holevoet Avatar answered Sep 20 '22 21:09

Dan Holevoet


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: enter image description here

like image 21
Shay Erlichmen Avatar answered Sep 20 '22 21:09

Shay Erlichmen