mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-13 12:25:48 +03:00
Fixed incorrect and outdated connection.commit() doc
This commit is contained in:
parent
2371166383
commit
8666693512
|
@ -61,9 +61,15 @@ The ``connection`` class
|
||||||
|
|
||||||
.. method:: commit()
|
.. method:: commit()
|
||||||
|
|
||||||
Commit any pending transaction to the database. Psycopg can be set to
|
Commit any pending transaction to the database.
|
||||||
perform automatic commits at each operation, see
|
|
||||||
`~connection.set_isolation_level()`.
|
By default, Psycopg opens a transaction before executing the first
|
||||||
|
command: if `!commit()` is not called, the effect of any data
|
||||||
|
manipulation will be lost.
|
||||||
|
|
||||||
|
The connection can be also set in "autocommit" mode: no transaction is
|
||||||
|
automatically open, commands have immediate effect. See
|
||||||
|
:ref:`transactions-control` for details.
|
||||||
|
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
|
|
Loading…
Reference in New Issue
Block a user