Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAutocommit mode #917
Autocommit mode #917
Conversation
|
Unit tests are failing with a unicode error there in |
|
I think that the reason of the failure is that the new Also, I'm not sure if those typecasters should be moved only onto the new Finally, in the method |
Codecov Report
@@ Coverage Diff @@
## master #917 +/- ##
==========================================
- Coverage 84.57% 84.05% -0.52%
==========================================
Files 21 21
Lines 2463 2496 +33
==========================================
+ Hits 2083 2098 +15
- Misses 380 398 +18
Continue to review full report at Codecov.
|
|
Thank you for having a look at this PR. |
b36bd23
to
ec4511c
Use different connection for user queries Add settings for autocommit
|
@gma2th I looked through the PR and I have 2 questions. Let me preface these comments by saying, I would like to minimize the number of configuration options in pgcli. It is wise to choose sensible defaults wherever possible.
|
|
Hrm. Even when I set the |
|
Any updates on this? I've been interested in this feature for quite a while. |
Description
Add autocommit mode.
Add on error rollback.
When autocommit_mode is set to false, users can manually commit or rollback the current transaction.
When on_error_rollback is set to true, if a statement in a transaction block generates an error, the error is ignored and the transaction continues.
In order to deactivate autocommit for users transactions, without messing up with intern pgcli transactions, we better use two different connections.
Requested here #410
Limitation
Users are not able to activate/disable autocommit from the UI.
Autocommit has to be activated in order to use on error rollback.
No tests to cover the change.
Ressource
Checklist
changelog.rst.AUTHORSfile (or it's already there).