Skip to content

Instantly share code, notes, and snippets.

@johnnaegle
Created March 15, 2014 03:48
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/9561596 to your computer and use it in GitHub Desktop.
Save johnnaegle/9561596 to your computer and use it in GitHub Desktop.
BEGIN
INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"
[["created_at", Sat, 15 Mar 2014 03:41:25 UTC +00:00], ["updated_at", Sat, 15 Mar 2014 03:41:25 UTC +00:00]]
COMMIT
Updated at: 1394854885.189413
BEGIN
UPDATE "posts" SET "updated_at" = '2014-03-15 03:41:30.205245' WHERE "posts"."id" = 7
INSERT INTO "comments" ("body", "created_at", "post_id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"
[["body", "eu blandit felis. pretium neque congue. iaculis Lorem adipiscing Morbi Donec sit Aliquam tempor
dolor Suspendisse felis vitae vitae ac, pede Vivamus amet tortor. a eu, lorem placerat. risus elit. sit
vitae risus, quam. ipsum amet, Ut ligula risus Donec magna. consectetuer eu, nec mollis rhoncus. Etiam tincidunt
blandit ac"], ["created_at", Sat, 15 Mar 2014 03:41:30 UTC +00:00], ["post_id", 7],
["updated_at", Sat, 15 Mar 2014 03:41:30 UTC +00:00]]
COMMIT
Updated at: 1394854890.205245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment