Re: [Sqlalchemy-tickets] [sqlalchemy] #1679: SQL Schema support in the Dialect class
Brought to you by:
zzzeek
From: sqlalchemy <mi...@zz...> - 2010-03-01 21:56:02
|
#1679: SQL Schema support in the Dialect class ----------------------------+----------------------------------------------- Reporter: guest | Owner: zzzeek Type: enhancement | Status: new Priority: medium | Milestone: 0.6.xx Component: schema | Severity: major - 1-3 hours Resolution: | Keywords: Status_field: in progress | ----------------------------+----------------------------------------------- Comment (by guest): Yes. Since it is not clear what to do with a Schema object and how it should interact with the rest of SQLAlchemy, I tried to keep it very simple. My idea was to implement something like {{{ #!python class Namespace(MetaData): """A schema aware MetaData.""" def __init__(self, schema, bind=None, reflect=False): MetaData.__init__(self, bind, reflect) self.schema = Schema(schema) }}} and then attach metadata listeners to create/drop a schema when a metadata is created/dropped. -- Ticket URL: <http://www.sqlalchemy.org/trac/ticket/1679#comment:8> sqlalchemy <http://www.sqlalchemy.org/> The Database Toolkit for Python |