Created
October 31, 2013 08:08
-
-
Save emadb/7245878 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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