You can use the native Google databse API but you'd miss a lot of the
benefits of web2py.

You can use the web2py database api on GAE.

Here is an example of one to many

db.define_table('person',db.Field('name'))
db.define_table('dog',db.Field('name'),db.Field('owner',db.person))
db.dog.owners.requires=IS_IN_DB(db,'person.id','%(name)s')

here is an example of many to many that mimics a ListProperty using
tagging.

db.define_table('person',db.Field('name'))
db.define_table('dog',db.Field('name'),db.Field('owners','text'))
db.dog.owners.requires=IS_IN_DB(db,'person.id','%(name)
s',multiple=True)

Internally the listproperty is implemented in a similar way anyway.

Massimo

On Jan 17, 5:26 pm, sebastian <[email protected]> wrote:
> Hi all,
>
> Now that I know that web2py supports sessions and memcache also for
> GAE I'm starting my first web2py app (and it is under GAE.).
>
> As GAE doesn't use Relational databases (it uses Datastore/Bigtable)
> it is very important to project the app. with datastore in mind.
> Therefore it is necessary to use all the resources that Google
> provides in order to overcome the limitations of GAE Datastore (there
> are not join for example) If we develop an GAE application with the
> RDB mentality, it is very probable that we will get an app that goes
> out of quota all the time.
>
> The first question that comes up is about DB definition. Using Django
> I can define a Model using the types as 
> definedhttp://code.google.com/appengine/docs/python/datastore/typesandproper...
>
> for example I can define a model property as GeoPtProperty (db.GeoPt)
> or as a ReferenceProperty (it is used as fereign key) or even better
> as ListProperty (developers that complain about the leaking of JOIN,
> then feel better when they discover that it is possible to store a
> whole object !)
>
> Is there any way to use the Google provided Types and Property
> Classes ?
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to