diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-04-06 23:46:02 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-04-06 23:46:02 +0000 |
commit | 2a171e818c2e7cfadcd286399a3740147ff0df45 (patch) | |
tree | c91044514931106b35272c56213ea55274a7f7f4 /lib/sqlalchemy/ext/proxy.py | |
parent | 5bda70e770489a09a848d5ac3bfbee0aabd805ab (diff) | |
download | sqlalchemy-2a171e818c2e7cfadcd286399a3740147ff0df45.tar.gz |
split up Session into Session/LegacySession, added some new constructor args
created AbstractEngine class which provides base for SQLEngine and will also
provide base for ConnectionProxy, so SQL binding can be to an engine or specific
connection resource
ClauseElements get using() method which can take AbstractEngines for execution
made more separation between SchemaItems and bound engine
Diffstat (limited to 'lib/sqlalchemy/ext/proxy.py')
-rw-r--r-- | lib/sqlalchemy/ext/proxy.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/proxy.py b/lib/sqlalchemy/ext/proxy.py index 38325bea3..a24f089e9 100644 --- a/lib/sqlalchemy/ext/proxy.py +++ b/lib/sqlalchemy/ext/proxy.py @@ -24,7 +24,15 @@ class BaseProxyEngine(schema.SchemaEngine): def reflecttable(self, table): return self.get_engine().reflecttable(table) - + def execute_compiled(self, *args, **kwargs): + return self.get_engine().execute_compiled(*args, **kwargs) + def compiler(self, *args, **kwargs): + return self.get_engine().compiler(*args, **kwargs) + def schemagenerator(self, *args, **kwargs): + return self.get_engine().schemagenerator(*args, **kwargs) + def schemadropper(self, *args, **kwargs): + return self.get_engine().schemadropper(*args, **kwargs) + def hash_key(self): return "%s(%s)" % (self.__class__.__name__, id(self)) |