[sqlalchemy] Re: building mappers for an existing database
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... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~--~~~~--~~--~--~---
[sqlalchemy] Re: building mappers for an existing database
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 sqlautocode the standard way of doing this? probably something like it. Reverse engineering the db, and mime self accordingly, IF possible. See the autoload=true flag to metadata and tables, it does most of the job. i have something quick-and-dirty here: http://dbcook.svn.sourceforge.net/viewvc/dbcook/trunk/dbcook/misc/metadata/ svilen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~--~~~~--~~--~--~---
[sqlalchemy] Re: building mappers for an existing database
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 -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~--~~~~--~~--~--~---
[sqlalchemy] Re: building mappers for an existing database
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 migrate (i call it migrene :); there are 2 approaches: - make the db match the py-model - make the model match the db --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~--~~~~--~~--~--~---