From a233638268d5991ec1f4f928104a041e607bb4fc Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 16 Jan 2011 13:15:26 -0500 Subject: - add dialect.reset_isolation_level(), reverts - base not implemented methods on Dialect --- lib/sqlalchemy/engine/base.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/sqlalchemy/engine/base.py') diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 9eb1b8b40..1727e6905 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -524,6 +524,21 @@ class Dialect(object): """ return None + def reset_isolation_level(self, dbapi_conn): + """Given a DBAPI connection, revert its isolation to the default.""" + + raise NotImplementedError() + + def set_isolation_level(self, dbapi_conn, level): + """Given a DBAPI connection, set its isolation level.""" + + raise NotImplementedError() + + def get_isolation_level(self, dbapi_conn): + """Given a DBAPI connection, return its isolation level.""" + + raise NotImplementedError() + class ExecutionContext(object): """A messenger object for a Dialect that corresponds to a single -- cgit v1.2.1