Once you specify a given type of object, will its schema always remain the 
same? If so, you should be able to dynamically generate the DAL table 
definition and have the DAL create the table. However, if you need to make 
arbitrary dynamic changes to the schema within a given class of object, 
you're probably better off with a document database like MongoDB. The DAL 
does have an experimental MongoDB adapter, but I'm not sure how complete it 
is and whether it could easily handle this use case -- if not, though, I 
think MongoDB is fairly easy to work with natively via the Python driver.

Anthony

On Sunday, June 3, 2012 5:35:34 AM UTC-4, Christian wrote:
>
> Hello group,
>
> I found a backend service, mostly for mobile apps, called parse.com. 
> Looking at their REST documentation (https://parse.com/docs/rest), it 
> looks like one can e.g. dynamically generate different kind of objects, 
> which get persistet (see "creating objects" in the docs to see what I 
> mean). These objects can get relationships to other objects and can also be 
> queried. So if the client posts GameScore or GameScores, both are valid 
> (but different) objects (in different tables?)  and get persisted,
> My questions: how looks sth. like this on the model side? How is this 
> done? How to model general tables and still make them queryable. Or does 
> the model generate tables dynamically? Could something like this be modeled 
> with DAL? 
> On the controller side: could such a dynamic model be made available via 
> sth like @request.restful?
>
> I would be happy for any hint, as I have no idea, how this is done!
>
> Thanks and regards,
> Christian
>
> P.S.: I also found a open source clone, which rebuilds the iOS client 
> library and the server with node and MongoDB, if this might be of any help. 
> I do not speak JS and have no clue about mongo. 
> https://github.com/eaigner/DataKit
>
>

Reply via email to