Created
August 10, 2011 17:17
-
-
Save booo/1137489 to your computer and use it in GitHub Desktop.
stupid pg test
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 = require "pg" | |
pg.connect "pg://postgres:secret@localhost:5432/testing", (error, client) -> | |
if error | |
console.log error | |
else | |
query = "SELECT NOW() AS when;" | |
client.query query, (error, result) -> | |
if error then console.log error | |
else console.log result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment