diff options
author | Rick Morrison <rickmorrison@gmail.com> | 2006-12-17 23:14:53 +0000 |
---|---|---|
committer | Rick Morrison <rickmorrison@gmail.com> | 2006-12-17 23:14:53 +0000 |
commit | e0896904db15918e31cc3d6a7d91ea11c7cebdd9 (patch) | |
tree | 144ceffb20a1548c7919584fd1daff54fc6ca8eb /lib/sqlalchemy/schema.py | |
parent | 3d8b9ca8cb79fa5bc926bfae40284a7b102c4a37 (diff) | |
download | sqlalchemy-e0896904db15918e31cc3d6a7d91ea11c7cebdd9.tar.gz |
added missing ref to between in sql.py __all__
Diffstat (limited to 'lib/sqlalchemy/schema.py')
-rw-r--r-- | lib/sqlalchemy/schema.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index beb320e5a..fbee0c7c0 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -911,12 +911,14 @@ class BoundMetaData(MetaData): """builds upon MetaData to provide the capability to bind to an Engine implementation.""" def __init__(self, engine_or_url, name=None, **kwargs): super(BoundMetaData, self).__init__(name, **kwargs) + self.rebind(engine_or_url, **kwargs) + def is_bound(self): + return True + def rebind(self, engine_or_url, **kwargs): if isinstance(engine_or_url, str): self._engine = sqlalchemy.create_engine(engine_or_url, **kwargs) else: self._engine = engine_or_url - def is_bound(self): - return True class DynamicMetaData(MetaData): """builds upon MetaData to provide the capability to bind to multiple Engine implementations |