Egglabs
Egglabs

Reputation: 3186

How to create database table in Google App Engine

How to create database table in Google App Engine

Upvotes: 3

Views: 12523

Answers (4)

user114600
user114600

Reputation:

According to http://code.google.com/appengine/docs/python/datastore/

App Engine Datastore is a schemaless object datastore providing robust, scalable storage for your web application, with the following features:

  • No planned downtime
  • Atomic transactions
  • High availability of reads and writes
  • Strong consistency for reads and ancestor queries
  • Eventual consistency for all other queries The Python Datastore interface includes a rich data modeling API and a SQL-like query language called GQL.

Upvotes: 4

systempuntoout
systempuntoout

Reputation: 74134

In simple words, i would say that with Google BigTable you don't need to create your tables because there are already six Big Tables ready to store whatever you want.

Upvotes: 0

Steve Jessop
Steve Jessop

Reputation: 279445

You don't. You create Entities of different kinds. Datastore is not a relational database[*].

If you want to imagine that GAE creates one "table" for each kind, the "columns" of that "table" being the properties of the entities, then you're welcome to do so. But I don't think it helps.

[*] I don't know whether it meets some technical definition, but it certainly doesn't drive like SQL-based databases.

Upvotes: 8

Ilian Iliev
Ilian Iliev

Reputation: 3236

In simple words just create you model class, create an object of this class and after first call of put() method for this object the "table"(I think the term here is kind) will be created on the fly. But you definitely have to read the documentation and check some examples. The will help you to understand the specifics of Google Datastore and how it differs from the common RDBMS

Upvotes: 2

Related Questions