Skip to content

Commit

Permalink
Clarify psycopg async mode in docs (aio-libs#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpaolini authored and asvetlov committed Jul 31, 2016
1 parent 0938373 commit a48542b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -873,15 +873,16 @@ Any call to library function, method or property can raise an exception.
Transactions
============

While :mod:`aiopg` works only in *autocommit mode* it is still
possible to use SQL transactions.

Just execute **BEGIN** and **COMMIT** statements manually.
While :term:`psycopg2` asynchronous connections have to be in *autocommit mode* it is still
possible to use SQL transactions executing **BEGIN** and **COMMIT** statements manually
as `Psycopg Asynchronous Support docs`_ .

:meth:`Connection.commit` and :meth:`Connection.rollback` methods are
disabled and always raises :exc:`psycopg2.ProgrammingError` exception.


.. _Psycopg Asynchronous Support docs: http://initd.org/psycopg/docs/advanced.html#asynchronous-support

.. _aiopg-core-extension-type-translations:

Extension type translations
Expand Down

0 comments on commit a48542b

Please sign in to comment.