Skip to content

Instantly share code, notes, and snippets.

@bcoe
Created March 30, 2016 23:47
Show Gist options
  • Save bcoe/65813165af1101d624b34b9766415972 to your computer and use it in GitHub Desktop.
Save bcoe/65813165af1101d624b34b9766415972 to your computer and use it in GitHub Desktop.
pg-test-trick.js
pg.defaults.poolSize = 1
helper.beginTransaction = function (done) {
conn.query('BEGIN', done)
}
helper.endTransaction = function (done) {
conn.query('ROLLBACK', done)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment