Missing connection autocommit documentation
See original GitHub issueIt is unclear at the moment whether autocommit can be turned on on a given connection. From https://github.com/aws/amazon-redshift-python-driver/blob/master/redshift_connector/core.py#L417 it seems that it should be possible by setting connection.autocommit = True
, but it is unclear if this would work as expected. It would be great to document this.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
The connection class — Psycopg 2.9.5 documentation
By default, Psycopg opens a transaction before executing the first command: if commit() is not called, the effect of any data manipulation will...
Read more >AUTOCOMMIT and ODBC Transactions - Vertica
The AUTOCOMMIT connection attribute controls whether INSERT, ALTER, COPY and other data-manipulation statements are automatically committed after they complete.
Read more >Working with Engines and Connections — SQLAlchemy 2.0 ...
When the block ends, the Connection object will revert the “autocommit” isolation level, and the DBAPI connection is released to the connection pool...
Read more >JDBC auto-commit mode - IBM
By default, JDBC uses an operation mode called auto-commit. This means that every update to the database is immediately made permanent.
Read more >possible documentation mistake on cursor/transaction #511
This is supported by the error I get when running the current example: Message: 'pyodbc.Cursor' object has no attribute 'autocommit'.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Documentation for
autocommit
has been added as of v2.0.875Hey @GergelyKalmar ,
Thanks for reporting this issue – we will add some documentation regarding auto commit in our next release. By default
connection.autocommit
is set toFalse
per PEP-249 refSetting
connection.autocommit
toTrue
does indeed enable autocommit.