Skip to content

Instantly share code, notes, and snippets.

@brianc
Created November 21, 2016 18:37
Show Gist options
  • Save brianc/d8cf0224f46d4d0d7fe6fe9b8ebe89e1 to your computer and use it in GitHub Desktop.
Save brianc/d8cf0224f46d4d0d7fe6fe9b8ebe89e1 to your computer and use it in GitHub Desktop.
pg.connect((err, client, done) {
client.query('set role foo')
client.query('select * from secret', function(err, rows) {
done()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment