dbhero 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9723ab53f159f95ae424130d82b4c81f86fcc19
4
- data.tar.gz: 28a66d84f48286ac2dc7ac702df50695598d1daf
3
+ metadata.gz: 633317ca7d2af12ea2e0eca574ebcb9567560f7b
4
+ data.tar.gz: 7afc6888568de33a814150453ebf7e9f044c1b6a
5
5
  SHA512:
6
- metadata.gz: 99e2f2d904bede46d0b7548efc613a3a10d7b5a2532c6dc44cde488bba640333aafd16d12c9d7d5dbdfc9d7750eb7f754078ab882962a7aad93cc8ab2f828156
7
- data.tar.gz: 4dd4788d4118b992583640783e57ce81eb31d90356e1b8af00949be46fb146e29ef1d17d14222e865b5c98c8551a7e620752f3cb2adeebd42057dc45c5f7bb10
6
+ metadata.gz: 3faefab1eea82268ba2ee97226df8c187fbcd49acb76d00d693d7fbf42c459b5cffd7cff68f059a6d66ff39e9468120eeb72566f9bd7221ad02ec28dc54b4216
7
+ data.tar.gz: 1785be530cfb09e1e2ee3b1c520cd53a4e2f804dd79c0f2839b2ebfe321536a7f808a2bfd4f435956d70d90c891d0ff7a3b52656e4b26a9d121dc5c24ec094c9
@@ -36,18 +36,11 @@ module Dbhero
36
36
 
37
37
  def find_or_create_spreadsheet!
38
38
  file_title = "DBHero - #{@dataclip.title}"
39
- worksheet = upload_from_string(file_title).worksheets[0]
39
+ spreadsheet = session.create_spreadsheet(file_title)
40
+ worksheet = spreadsheet.worksheets[0]
40
41
  worksheet[1,1] = "=importData(\"#{@options[:import_data_url]}\")"
41
42
  worksheet.save
42
-
43
- @uploaded_file
44
- end
45
-
46
- def upload_from_string file_title
47
- @uploaded_file ||= @session.upload_from_string(
48
- "",
49
- file_title,
50
- content_type: 'text/csv')
43
+ spreadsheet
51
44
  end
52
45
  end
53
46
  end
@@ -1,3 +1,3 @@
1
1
  module Dbhero
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
@@ -409,6 +409,421 @@ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)
409
409
   (0.1ms) SAVEPOINT active_record_1
410
410
   (0.2ms) TRUNCATE table dbhero_dataclips; commit;
411
411
  PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
