diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-01-26 00:25:36 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-01-26 00:25:36 +0000 |
commit | ffcd60ac6eadd5a7fe30c2654077983e42b488a1 (patch) | |
tree | 2893f668e5e6e0cdcfe555057bfb3576ec7ce3d9 /lib/sqlalchemy/engine.py | |
parent | 159ef4ccf3b37b358c74e4b523bea42b7092486a (diff) | |
download | sqlalchemy-ffcd60ac6eadd5a7fe30c2654077983e42b488a1.tar.gz |
ai more reasonable hash_key that works across serializations
might want to get the DB password out of it tho....
Diffstat (limited to 'lib/sqlalchemy/engine.py')
-rw-r--r-- | lib/sqlalchemy/engine.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine.py b/lib/sqlalchemy/engine.py index 72c8c8a94..d384ba2b3 100644 --- a/lib/sqlalchemy/engine.py +++ b/lib/sqlalchemy/engine.py @@ -184,6 +184,9 @@ class SQLEngine(schema.SchemaEngine): else: self.logger = logger + def hash_key(self): + return "%s(%s)" % (self.__class__.__name__, repr(self.connect_args())) + def dispose(self): """disposes of the underlying pool manager for this SQLEngine.""" (cargs, cparams) = self.connect_args() @@ -698,3 +701,5 @@ class RowProxy: except: raise AttributeError + + |