summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-05-30 12:27:42 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-05-30 12:27:42 -0400
commit2e4d3e65e36df97ee4a7f443ccb02807be28fad6 (patch)
tree0978e1261040e534786dd5b648c39a6bd0466c79 /lib/sqlalchemy/dialects/postgresql
parentf000161f242f6814d594b5ccf91f96d99490ae61 (diff)
downloadsqlalchemy-2e4d3e65e36df97ee4a7f443ccb02807be28fad6.tar.gz
- changelog + docs for pg8000 transaction isolation level
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py11
-rw-r--r--lib/sqlalchemy/dialects/postgresql/pg8000.py24
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py6
3 files changed, 39 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index e2accfedb..42ec19c20 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -73,8 +73,15 @@ Valid values for ``isolation_level`` include:
* ``REPEATABLE READ``
* ``SERIALIZABLE``
-The :mod:`~sqlalchemy.dialects.postgresql.psycopg2` dialect also offers the special level ``AUTOCOMMIT``. See
-:ref:`psycopg2_isolation_level` for details.
+The :mod:`~sqlalchemy.dialects.postgresql.psycopg2` and
+:mod:`~sqlalchemy.dialects.postgresql.pg8000` dialects also offer the
+special level ``AUTOCOMMIT``.
+
+.. seealso::
+
+ :ref:`psycopg2_isolation_level`
+
+ :ref:`pg8000_isolation_level`
.. _postgresql_schema_reflection:
diff --git a/lib/sqlalchemy/dialects/postgresql/pg8000.py b/lib/sqlalchemy/dialects/postgresql/pg8000.py
index edb1afc39..8ed7c9423 100644
--- a/lib/sqlalchemy/dialects/postgresql/pg8000.py
+++ b/lib/sqlalchemy/dialects/postgresql/pg8000.py
@@ -25,6 +25,30 @@ in postgresql.conf).
Set the "encoding" parameter on create_engine(), to the same as the client
encoding, usually "utf-8".
+.. _pg8000_isolation_level:
+
+pg8000 Transaction Isolation Level
+-------------------------------------
+
+The pg8000 dialect offers the same isolation level settings as that
+of the :ref:`psycopg2 <psycopg2_isolation_level>` dialect:
+
+* ``READ COMMITTED``
+* ``READ UNCOMMITTED``
+* ``REPEATABLE READ``
+* ``SERIALIZABLE``
+* ``AUTOCOMMIT``
+
+.. versionadded:: 0.9.5 support for AUTOCOMMIT isolation level when using
+ pg8000.
+
+.. seealso::
+
+ :ref:`postgresql_isolation_level`
+
+ :ref:`psycopg2_isolation_level`
+
+
"""
from ... import util, exc
import decimal
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
index 6867650c5..25fafa59c 100644
--- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py
+++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
@@ -144,6 +144,12 @@ The psycopg2 dialect supports these constants for isolation level:
.. versionadded:: 0.8.2 support for AUTOCOMMIT isolation level when using
psycopg2.
+.. seealso::
+
+ :ref:`postgresql_isolation_level`
+
+ :ref:`pg8000_isolation_level`
+
NOTICE logging
---------------