swati
swati

Reputation: 1

How to create tables using GoogleAppEngine

I want to store a list of friends and their locations (GPS coordinates) on the googleAppengine. I am using J2ME with Netbeans. How do I store or create table in Google App Engine?

Upvotes: 0

Views: 107

Answers (1)

Bernd Verst
Bernd Verst

Reputation: 836

The App Engine datastore is schemaless. The closest thing to a table in a relational database is the kind. Each kind holds entities (records) all of which have attributes (fields). It is important to note that the entities of a given kind do not need to have the same attributes. See the datastore documentation for more information.

When writing to the App Engine datastore you do not create a table / kind in advance, instead you simply create the entity (record) of a given kind you'd like to store, and tell App Engine to store it. See here for a short example.

If you would like to use a relational database with App Engine, use Google Cloud SQL (essentially a MySQL database co-located with your App Engine application).

Upvotes: 2

Related Questions