mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
This commit is contained in:
parent
99586a795b
commit
056925788a
@ -39,7 +39,7 @@ The two share the same interface so __no other code changes should be required__
|
||||
client.connect();
|
||||
|
||||
//queries are queued and executed one after another once the connection becomes available
|
||||
client.query("CREATE TEMP TABLE beatles(name varchar(10), height integer, birthday timestamps)");
|
||||
client.query("CREATE TEMP TABLE beatles(name varchar(10), height integer, birthday timestamptz)");
|
||||
client.query("INSERT INTO beatles(name, height, birthday) values($1, $2, $3)", ['Ringo', 67, new Date(1945, 11, 2)]);
|
||||
client.query("INSERT INTO beatles(name, height, birthday) values($1, $2, $3)", ['John', 68, new Date(1944, 10, 13)]);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user