Skip to content

Transaction, commit and rollback support #179

gunarsritins opened this Issue May 13, 2014 · 1 comment

2 participants


How does one work with transactions using this library? I can see references to commit and rollback in the code, but it's not clear how these are used.


You have to call connection.setAutoCommit(false) to avoid implicit commiting every command (default is true). (Note: synchronous call)
I found no difference by either executing a query with "commit" or "rollback" or using the undocumented connection.rollback(callback) or connection.commit(callback) functions, but would prefer the function calls because it calls the native occi api's rollback()/commit().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.