412
+ : TRUNCATE table dbhero_dataclips; commit;
413
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
414
+  (0.3ms) SELECT COUNT(*) FROM "dbhero_dataclips"
415
+  (0.1ms) ROLLBACK
416
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
417
+  (116.0ms) DROP DATABASE IF EXISTS "dummy_test"
418
+  (377.8ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
419
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
420
+  (8.5ms) CREATE TABLE "dbhero_dataclips" ("id" serial primary key, "description" text NOT NULL, "raw_query" text NOT NULL, "token" text NOT NULL, "user" text, "private" boolean DEFAULT 'f' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
421
+  (1.4ms) CREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")
422
+  (1.4ms) CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
423
+  (2.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
424
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
425
+  (0.4ms) SELECT version FROM "schema_migrations"
426
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
427
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
428
+  (0.2ms) BEGIN
429
+ Processing by Dbhero::DataclipsController#index as HTML
430
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
431
+  (0.1ms) ROLLBACK
432
+  (0.1ms) BEGIN
433
+ Processing by Dbhero::DataclipsController#index as HTML
434
+ Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
435
+ Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)
436
+  (0.1ms) ROLLBACK
437
+  (0.1ms) BEGIN
438
+ Processing by Dbhero::DataclipsController#index as HTML
439
+ Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
440
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
441
+  (0.1ms) ROLLBACK
442
+  (0.1ms) BEGIN
443
+ Processing by Dbhero::DataclipsController#index as HTML
444
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
445
+  (0.1ms) ROLLBACK
446
+  (0.1ms) BEGIN
447
+ Processing by Dbhero::DataclipsController#index as HTML
448
+ Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
449
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
450
+  (0.1ms) ROLLBACK
451
+  (0.1ms) BEGIN
452
+ Processing by Dbhero::DataclipsController#new as HTML
453
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
454
+  (0.1ms) ROLLBACK
455
+  (0.1ms) BEGIN
456
+ Processing by Dbhero::DataclipsController#new as HTML
457
+ Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
458
+ Completed 200 OK in 13ms (Views: 2.2ms | ActiveRecord: 5.9ms)
459
+  (0.2ms) ROLLBACK
460
+  (0.1ms) BEGIN
461
+ Processing by Dbhero::DataclipsController#new as HTML
462
+ Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
463
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
464
+  (0.1ms) ROLLBACK
465
+  (0.1ms) BEGIN
466
+ Processing by Dbhero::DataclipsController#new as HTML
467
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
468
+  (0.1ms) ROLLBACK
469
+  (0.1ms) BEGIN
470
+ Processing by Dbhero::DataclipsController#new as HTML
471
+ Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
472
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
473
+  (0.1ms) ROLLBACK
474
+  (0.1ms) BEGIN
475
+ Processing by Dbhero::DataclipsController#create as HTML
476
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
477
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
478
+  (0.1ms) ROLLBACK
479
+  (0.1ms) BEGIN
480
+ Processing by Dbhero::DataclipsController#create as HTML
481
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
482
+  (0.1ms) SAVEPOINT active_record_1
483
+ SQL (0.7ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-05-11 23:29:27.253224"], ["updated_at", "2015-05-11 23:29:27.253224"], ["token", "4105531e-4f2a-42f1-9b02-812b3ebd4c49"]]
484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
485
+ Redirected to http://test.host/dbhero/dataclips/4105531e-4f2a-42f1-9b02-812b3ebd4c49/edit
486
+ Completed 302 Found in 13ms (ActiveRecord: 1.1ms)
487
+  (0.2ms) ROLLBACK
488
+  (0.1ms) BEGIN
489
+ Processing by Dbhero::DataclipsController#create as HTML
490
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
491
+  (0.1ms) SAVEPOINT active_record_1
492
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-05-11 23:29:27.266906"], ["updated_at", "2015-05-11 23:29:27.266906"], ["token", "eeef1bbe-b2c9-405a-92cd-1a23a3e8a60b"]]
493
+  (0.1ms) RELEASE SAVEPOINT active_record_1
494
+ Redirected to http://test.host/dbhero/dataclips/eeef1bbe-b2c9-405a-92cd-1a23a3e8a60b/edit
495
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
496
+ Dbhero::Dataclip Load (0.5ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
497
+  (0.1ms) ROLLBACK
498
+  (0.1ms) BEGIN
499
+ Processing by Dbhero::DataclipsController#create as HTML
500
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
501
+  (0.1ms) SAVEPOINT active_record_1
502
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-05-11 23:29:27.281490"], ["updated_at", "2015-05-11 23:29:27.281490"], ["token", "936fbd74-6805-40e9-b1ba-ad1eca5720f4"]]
503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
504
+ Redirected to http://test.host/dbhero/dataclips/936fbd74-6805-40e9-b1ba-ad1eca5720f4/edit
505
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
506
+  (0.1ms) ROLLBACK
507
+  (0.1ms) BEGIN
508
+ Processing by Dbhero::DataclipsController#create as HTML
509
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
510
+  (0.1ms) SAVEPOINT active_record_1
511
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["user", "foo@bar.com"], ["created_at", "2015-05-11 23:29:27.287212"], ["updated_at", "2015-05-11 23:29:27.287212"], ["token", "6bd3e17e-8590-4360-8e8f-a26249d82cfb"]]
512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
513
+ Redirected to http://test.host/dbhero/dataclips/6bd3e17e-8590-4360-8e8f-a26249d82cfb/edit
514
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
515
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
516
+  (0.2ms) ROLLBACK
517
+  (0.1ms) BEGIN
518
+ Processing by Dbhero::DataclipsController#create as HTML
519
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
520
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
521
+  (0.1ms) ROLLBACK
522
+  (0.1ms) BEGIN
523
+ Processing by Dbhero::DataclipsController#create as HTML
524
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
525
+  (0.1ms) SAVEPOINT active_record_1
526
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 23:29:27.298621"], ["updated_at", "2015-05-11 23:29:27.298621"], ["token", "918e12f5-a112-4666-b4e1-6e810fe9ce04"]]
527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
528
+ Redirected to http://test.host/dbhero/dataclips/918e12f5-a112-4666-b4e1-6e810fe9ce04/edit
529
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
530
+  (0.1ms) ROLLBACK
531
+  (0.1ms) BEGIN
532
+ Processing by Dbhero::DataclipsController#create as HTML
533
+ Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
534
+  (0.1ms) SAVEPOINT active_record_1
535
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 23:29:27.304106"], ["updated_at", "2015-05-11 23:29:27.304106"], ["token", "ebf4ed5b-2c99-4ad9-a92f-8a7b2e08b4f9"]]
536
+  (0.1ms) RELEASE SAVEPOINT active_record_1
537
+ Redirected to http://test.host/dbhero/dataclips/ebf4ed5b-2c99-4ad9-a92f-8a7b2e08b4f9/edit
538
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
539
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
540
+  (0.1ms) ROLLBACK
541
+  (0.1ms) BEGIN
542
+  (0.1ms) SAVEPOINT active_record_1
543
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.309393"], ["updated_at", "2015-05-11 23:29:27.309393"], ["token", "690eac4d-b207-4676-b452-959ec4b5c8e7"]]
544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
545
+ Processing by Dbhero::DataclipsController#edit as HTML
546
+ Parameters: {"id"=>"690eac4d-b207-4676-b452-959ec4b5c8e7"}
547
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
548
+  (0.1ms) ROLLBACK
549
+  (0.1ms) BEGIN
550
+  (0.1ms) SAVEPOINT active_record_1
551
+ SQL (0.4ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.314411"], ["updated_at", "2015-05-11 23:29:27.314411"], ["token", "51e2112b-03d4-458f-9c22-1e19e559cd36"]]
552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
553
+ Processing by Dbhero::DataclipsController#edit as HTML
554
+ Parameters: {"id"=>"51e2112b-03d4-458f-9c22-1e19e559cd36"}
555
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "51e2112b-03d4-458f-9c22-1e19e559cd36"]]
556
+  (0.1ms) SAVEPOINT active_record_1
557
+  (0.4ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
558
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
559
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
560
+ ^
561
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
562
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
563
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
564
+ Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
565
+ Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.9ms)
566
+  (0.1ms) ROLLBACK
567
+  (0.1ms) BEGIN
568
+  (0.1ms) SAVEPOINT active_record_1
569
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.324292"], ["updated_at", "2015-05-11 23:29:27.324292"], ["token", "6d318786-63e4-4055-9a7c-beb43dbbd93b"]]
570
+  (0.1ms) RELEASE SAVEPOINT active_record_1
571
+ Processing by Dbhero::DataclipsController#edit as HTML
572
+ Parameters: {"id"=>"6d318786-63e4-4055-9a7c-beb43dbbd93b"}
573
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "6d318786-63e4-4055-9a7c-beb43dbbd93b"]]
574
+  (0.1ms) SAVEPOINT active_record_1
575
+  (0.3ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
576
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
577
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
578
+ ^
579
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
580
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
581
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
582
+ Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
583
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.8ms)
584
+  (0.1ms) ROLLBACK
585
+  (0.1ms) BEGIN
586
+  (0.1ms) SAVEPOINT active_record_1
587
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.332056"], ["updated_at", "2015-05-11 23:29:27.332056"], ["token", "19769914-3b14-4b0b-a8e5-bc5d3af55d0b"]]
588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
589
+ Processing by Dbhero::DataclipsController#edit as HTML
590
+ Parameters: {"id"=>"19769914-3b14-4b0b-a8e5-bc5d3af55d0b"}
591
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
592
+  (0.1ms) ROLLBACK
593
+  (0.1ms) BEGIN
594
+  (0.1ms) SAVEPOINT active_record_1
595
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.336968"], ["updated_at", "2015-05-11 23:29:27.336968"], ["token", "f1ee2973-af2c-423b-9484-b6e0ccd46332"]]
596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
597
+ Processing by Dbhero::DataclipsController#edit as HTML
598
+ Parameters: {"id"=>"f1ee2973-af2c-423b-9484-b6e0ccd46332"}
599
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "f1ee2973-af2c-423b-9484-b6e0ccd46332"]]
600
+  (0.1ms) SAVEPOINT active_record_1
601
+  (0.3ms) select 'dummy_foo' as dummy_bar, vesion() as db_version
602
+ PG::UndefinedFunction: ERROR: function vesion() does not exist
603
+ LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
604
+ ^
605
+ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
606
+ : select 'dummy_foo' as dummy_bar, vesion() as db_version
607
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
608
+ Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
609
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.7ms)
610
+  (0.1ms) ROLLBACK
611
+  (0.1ms) BEGIN
612
+ Processing by Dbhero::DataclipsController#create as HTML
613
+ Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
614
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
615
+  (0.1ms) ROLLBACK
616
+  (0.1ms) BEGIN
617
+  (0.1ms) SAVEPOINT active_record_1
618
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 23:29:27.346913"], ["updated_at", "2015-05-11 23:29:27.346913"], ["token", "a9337d96-e055-4907-8e96-505c6875a073"]]
619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
620
+ Processing by Dbhero::DataclipsController#update as HTML
621
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"a9337d96-e055-4907-8e96-505c6875a073"}
622
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "a9337d96-e055-4907-8e96-505c6875a073"]]
623
+  (0.1ms) SAVEPOINT active_record_1
624
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-05-11 23:29:27.350813"], ["id", 12]]
625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
626
+ Redirected to http://test.host/dbhero/dataclips/a9337d96-e055-4907-8e96-505c6875a073/edit
627
+ Completed 302 Found in 9ms (ActiveRecord: 0.9ms)
628
+  (0.2ms) ROLLBACK
629
+  (0.1ms) BEGIN
630
+  (0.1ms) SAVEPOINT active_record_1
631
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 23:29:27.361703"], ["updated_at", "2015-05-11 23:29:27.361703"], ["token", "30e85ad6-45e1-4fc1-bf65-a2e8d1b14152"]]
632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
633
+ Processing by Dbhero::DataclipsController#update as HTML
634
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"30e85ad6-45e1-4fc1-bf65-a2e8d1b14152"}
635
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "30e85ad6-45e1-4fc1-bf65-a2e8d1b14152"]]
636
+  (0.1ms) SAVEPOINT active_record_1
637
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-05-11 23:29:27.365325"], ["id", 13]]
638
+  (0.1ms) RELEASE SAVEPOINT active_record_1
639
+ Redirected to http://test.host/dbhero/dataclips/30e85ad6-45e1-4fc1-bf65-a2e8d1b14152/edit
640
+ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
641
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
642
+  (0.1ms) ROLLBACK
643
+  (0.1ms) BEGIN
644
+  (0.1ms) SAVEPOINT active_record_1
645
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 23:29:27.370752"], ["updated_at", "2015-05-11 23:29:27.370752"], ["token", "2419e03a-d75c-4b66-a6f4-038d41e808c8"]]
646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
647
+ Processing by Dbhero::DataclipsController#update as HTML
648
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"2419e03a-d75c-4b66-a6f4-038d41e808c8"}
649
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "2419e03a-d75c-4b66-a6f4-038d41e808c8"]]
650
+  (0.1ms) SAVEPOINT active_record_1
651
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-05-11 23:29:27.374189"], ["id", 14]]
652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
653
+ Redirected to http://test.host/dbhero/dataclips/2419e03a-d75c-4b66-a6f4-038d41e808c8/edit
654
+ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
655
+  (0.1ms) ROLLBACK
656
+  (0.1ms) BEGIN
657
+  (0.1ms) SAVEPOINT active_record_1
658
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 23:29:27.378761"], ["updated_at", "2015-05-11 23:29:27.378761"], ["token", "d02a4718-8f8c-4fe0-8604-ec3128536a55"]]
659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
660
+ Processing by Dbhero::DataclipsController#update as HTML
661
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"d02a4718-8f8c-4fe0-8604-ec3128536a55"}
662
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "d02a4718-8f8c-4fe0-8604-ec3128536a55"]]
663
+  (0.1ms) SAVEPOINT active_record_1
664
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-05-11 23:29:27.381903"], ["id", 15]]
665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
666
+ Redirected to http://test.host/dbhero/dataclips/d02a4718-8f8c-4fe0-8604-ec3128536a55/edit
667
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
668
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
669
+  (0.1ms) ROLLBACK
670
+  (0.1ms) BEGIN
671
+  (0.1ms) SAVEPOINT active_record_1
672
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 23:29:27.387034"], ["updated_at", "2015-05-11 23:29:27.387034"], ["token", "820d9976-5c31-47b4-8dee-2960bf1d48f5"]]
673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
674
+ Processing by Dbhero::DataclipsController#update as HTML
675
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"820d9976-5c31-47b4-8dee-2960bf1d48f5"}
676
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
677
+  (0.1ms) ROLLBACK
678
+  (0.1ms) BEGIN
679
+  (0.1ms) SAVEPOINT active_record_1
680
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 23:29:27.392042"], ["updated_at", "2015-05-11 23:29:27.392042"], ["token", "a88c72e9-70bd-452c-9038-796970eac6ea"]]
681
+  (0.1ms) RELEASE SAVEPOINT active_record_1
682
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
683
+  (0.1ms) ROLLBACK
684
+  (0.1ms) BEGIN
685
+  (0.1ms) SAVEPOINT active_record_1
686
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 23:29:27.396969"], ["updated_at", "2015-05-11 23:29:27.396969"], ["token", "81160b75-d0ba-4b6d-9bb7-f37280c103b8"]]
687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
688
+ Processing by Dbhero::DataclipsController#update as HTML
689
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"81160b75-d0ba-4b6d-9bb7-f37280c103b8"}
690
+ Dbhero::Dataclip Load (0.2ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "81160b75-d0ba-4b6d-9bb7-f37280c103b8"]]
691
+  (0.1ms) SAVEPOINT active_record_1
692
+ SQL (0.3ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-05-11 23:29:27.400020"], ["id", 18]]
693
+  (0.1ms) RELEASE SAVEPOINT active_record_1
694
+ Redirected to http://test.host/dbhero/dataclips/81160b75-d0ba-4b6d-9bb7-f37280c103b8/edit
695
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
696
+  (0.1ms) ROLLBACK
697
+  (0.1ms) BEGIN
698
+  (0.1ms) SAVEPOINT active_record_1
699
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "foo bar"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 23:29:27.404347"], ["updated_at", "2015-05-11 23:29:27.404347"], ["token", "a15247c0-72a2-4b52-898b-102806a9840d"]]
700
+  (0.1ms) RELEASE SAVEPOINT active_record_1
701
+ Processing by Dbhero::DataclipsController#update as HTML
702
+ Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"a15247c0-72a2-4b52-898b-102806a9840d"}
703
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "a15247c0-72a2-4b52-898b-102806a9840d"]]
704
+  (0.1ms) SAVEPOINT active_record_1
705
+ SQL (0.4ms) UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-05-11 23:29:27.407765"], ["id", 19]]
706
+  (0.2ms) RELEASE SAVEPOINT active_record_1
707
+ Redirected to http://test.host/dbhero/dataclips/a15247c0-72a2-4b52-898b-102806a9840d/edit
708
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
709
+ Dbhero::Dataclip Load (0.3ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
710
+  (0.1ms) ROLLBACK
711
+  (0.1ms) BEGIN
712
+  (0.1ms) ROLLBACK
713
+  (0.1ms) BEGIN
714
+  (0.1ms) ROLLBACK
715
+  (0.1ms) BEGIN
716
+  (0.1ms) ROLLBACK
717
+  (0.1ms) BEGIN
718
+  (0.1ms) SAVEPOINT active_record_1
719
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.426672"], ["updated_at", "2015-05-11 23:29:27.426672"], ["token", "f38b2237-3f3b-4b8a-8875-8931bf1b4618"]]
720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
721
+  (0.1ms) ROLLBACK
722
+  (0.1ms) BEGIN
723
+  (0.2ms) SAVEPOINT active_record_1
724
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-05-09 23:29:27.428851"], ["created_at", "2015-05-11 23:29:27.429863"], ["token", "a318d25a-6d0d-49d1-a80f-0267defd70f1"]]
725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
726
+  (0.1ms) SAVEPOINT active_record_1
727
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-05-10 23:29:27.431270"], ["created_at", "2015-05-11 23:29:27.431905"], ["token", "b01f965b-d562-4bbe-82e9-4463f99b2735"]]
728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
729
+  (0.1ms) SAVEPOINT active_record_1
730
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["updated_at", "2015-05-07 23:29:27.432987"], ["created_at", "2015-05-11 23:29:27.433537"], ["token", "b32bf691-3f1a-4f67-af46-5aed47558bcd"]]
731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
732
+ Dbhero::Dataclip Load (0.7ms) SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
733
+  (0.1ms) ROLLBACK
734
+  (0.1ms) BEGIN
735
+  (0.1ms) SAVEPOINT active_record_1
736
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.437606"], ["updated_at", "2015-05-11 23:29:27.437606"], ["token", "5b60a208-bf96-432a-8cc0-5bdab08bf5f0"]]
737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
738
+  (0.1ms) ROLLBACK
739
+  (0.1ms) BEGIN
740
+  (0.1ms) SAVEPOINT active_record_1
741
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.440448"], ["updated_at", "2015-05-11 23:29:27.440448"], ["token", "7e7a92ae-9769-413b-b479-7603b991008a"]]
742
+  (0.2ms) RELEASE SAVEPOINT active_record_1
743
+  (0.1ms) ROLLBACK
744
+  (0.1ms) BEGIN
745
+  (0.1ms) SAVEPOINT active_record_1
746
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.443879"], ["updated_at", "2015-05-11 23:29:27.443879"], ["token", "0bb7f198-32e1-4684-9599-f7580f70e668"]]
747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
748
+  (0.1ms) ROLLBACK
749
+  (0.1ms) BEGIN
750
+  (0.1ms) SAVEPOINT active_record_1
751
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-05-11 23:29:27.446840"], ["updated_at", "2015-05-11 23:29:27.446840"], ["token", "8b881f3a-dd81-434c-b4dc-525b9f466dc9"]]
752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
753
+  (0.1ms) SAVEPOINT active_record_1
754
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
755
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
756
+  (0.1ms) ROLLBACK
757
+  (0.1ms) BEGIN
758
+  (0.1ms) SAVEPOINT active_record_1
759
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo"], ["created_at", "2015-05-11 23:29:27.450180"], ["updated_at", "2015-05-11 23:29:27.450180"], ["token", "22651ce4-b572-4f65-a43a-3341e23d3224"]]
760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
761
+  (0.1ms) SAVEPOINT active_record_1
762
+  (0.3ms) select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
763
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
764
+  (0.2ms) ROLLBACK
765
+  (0.1ms) BEGIN
766
+  (0.1ms) SAVEPOINT active_record_1
767
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-05-11 23:29:27.453856"], ["updated_at", "2015-05-11 23:29:27.453856"], ["token", "f318937e-c654-4681-8a3f-eb3f0a343fc3"]]
768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
769
+  (0.1ms) SAVEPOINT active_record_1
770
+  (0.1ms) select 'foo'::text as bar, 'bar'::text as foo
771
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
772
+  (0.2ms) ROLLBACK
773
+  (0.1ms) BEGIN
774
+  (0.1ms) SAVEPOINT active_record_1
775
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-05-11 23:29:27.458451"], ["updated_at", "2015-05-11 23:29:27.458451"], ["token", "7b046db5-6d43-4cb0-8987-186b6d5bc9fb"]]
776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
777
+  (0.1ms) SAVEPOINT active_record_1
778
+  (0.2ms) select 'foo'::text as bar, 'bar'::text as foo
779
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
780
+  (0.1ms) ROLLBACK
781
+  (0.1ms) BEGIN
782
+  (0.1ms) SAVEPOINT active_record_1
783
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.462083"], ["updated_at", "2015-05-11 23:29:27.462083"], ["token", "49a8a2e4-ce81-4a6b-bede-40976eaa3c5d"]]
784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
785
+  (0.1ms) SAVEPOINT active_record_1
786
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.463651"], ["updated_at", "2015-05-11 23:29:27.463651"], ["token", "a3e16613-5f75-4cc2-9234-5a1e5e987d76"]]
787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
788
+  (0.1ms) SAVEPOINT active_record_1
789
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.465056"], ["updated_at", "2015-05-11 23:29:27.465056"], ["token", "1d102a01-d789-42ed-a578-b560ef380a62"]]
790
+  (0.1ms) RELEASE SAVEPOINT active_record_1
791
+  (0.1ms) SAVEPOINT active_record_1
792
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.466563"], ["updated_at", "2015-05-11 23:29:27.466563"], ["token", "a4e84e35-80b7-4e50-a23d-696098cc1560"]]
793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
794
+  (0.1ms) SAVEPOINT active_record_1
795
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.467960"], ["updated_at", "2015-05-11 23:29:27.467960"], ["token", "46f3dcbf-0893-4ef2-8feb-be2ea4fb28a1"]]
796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
797
+  (0.1ms) SAVEPOINT active_record_1
798
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips"], ["created_at", "2015-05-11 23:29:27.469417"], ["updated_at", "2015-05-11 23:29:27.469417"], ["token", "efb34765-5790-46e6-ac8d-ee8e2d8a5338"]]
799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
800
+  (0.1ms) SAVEPOINT active_record_1
801
+  (3.6ms) TRUNCATE table dbhero_dataclips
802
+  (1.4ms) ROLLBACK TO SAVEPOINT active_record_1
803
+  (0.5ms) SELECT COUNT(*) FROM "dbhero_dataclips"
804
+  (0.1ms) ROLLBACK
805
+  (0.1ms) BEGIN
806
+  (0.1ms) SAVEPOINT active_record_1
807
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.479020"], ["updated_at", "2015-05-11 23:29:27.479020"], ["token", "a035b5f8-c918-4433-bad1-c1945a0a7939"]]
808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
809
+  (0.1ms) SAVEPOINT active_record_1
810
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.480723"], ["updated_at", "2015-05-11 23:29:27.480723"], ["token", "489805f2-4b9b-4353-916f-156d107fa32a"]]
811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
812
+  (0.1ms) SAVEPOINT active_record_1
813
+ SQL (0.3ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.482249"], ["updated_at", "2015-05-11 23:29:27.482249"], ["token", "eb20c735-7b0a-4879-98f5-ff8ef8ebec07"]]
814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
815
+  (0.1ms) SAVEPOINT active_record_1
816
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.483878"], ["updated_at", "2015-05-11 23:29:27.483878"], ["token", "29c0c5fd-5598-4c88-b06e-dfb7d3853440"]]
817
+  (0.1ms) RELEASE SAVEPOINT active_record_1
818
+  (0.1ms) SAVEPOINT active_record_1
819
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 23:29:27.485271"], ["updated_at", "2015-05-11 23:29:27.485271"], ["token", "c8013ac0-bf9a-46c9-9dbc-f3ae716604e2"]]
820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
821
+  (0.1ms) SAVEPOINT active_record_1
822
+ SQL (0.2ms) INSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["description", "Dummy query\nwich describes a dummy string and database version"], ["raw_query", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-05-11 23:29:27.486712"], ["updated_at", "2015-05-11 23:29:27.486712"], ["token", "999c0fbf-31db-4b5d-80a6-20309fb9a85a"]]
823
+  (0.1ms) RELEASE SAVEPOINT active_record_1
824
+  (0.1ms) SAVEPOINT active_record_1
825
+  (0.2ms) TRUNCATE table dbhero_dataclips; commit;
826
+ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
412
827
  : TRUNCATE table dbhero_dataclips; commit;
413
828
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
414
829
   (0.3ms) SELECT COUNT(*) FROM "dbhero_dataclips"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbhero
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva