Hi.

I don't know if this already implemented or planned.

Schemas are supported by SQLAlchemy, but unfortunately not all database supported by SQLAlchemy supports schema.

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

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.

   Of course the user can decide if to use solution 1)




Regards  Manlio Perillo



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to