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 +4 -4
- data/lib/dbhero/gdrive_exporter.rb +3 -10
- data/lib/dbhero/version.rb +1 -1
- data/spec/dummy/log/test.log +415 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 633317ca7d2af12ea2e0eca574ebcb9567560f7b
|
4
|
+
data.tar.gz: 7afc6888568de33a814150453ebf7e9f044c1b6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/dbhero/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -409,6 +409,421 @@ Completed 302 Found in 6ms (ActiveRecord: 1.3ms)
|
|
409
409
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
410
410
|
[1m[36m (0.2ms)[0m [1mTRUNCATE table dbhero_dataclips; commit;[0m
|
411
411
|
PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
|
412
|
+
: TRUNCATE table dbhero_dataclips; commit;
|
413
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
414
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "dbhero_dataclips"[0m
|
415
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
416
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
417
|
+
[1m[36m (116.0ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
418
|
+
[1m[35m (377.8ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode'
|
419
|
+
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
420
|
+
[1m[35m (8.5ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")[0m
|
422
|
+
[1m[35m (1.4ms)[0m CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
|
423
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
424
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
425
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
426
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
|
427
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
428
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
429
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
430
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
431
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
432
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
437
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
442
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
443
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
444
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
445
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
446
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
451
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
452
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
453
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
454
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
455
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
460
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
465
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
466
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
467
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
468
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
469
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
474
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
479
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
480
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
481
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
482
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
483
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
488
|
+
[1m[35m (0.1ms)[0m BEGIN
|
489
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
490
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
491
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
492
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
494
|
+
Redirected to http://test.host/dbhero/dataclips/eeef1bbe-b2c9-405a-92cd-1a23a3e8a60b/edit
|
495
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
496
|
+
[1m[35mDbhero::Dataclip Load (0.5ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
|
497
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
498
|
+
[1m[35m (0.1ms)[0m BEGIN
|
499
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
500
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
501
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
502
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
504
|
+
Redirected to http://test.host/dbhero/dataclips/936fbd74-6805-40e9-b1ba-ad1eca5720f4/edit
|
505
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
506
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
507
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
508
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
509
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
510
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
511
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "user", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mDbhero::Dataclip Load (0.2ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1[0m [["description", "foo bar"]]
|
516
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
517
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
522
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
523
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
524
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
|
525
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
526
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
531
|
+
[1m[35m (0.1ms)[0m BEGIN
|
532
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
533
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
|
534
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
535
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
537
|
+
Redirected to http://test.host/dbhero/dataclips/ebf4ed5b-2c99-4ad9-a92f-8a7b2e08b4f9/edit
|
538
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
539
|
+
[1m[35mDbhero::Dataclip Load (0.2ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
|
540
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
541
|
+
[1m[35m (0.1ms)[0m BEGIN
|
542
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
543
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
549
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
550
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
551
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
553
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
554
|
+
Parameters: {"id"=>"51e2112b-03d4-458f-9c22-1e19e559cd36"}
|
555
|
+
[1m[36mDbhero::Dataclip Load (0.3ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "51e2112b-03d4-458f-9c22-1e19e559cd36"]]
|
556
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
557
|
+
[1m[36m (0.4ms)[0m [1mselect 'dummy_foo' as dummy_bar, vesion() as db_version[0m
|
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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
567
|
+
[1m[35m (0.1ms)[0m BEGIN
|
568
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
569
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
571
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
572
|
+
Parameters: {"id"=>"6d318786-63e4-4055-9a7c-beb43dbbd93b"}
|
573
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "6d318786-63e4-4055-9a7c-beb43dbbd93b"]]
|
574
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
575
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
585
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
586
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
587
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
593
|
+
[1m[35m (0.1ms)[0m BEGIN
|
594
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
595
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
597
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
598
|
+
Parameters: {"id"=>"f1ee2973-af2c-423b-9484-b6e0ccd46332"}
|
599
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "f1ee2973-af2c-423b-9484-b6e0ccd46332"]]
|
600
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
601
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
611
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
616
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
617
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
618
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mDbhero::Dataclip Load (0.3ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "a9337d96-e055-4907-8e96-505c6875a073"]]
|
623
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
624
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3[0m [["description", "updated"], ["updated_at", "2015-05-11 23:29:27.350813"], ["id", 12]]
|
625
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
629
|
+
[1m[35m (0.1ms)[0m BEGIN
|
630
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
631
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
633
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
634
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"30e85ad6-45e1-4fc1-bf65-a2e8d1b14152"}
|
635
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "30e85ad6-45e1-4fc1-bf65-a2e8d1b14152"]]
|
636
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
637
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
639
|
+
Redirected to http://test.host/dbhero/dataclips/30e85ad6-45e1-4fc1-bf65-a2e8d1b14152/edit
|
640
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
|
641
|
+
[1m[35mDbhero::Dataclip Load (0.2ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
|
642
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
643
|
+
[1m[35m (0.1ms)[0m BEGIN
|
644
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
645
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
647
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
648
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"2419e03a-d75c-4b66-a6f4-038d41e808c8"}
|
649
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "2419e03a-d75c-4b66-a6f4-038d41e808c8"]]
|
650
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
651
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
653
|
+
Redirected to http://test.host/dbhero/dataclips/2419e03a-d75c-4b66-a6f4-038d41e808c8/edit
|
654
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
|
655
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
656
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
657
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
658
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mDbhero::Dataclip Load (0.2ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "d02a4718-8f8c-4fe0-8604-ec3128536a55"]]
|
663
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
664
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3[0m [["description", "updated"], ["updated_at", "2015-05-11 23:29:27.381903"], ["id", 15]]
|
665
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mDbhero::Dataclip Load (0.2ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1[0m [["description", "updated"]]
|
669
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
670
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
671
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
672
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
678
|
+
[1m[35m (0.1ms)[0m BEGIN
|
679
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
680
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
682
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
|
683
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
684
|
+
[1m[35m (0.1ms)[0m BEGIN
|
685
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
686
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
688
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
689
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"81160b75-d0ba-4b6d-9bb7-f37280c103b8"}
|
690
|
+
[1m[35mDbhero::Dataclip Load (0.2ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "81160b75-d0ba-4b6d-9bb7-f37280c103b8"]]
|
691
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
692
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
694
|
+
Redirected to http://test.host/dbhero/dataclips/81160b75-d0ba-4b6d-9bb7-f37280c103b8/edit
|
695
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
|
696
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
697
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
698
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
699
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mDbhero::Dataclip Load (0.3ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "a15247c0-72a2-4b52-898b-102806a9840d"]]
|
704
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
705
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3[0m [["description", "updated"], ["updated_at", "2015-05-11 23:29:27.407765"], ["id", 19]]
|
706
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36mDbhero::Dataclip Load (0.3ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1[0m [["description", "updated"]]
|
710
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
711
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
712
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
713
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
714
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
715
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
716
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
717
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
718
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
719
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
721
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
722
|
+
[1m[35m (0.1ms)[0m BEGIN
|
723
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
724
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
726
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
727
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "updated_at", "created_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
729
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
730
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
732
|
+
[1m[35mDbhero::Dataclip Load (0.7ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
|
733
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
734
|
+
[1m[35m (0.1ms)[0m BEGIN
|
735
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
736
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
738
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
739
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
740
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
741
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
743
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
744
|
+
[1m[35m (0.1ms)[0m BEGIN
|
745
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
746
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
748
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
749
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
750
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
751
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
753
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
754
|
+
[1m[35m (0.2ms)[0m select 'foo'::text as bar, 'bar'::text as foo
|
755
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
756
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
757
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
758
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
759
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
761
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
762
|
+
[1m[35m (0.3ms)[0m select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
|
763
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
764
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
765
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
766
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
767
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
769
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
770
|
+
[1m[35m (0.1ms)[0m select 'foo'::text as bar, 'bar'::text as foo
|
771
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
772
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
773
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
774
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
775
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
777
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
778
|
+
[1m[35m (0.2ms)[0m select 'foo'::text as bar, 'bar'::text as foo
|
779
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
780
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
781
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
782
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
783
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
785
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
786
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
788
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
789
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
791
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
792
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
794
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
795
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
797
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
798
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
800
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
801
|
+
[1m[36m (3.6ms)[0m [1mTRUNCATE table dbhero_dataclips[0m
|
802
|
+
[1m[35m (1.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
803
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "dbhero_dataclips"[0m
|
804
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
805
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
806
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
807
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
809
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
810
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
812
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
813
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
815
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
816
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
818
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
819
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "dbhero_dataclips" ("description", "raw_query", "created_at", "updated_at", "token") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
821
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
822
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
824
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
825
|
+
[1m[36m (0.2ms)[0m [1mTRUNCATE table dbhero_dataclips; commit;[0m
|
826
|
+
PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
|
412
827
|
: TRUNCATE table dbhero_dataclips; commit;
|
413
828
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
414
829
|
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "dbhero_dataclips"[0m
|