Kashyap Kansara
Kashyap Kansara

Reputation: 405

How to add and get data to google datastore on local server?

I want to crate a table(Kind) in local datastore and add some data in that table. How can I connect to google datastore on local server?

Upvotes: 0

Views: 442

Answers (2)

Dan Cornilescu
Dan Cornilescu

Reputation: 39814

If you're using the (standard environment) app engine local development server it emulates the datastore. You can use the code inside your application to create entities via the gae-specific datastore client access libraries: see Connecting to Cloud Datastore with App Engine

I'm not sure if this is true for Java as well, but the python development server offers in its admin interface an interactive console where one-off calls can be made manually, without modifying the application code.

If you're using the flexible environment or some client library which is not the GAE-specific one(s) mentioned above you probably want to take a look at the Datastore Emulator. I didn't use it myself, tho.

Upvotes: 1

TheAddonDepot
TheAddonDepot

Reputation: 8964

You can access Cloud Datastore via a client library or using the REST API directly:

https://cloud.google.com/datastore/docs/apis

Upvotes: 0

Related Questions