Skip to content

Instantly share code, notes, and snippets.

@emadb emadb/gist:7245878
Created Oct 31, 2013

Embed
What would you like to do?
conn.beginTransaction( function( err ) {
//..
});
conn.queryRaw( "INSERT INTO test_txn (name) VALUES ('Anne')", function( err, results ) {
//..
});
conn.queryRaw( "INSERT INTO test_txn (name) VALUES ('Bob')", function( err, results ) {
//..
});
conn.commit( function( err ) {
//..
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.