On Jan 15, 2007, at 12:05 PM, Manlio Perillo wrote:

My idea is simple.
1) When the database does not support schema, the schema name specified
   in Table costructor should be prepended to the table name.

   foo = Table('foo', ..., schema='bar')
   result in a table named bar_foo


why not just name your table "bar_foo" ? why have two ways to do the same thing ? how would this work with autoloading ? why make a keyword argument called "schema" do something that is nothing like a what a "schema" actually is ?

2) If the database is SQLite, the schema name should be used to create a
   new database, attaching it to the main database.

   engine = create_engine('sqlite://db')
   foo = Table('foo', ..., schema='bar')

   result in a new database named db_bar.

why not just conenct to a database file called "db_bar"? why have two ways to do the same thing ? why make a keyword argument called "schema" do something that is nothing like a what a "schema" actually is ?





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to