]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- changelog + docs for pg8000 transaction isolation level
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 May 2014 16:27:42 +0000 (12:27 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 May 2014 16:27:42 +0000 (12:27 -0400)
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/pg8000.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py

index 9eb43a3671d8dd73ccfb848834fdcc9684753a07..3e1e062264a9b8958f32fb678a1f99b52622b75b 100644 (file)
 .. changelog::
     :version: 0.9.5
 
+    .. change::
+        :tags: feature, postgresql
+        :versions: 1.0.0
+        :pullreq: github:88
+
+        Added support for AUTOCOMMIT isolation level when using the pg8000
+        DBAPI.  Pull request courtesy Tony Locke.
+
     .. change::
         :tags: bug, postgresql
         :tickets: 3021
index e2accfedb22e80d6d8379584f9d7b65858591221..42ec19c20654e4f2a064e953d73703830c29c2b1 100644 (file)
@@ -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:
 
index edb1afc3904e18d4ff3e0e7d47af9bd95023c3f0..8ed7c9423d7d12fec511a65de2bb198346fef39a 100644 (file)
@@ -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
index 6867650c5c604e151694d80f600cfc5f2adbf053..25fafa59c63d9d5474d124f81208121430b18a81 100644 (file)
@@ -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
 ---------------