summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-01-16 13:15:26 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-01-16 13:15:26 -0500
commita233638268d5991ec1f4f928104a041e607bb4fc (patch)
tree95e89a31e183411b2211f33068f4fd923292d8da /lib/sqlalchemy/engine/base.py
parentaa62a3a83387d4b346731e199b2cbe386193c91b (diff)
downloadsqlalchemy-a233638268d5991ec1f4f928104a041e607bb4fc.tar.gz
- add dialect.reset_isolation_level(), reverts
- base not implemented methods on Dialect
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r--lib/sqlalchemy/engine/base.py15
1 files changed, 15 insertions, 0 deletions
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