Created
January 29, 2015 20:13
-
-
Save vlucas/09acb40ccbdd945d26ce 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
// PG directly | |
var pg = require('pg'); | |
var client = new pg.Client(process.env.DATABASE_URL).connect(); | |
// Node-DBI wrapper | |
var DBWrapper = require('node-dbi').DBWrapper; | |
var db = new DBWrapper('pg', {dsn: process.env.DATBASE_URL }); | |
db.connect(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment