Skip to content

Instantly share code, notes, and snippets.

@johnnaegle
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnnaegle/9561496 to your computer and use it in GitHub Desktop.
Save johnnaegle/9561496 to your computer and use it in GitHub Desktop.
INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"
[["created_at", Sat, 15 Mar 2014 03:35:32 UTC +00:00], ["updated_at", Sat, 15 Mar 2014 03:35:32 UTC +00:00]]
COMMIT
Updated at: 1394854532.1633868
BEGIN
INSERT INTO "comments" ("body", "created_at", "post_id", "updated_at") VALUES
($1, $2, $3, $4) RETURNING "id" [["body", "Lorem sit dolor vitae amet, blandit vitae consectetuer
quam. amet magna. felis elit. Ut tincidunt sit risus pede mollis felis. risus lorem ac, Donec blandit
risus, eu ac adipiscing eu, eu, Suspendisse Etiam Vivamus iaculis a tempor ligula vitae Donec placerat.
Aliquam ipsum rhoncus. tortor. nec congue. neque Morbi pretium"],
["created_at", Sat, 15 Mar 2014 03:35:37 UTC +00:00], ["post_id", 5],
["updated_at", Sat, 15 Mar 2014 03:35:37 UTC +00:00]]
COMMIT
Updated at: 1394854532.1633868
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment