[sqlalchemy] Re: building mappers for an existing database

2008-02-12 Thread Chris Withers
svilen wrote: > probably something like it. Reverse engineering the db, and mime self > accordingly, IF possible. I don't know what "and mime self accordingly" means... > See the autoload=true flag to metadata and > tables, it does most of the job. Not sure what you're referring to here...

[sqlalchemy] Re: building mappers for an existing database

2008-02-11 Thread svilen
On Monday 11 February 2008 16:07:03 Chris Withers wrote: > svilen wrote: > > search the group for things related to migrate (i call it migrene > > :); there are 2 approaches: > > - make the db match the py-model > > - make the model match the db > > It's this 2nd one I'm asking about. Is sqlauto

[sqlalchemy] Re: building mappers for an existing database

2008-02-11 Thread Chris Withers
svilen wrote: > search the group for things related to migrate (i call it migrene :); > there are 2 approaches: > - make the db match the py-model > - make the model match the db It's this 2nd one I'm asking about. Is sqlautocode the standard way of doing this? cheers, Chris -- Simplisti

[sqlalchemy] Re: building mappers for an existing database

2008-02-08 Thread svilen
On Friday 08 February 2008 16:09:28 Chris Withers wrote: > Hi All, > > Almost similar to my last question, how do you go about building > mappers for an existing database schema? > > What happens if you don't get it quite right? :-S > > cheers, > > Chris search the group for things related to mig