Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Transaction, commit and rollback support #179

Open
ggitter opened this Issue · 1 comment

2 participants

@ggitter

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.

@vschoettke

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.