]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- changelog
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 16 Jun 2013 02:58:04 +0000 (22:58 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 16 Jun 2013 02:59:09 +0000 (22:59 -0400)
- docs

Conflicts:
doc/build/changelog/changelog_09.rst

doc/build/changelog/changelog_08.rst
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py

index ffb2a24d422f1b1bf6c89119584d0fb04c7b0909..1eed675eb3e0ac579bc7b3528eab8ed499292321 100644 (file)
@@ -6,6 +6,14 @@
 .. changelog::
     :version: 0.8.2
 
+    .. change::
+        :tags: feature, postgresql
+        :tickets: 2072
+
+        Added support for "AUTOCOMMIT" isolation when using the psycopg2
+        DBAPI.   The keyword is available via the ``isolation_level``
+        execution option.  Patch courtesy Roman Podolyaka.
+
     .. change::
         :tags: bug, orm
         :tickets: 2759
index 1acdb57b9070297e091ca52fadadfcf37f0fc725..49f097c58086533be392cc5b02a411b431bc42d2 100644 (file)
@@ -47,7 +47,7 @@ Transaction Isolation Level
 :func:`.create_engine` accepts an ``isolation_level`` parameter which results
 in the command ``SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL
 <level>`` being invoked for every new connection. Valid values for this
-parameter are ``READ COMMITTED``, ``READ UNCOMMITTED``, ``REPEATABLE READ``,
+parameter include ``READ COMMITTED``, ``READ UNCOMMITTED``, ``REPEATABLE READ``,
 and ``SERIALIZABLE``::
 
     engine = create_engine(
@@ -57,7 +57,8 @@ and ``SERIALIZABLE``::
 
 When using the psycopg2 dialect, a psycopg2-specific method of setting
 transaction isolation level is used, but the API of ``isolation_level``
-remains the same - see :ref:`psycopg2_isolation`.
+remains the same.  The psycopg2 dialect also includes support
+for ``AUTOCOMMIT`` isolation - see :ref:`psycopg2_isolation`.
 
 
 Remote / Cross-Schema Table Introspection
index 2d475ccda066f6bb2c6f75cfe1b206470f1a9df3..188fb3c11ac46400d6d23f7ee416d326cceb27b8 100644 (file)
@@ -61,7 +61,11 @@ The following DBAPI-specific options are respected when used with
 * isolation_level - Set the transaction isolation level for the lifespan of a
   :class:`.Connection` (can only be set on a connection, not a statement
   or query). This includes the options ``SERIALIZABLE``, ``READ COMMITTED``,
-  ``READ UNCOMMITTED`` and ``REPEATABLE READ``.
+  ``READ UNCOMMITTED``, ``REPEATABLE READ``, and ``AUTOCOMMIT``.
+
+  .. versionadded:: 0.8.2 support for AUTOCOMMIT isolation level when using
+     psycopg2.
+
 * stream_results - Enable or disable usage of server side cursors.
   If ``None`` or not set, the ``server_side_cursors`` option of the
   :class:`.Engine` is used.