dbhero 1.1.1 → 1.1.2
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 +1 -3
- data/lib/dbhero/version.rb +1 -1
- data/spec/dummy/log/test.log +415 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c1a180b185d86fbfb4717bd53bbb784db4103f9
|
4
|
+
data.tar.gz: e7a3fe86f1f43cc009f07d2f7eafd8e137be918f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d3e8787db13860de1bfde97f408aa96be8d380243368db6db4c588f63f497524424786e34da0d8927aa6bf3300b3162df4d823536ccc9142cd2a2c6553cc67
|
7
|
+
data.tar.gz: 974c63bb933b830f04217e69679b2b298aa96a858fd5ddaf8532713806eeecd869c2c57fde8eb80ab9c18283541467305d92468f5d540b8a2bbe0968bfe5b2b3
|
@@ -37,9 +37,7 @@ module Dbhero
|
|
37
37
|
def find_or_create_spreadsheet!
|
38
38
|
file_title = "DBHero - #{@dataclip.title}"
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
worksheet = (spreadsheet || upload_from_string(file_title)).worksheets[0]
|
40
|
+
worksheet = upload_from_string(file_title).worksheets[0]
|
43
41
|
worksheet[1,1] = "=importData(\"#{@options[:import_data_url]}\")"
|
44
42
|
worksheet.save
|
45
43
|
|
data/lib/dbhero/version.rb
CHANGED
@@ -0,0 +1,415 @@
|
|
1
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2
|
+
[1m[36m (119.9ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
3
|
+
[1m[35m (259.5ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode'
|
4
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
5
|
+
[1m[35m (14.3ms)[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)
|
6
|
+
[1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")[0m
|
7
|
+
[1m[35m (1.4ms)[0m CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
|
8
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
9
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
10
|
+
[1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
|
12
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
13
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
14
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
15
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
|
16
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
18
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
19
|
+
Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
|
20
|
+
Completed 200 OK in 20ms (Views: 19.0ms | ActiveRecord: 0.0ms)
|
21
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
22
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
24
|
+
Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
|
25
|
+
Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
|
26
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
29
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
30
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
31
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
32
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
33
|
+
Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
|
34
|
+
Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
35
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
36
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
37
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
38
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
39
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
40
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
41
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
42
|
+
Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.3ms)
|
43
|
+
Completed 200 OK in 41ms (Views: 5.6ms | ActiveRecord: 9.5ms)
|
44
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
45
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
46
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
47
|
+
Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
|
48
|
+
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
49
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
50
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
51
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
52
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
|
53
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
54
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
55
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
56
|
+
Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
|
57
|
+
Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
|
58
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
59
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
60
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
61
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
62
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
63
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
64
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
65
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
66
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
67
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
68
|
+
[1m[36mSQL (3.1ms)[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 19:01:56.953852"], ["updated_at", "2015-05-11 19:01:56.953852"], ["token", "161b6b6b-fed4-4787-b570-12f6acec1086"]]
|
69
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
70
|
+
Redirected to http://test.host/dbhero/dataclips/161b6b6b-fed4-4787-b570-12f6acec1086/edit
|
71
|
+
Completed 302 Found in 27ms (ActiveRecord: 4.5ms)
|
72
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
73
|
+
[1m[35m (0.1ms)[0m BEGIN
|
74
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
75
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
76
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
77
|
+
[1m[35mSQL (0.4ms)[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 19:01:56.980684"], ["updated_at", "2015-05-11 19:01:56.980684"], ["token", "8c58c622-37fb-46fa-b2d1-346baf152004"]]
|
78
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
79
|
+
Redirected to http://test.host/dbhero/dataclips/8c58c622-37fb-46fa-b2d1-346baf152004/edit
|
80
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
|
81
|
+
[1m[35mDbhero::Dataclip Load (0.4ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
|
82
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
83
|
+
[1m[35m (0.2ms)[0m BEGIN
|
84
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
85
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
86
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
87
|
+
[1m[35mSQL (0.6ms)[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 19:01:56.997058"], ["updated_at", "2015-05-11 19:01:56.997058"], ["token", "3e314ef5-c3cf-46e7-831e-4b1780a9f1ca"]]
|
88
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89
|
+
Redirected to http://test.host/dbhero/dataclips/3e314ef5-c3cf-46e7-831e-4b1780a9f1ca/edit
|
90
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
|
91
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
92
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
93
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
94
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
95
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
96
|
+
[1m[36mSQL (0.4ms)[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 19:01:57.008985"], ["updated_at", "2015-05-11 19:01:57.008985"], ["token", "8949e325-1549-4f4f-9ce3-7c7b9e88eb83"]]
|
97
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
98
|
+
Redirected to http://test.host/dbhero/dataclips/8949e325-1549-4f4f-9ce3-7c7b9e88eb83/edit
|
99
|
+
Completed 302 Found in 10ms (ActiveRecord: 0.7ms)
|
100
|
+
[1m[36mDbhero::Dataclip Load (1.1ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1[0m [["description", "foo bar"]]
|
101
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
102
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
103
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
104
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
105
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
106
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
107
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
108
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
109
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
|
110
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
111
|
+
[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", "foo bar disabled"], ["raw_query", "select 'foo' as bar"], ["created_at", "2015-05-11 19:01:57.033504"], ["updated_at", "2015-05-11 19:01:57.033504"], ["token", "73bb996f-c65c-486b-9c11-791275d8516b"]]
|
112
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
113
|
+
Redirected to http://test.host/dbhero/dataclips/73bb996f-c65c-486b-9c11-791275d8516b/edit
|
114
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
|
115
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
116
|
+
[1m[35m (0.1ms)[0m BEGIN
|
117
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
118
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
|
119
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
120
|
+
[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 19:01:57.041962"], ["updated_at", "2015-05-11 19:01:57.041962"], ["token", "2ecfb419-cd4d-4b5b-b3ca-678eb004b823"]]
|
121
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
122
|
+
Redirected to http://test.host/dbhero/dataclips/2ecfb419-cd4d-4b5b-b3ca-678eb004b823/edit
|
123
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
|
124
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
|
125
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
126
|
+
[1m[35m (0.1ms)[0m BEGIN
|
127
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
128
|
+
[1m[35mSQL (0.5ms)[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 19:01:57.048374"], ["updated_at", "2015-05-11 19:01:57.048374"], ["token", "5700f3da-5724-4950-a6ba-3fb1eeb590ee"]]
|
129
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
130
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
131
|
+
Parameters: {"id"=>"5700f3da-5724-4950-a6ba-3fb1eeb590ee"}
|
132
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
133
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
134
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
135
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
136
|
+
[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 19:01:57.064889"], ["updated_at", "2015-05-11 19:01:57.064889"], ["token", "fa58c769-a3f1-43e1-b5ba-938def13d322"]]
|
137
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
138
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
139
|
+
Parameters: {"id"=>"fa58c769-a3f1-43e1-b5ba-938def13d322"}
|
140
|
+
[1m[36mDbhero::Dataclip Load (1.1ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "fa58c769-a3f1-43e1-b5ba-938def13d322"]]
|
141
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
142
|
+
[1m[36m (0.8ms)[0m [1mselect 'dummy_foo' as dummy_bar, vesion() as db_version[0m
|
143
|
+
PG::UndefinedFunction: ERROR: function vesion() does not exist
|
144
|
+
LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
145
|
+
^
|
146
|
+
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
|
147
|
+
: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
148
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
149
|
+
Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
|
150
|
+
Completed 200 OK in 12ms (Views: 2.9ms | ActiveRecord: 2.4ms)
|
151
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
152
|
+
[1m[35m (0.1ms)[0m BEGIN
|
153
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
154
|
+
[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 19:01:57.083400"], ["updated_at", "2015-05-11 19:01:57.083400"], ["token", "2d96da7d-9fa7-4b71-944b-6bc9201a21b0"]]
|
155
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
156
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
157
|
+
Parameters: {"id"=>"2d96da7d-9fa7-4b71-944b-6bc9201a21b0"}
|
158
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "2d96da7d-9fa7-4b71-944b-6bc9201a21b0"]]
|
159
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
160
|
+
[1m[35m (0.4ms)[0m select 'dummy_foo' as dummy_bar, vesion() as db_version
|
161
|
+
PG::UndefinedFunction: ERROR: function vesion() does not exist
|
162
|
+
LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
163
|
+
^
|
164
|
+
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
|
165
|
+
: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
166
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
167
|
+
Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
|
168
|
+
Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.9ms)
|
169
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
170
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
171
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
172
|
+
[1m[36mSQL (0.6ms)[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 19:01:57.091698"], ["updated_at", "2015-05-11 19:01:57.091698"], ["token", "df5902ec-09b0-4764-a03c-7826d29817a0"]]
|
173
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
174
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
175
|
+
Parameters: {"id"=>"df5902ec-09b0-4764-a03c-7826d29817a0"}
|
176
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
177
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
178
|
+
[1m[35m (0.1ms)[0m BEGIN
|
179
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
180
|
+
[1m[35mSQL (0.6ms)[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 19:01:57.098399"], ["updated_at", "2015-05-11 19:01:57.098399"], ["token", "349a6cd2-62f4-4754-9c8c-43e54663686c"]]
|
181
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
182
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
183
|
+
Parameters: {"id"=>"349a6cd2-62f4-4754-9c8c-43e54663686c"}
|
184
|
+
[1m[35mDbhero::Dataclip Load (0.5ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "349a6cd2-62f4-4754-9c8c-43e54663686c"]]
|
185
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
186
|
+
[1m[35m (0.5ms)[0m select 'dummy_foo' as dummy_bar, vesion() as db_version
|
187
|
+
PG::UndefinedFunction: ERROR: function vesion() does not exist
|
188
|
+
LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
189
|
+
^
|
190
|
+
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
|
191
|
+
: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
192
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
193
|
+
Rendered /Users/diogo/Projects/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
|
194
|
+
Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 1.6ms)
|
195
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
196
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
197
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
198
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
199
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
200
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
201
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
202
|
+
[1m[35m (0.9ms)[0m SAVEPOINT active_record_1
|
203
|
+
[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 19:01:57.119800"], ["updated_at", "2015-05-11 19:01:57.119800"], ["token", "bebcb621-a50d-437d-826b-b2cd4748c10a"]]
|
204
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
205
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
206
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"bebcb621-a50d-437d-826b-b2cd4748c10a"}
|
207
|
+
[1m[36mDbhero::Dataclip Load (0.4ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "bebcb621-a50d-437d-826b-b2cd4748c10a"]]
|
208
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
209
|
+
[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 19:01:57.126244"], ["id", 12]]
|
210
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
211
|
+
Redirected to http://test.host/dbhero/dataclips/bebcb621-a50d-437d-826b-b2cd4748c10a/edit
|
212
|
+
Completed 302 Found in 11ms (ActiveRecord: 1.1ms)
|
213
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
214
|
+
[1m[35m (0.1ms)[0m BEGIN
|
215
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
216
|
+
[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 19:01:57.138560"], ["updated_at", "2015-05-11 19:01:57.138560"], ["token", "9aee3a55-cdc1-4a97-847d-41ebb86e18d5"]]
|
217
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
218
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
219
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"9aee3a55-cdc1-4a97-847d-41ebb86e18d5"}
|
220
|
+
[1m[35mDbhero::Dataclip Load (0.4ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "9aee3a55-cdc1-4a97-847d-41ebb86e18d5"]]
|
221
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
222
|
+
[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 19:01:57.142513"], ["id", 13]]
|
223
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
224
|
+
Redirected to http://test.host/dbhero/dataclips/9aee3a55-cdc1-4a97-847d-41ebb86e18d5/edit
|
225
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
226
|
+
[1m[35mDbhero::Dataclip Load (0.2ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
|
227
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
228
|
+
[1m[35m (0.1ms)[0m BEGIN
|
229
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
230
|
+
[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 19:01:57.147960"], ["updated_at", "2015-05-11 19:01:57.147960"], ["token", "0a637e35-2f0e-4c7e-9721-14c1bd205f6f"]]
|
231
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
232
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
233
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"0a637e35-2f0e-4c7e-9721-14c1bd205f6f"}
|
234
|
+
[1m[35mDbhero::Dataclip Load (0.6ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "0a637e35-2f0e-4c7e-9721-14c1bd205f6f"]]
|
235
|
+
[1m[36m (3.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
236
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-05-11 19:01:57.167461"], ["id", 14]]
|
237
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238
|
+
Redirected to http://test.host/dbhero/dataclips/0a637e35-2f0e-4c7e-9721-14c1bd205f6f/edit
|
239
|
+
Completed 302 Found in 18ms (ActiveRecord: 4.3ms)
|
240
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
241
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
242
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
243
|
+
[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 19:01:57.175073"], ["updated_at", "2015-05-11 19:01:57.175073"], ["token", "93eab345-5db9-4659-8e7f-6a4567c83612"]]
|
244
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
245
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
246
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"93eab345-5db9-4659-8e7f-6a4567c83612"}
|
247
|
+
[1m[36mDbhero::Dataclip Load (0.2ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "93eab345-5db9-4659-8e7f-6a4567c83612"]]
|
248
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
249
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3[0m [["description", "updated"], ["updated_at", "2015-05-11 19:01:57.179429"], ["id", 15]]
|
250
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
251
|
+
Redirected to http://test.host/dbhero/dataclips/93eab345-5db9-4659-8e7f-6a4567c83612/edit
|
252
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
253
|
+
[1m[36mDbhero::Dataclip Load (0.3ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1[0m [["description", "updated"]]
|
254
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
255
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
256
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
257
|
+
[1m[36mSQL (0.6ms)[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 19:01:57.186954"], ["updated_at", "2015-05-11 19:01:57.186954"], ["token", "7121e8c2-6988-4a00-9d6b-82ab4dc4f7eb"]]
|
258
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
259
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
260
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"7121e8c2-6988-4a00-9d6b-82ab4dc4f7eb"}
|
261
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
|
262
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
263
|
+
[1m[35m (0.1ms)[0m BEGIN
|
264
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
265
|
+
[1m[35mSQL (0.7ms)[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 19:01:57.195947"], ["updated_at", "2015-05-11 19:01:57.195947"], ["token", "7034f720-c96f-42f8-abf3-f36fb5b0086c"]]
|
266
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
267
|
+
[1m[35mDbhero::Dataclip Load (0.7ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
|
268
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
269
|
+
[1m[35m (0.2ms)[0m BEGIN
|
270
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
271
|
+
[1m[35mSQL (0.4ms)[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 19:01:57.205330"], ["updated_at", "2015-05-11 19:01:57.205330"], ["token", "f74ee3df-16f6-46ea-9598-3735db6caffc"]]
|
272
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
273
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
274
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"f74ee3df-16f6-46ea-9598-3735db6caffc"}
|
275
|
+
[1m[35mDbhero::Dataclip Load (1.1ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "f74ee3df-16f6-46ea-9598-3735db6caffc"]]
|
276
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
277
|
+
[1m[35mSQL (7.9ms)[0m UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-05-11 19:01:57.218953"], ["id", 18]]
|
278
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
279
|
+
Redirected to http://test.host/dbhero/dataclips/f74ee3df-16f6-46ea-9598-3735db6caffc/edit
|
280
|
+
Completed 302 Found in 33ms (ActiveRecord: 10.1ms)
|
281
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
282
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
283
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
284
|
+
[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 19:01:57.246199"], ["updated_at", "2015-05-11 19:01:57.246199"], ["token", "50d57269-0c3a-44bb-bb0d-657ba1358878"]]
|
285
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
286
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
287
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"50d57269-0c3a-44bb-bb0d-657ba1358878"}
|
288
|
+
[1m[36mDbhero::Dataclip Load (0.3ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "50d57269-0c3a-44bb-bb0d-657ba1358878"]]
|
289
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
290
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3[0m [["description", "updated"], ["updated_at", "2015-05-11 19:01:57.251752"], ["id", 19]]
|
291
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
292
|
+
Redirected to http://test.host/dbhero/dataclips/50d57269-0c3a-44bb-bb0d-657ba1358878/edit
|
293
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.3ms)
|
294
|
+
[1m[36mDbhero::Dataclip Load (1.5ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1[0m [["description", "updated"]]
|
295
|
+
[1m[35m (1.1ms)[0m ROLLBACK
|
296
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
297
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
298
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
299
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
300
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
301
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
302
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
303
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
304
|
+
[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 19:01:57.285371"], ["updated_at", "2015-05-11 19:01:57.285371"], ["token", "f9774efa-3576-472f-b073-2cbfeff61b42"]]
|
305
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
306
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
307
|
+
[1m[35m (0.2ms)[0m BEGIN
|
308
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
309
|
+
[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 19:01:57.289703"], ["created_at", "2015-05-11 19:01:57.292410"], ["token", "dadf7d9f-e220-4b75-8f7b-16a76e3934d1"]]
|
310
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
311
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
312
|
+
[1m[36mSQL (0.5ms)[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 19:01:57.294241"], ["created_at", "2015-05-11 19:01:57.295463"], ["token", "f4caf675-fe8e-48b9-be66-f15f02b1e9a4"]]
|
313
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
314
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
315
|
+
[1m[35mSQL (0.5ms)[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 19:01:57.297460"], ["created_at", "2015-05-11 19:01:57.298479"], ["token", "54261e2b-61a9-49d4-ae4e-e6094ba903f1"]]
|
316
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
317
|
+
[1m[35mDbhero::Dataclip Load (2.2ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
|
318
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
319
|
+
[1m[35m (0.1ms)[0m BEGIN
|
320
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
321
|
+
[1m[35mSQL (0.4ms)[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 19:01:57.306876"], ["updated_at", "2015-05-11 19:01:57.306876"], ["token", "c847fa55-c4ee-4745-a4aa-e8d106bba080"]]
|
322
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
324
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
325
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
326
|
+
[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 19:01:57.312354"], ["updated_at", "2015-05-11 19:01:57.312354"], ["token", "bab87d28-725a-45b4-927b-aefa5f955154"]]
|
327
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
328
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
329
|
+
[1m[35m (0.1ms)[0m BEGIN
|
330
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
331
|
+
[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", "title\ndescription\nfoo"], ["raw_query", "select 'dummy_foo' as dummy_bar, vesion() as db_version"], ["created_at", "2015-05-11 19:01:57.316414"], ["updated_at", "2015-05-11 19:01:57.316414"], ["token", "9c99a5a8-d500-4894-b8e8-c8654222244e"]]
|
332
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
333
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
334
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
335
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
336
|
+
[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 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-05-11 19:01:57.319776"], ["updated_at", "2015-05-11 19:01:57.319776"], ["token", "1d83c1e6-f661-4e57-b846-144f7968296e"]]
|
337
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
338
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
339
|
+
[1m[35m (0.2ms)[0m select 'foo'::text as bar, 'bar'::text as foo
|
340
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
341
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
342
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
343
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
344
|
+
[1m[36mSQL (0.6ms)[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 19:01:57.326252"], ["updated_at", "2015-05-11 19:01:57.326252"], ["token", "3c36f907-8173-4168-bddb-d655231ba6d4"]]
|
345
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
346
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
347
|
+
[1m[35m (0.7ms)[0m select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
|
348
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
349
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
350
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
351
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
352
|
+
[1m[36mSQL (0.5ms)[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 19:01:57.333033"], ["updated_at", "2015-05-11 19:01:57.333033"], ["token", "c937d6d2-ef59-47dc-8b33-1784b496aa6c"]]
|
353
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
354
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
355
|
+
[1m[35m (0.2ms)[0m select 'foo'::text as bar, 'bar'::text as foo
|
356
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
357
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
358
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
359
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
360
|
+
[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 'foo'::text as bar, 'bar'::text as foo"], ["created_at", "2015-05-11 19:01:57.339226"], ["updated_at", "2015-05-11 19:01:57.339226"], ["token", "ead82051-5e45-4881-910a-b75d3da94a40"]]
|
361
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
362
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
363
|
+
[1m[35m (0.2ms)[0m select 'foo'::text as bar, 'bar'::text as foo
|
364
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
365
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
366
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
367
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
368
|
+
[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 19:01:57.343130"], ["updated_at", "2015-05-11 19:01:57.343130"], ["token", "71f8b15a-e36c-41cb-97e0-c3f4c865d6ff"]]
|
369
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
370
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
371
|
+
[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 19:01:57.345151"], ["updated_at", "2015-05-11 19:01:57.345151"], ["token", "4c8b99ee-54fc-4574-b9f0-a74c2a25383d"]]
|
372
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
373
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
374
|
+
[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 19:01:57.346636"], ["updated_at", "2015-05-11 19:01:57.346636"], ["token", "0cf57af0-0694-4a70-beeb-9fbe8f9510fc"]]
|
375
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
376
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
377
|
+
[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 19:01:57.348056"], ["updated_at", "2015-05-11 19:01:57.348056"], ["token", "d091caac-0619-4f6b-919f-eae0145f9206"]]
|
378
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
379
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
380
|
+
[1m[36mSQL (0.5ms)[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 19:01:57.355605"], ["updated_at", "2015-05-11 19:01:57.355605"], ["token", "f267a956-7114-482f-b3d8-53c2f7b1c667"]]
|
381
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
382
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
383
|
+
[1m[35mSQL (3.6ms)[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 19:01:57.359897"], ["updated_at", "2015-05-11 19:01:57.359897"], ["token", "cccd2190-b232-42a1-865f-8ed4010688f1"]]
|
384
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
385
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
386
|
+
[1m[36m (4.7ms)[0m [1mTRUNCATE table dbhero_dataclips[0m
|
387
|
+
[1m[35m (1.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
388
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "dbhero_dataclips"[0m
|
389
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
390
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
391
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
392
|
+
[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 19:01:57.378312"], ["updated_at", "2015-05-11 19:01:57.378312"], ["token", "03444784-b47f-41a7-ad0b-746e86033d08"]]
|
393
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
394
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
395
|
+
[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 19:01:57.381317"], ["updated_at", "2015-05-11 19:01:57.381317"], ["token", "d60c231b-0db2-48be-a9ee-1e41f60cd4b5"]]
|
396
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
397
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
398
|
+
[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 19:01:57.383483"], ["updated_at", "2015-05-11 19:01:57.383483"], ["token", "cf42cd7c-9bdd-4ce6-8d83-79917a98d134"]]
|
399
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
400
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
401
|
+
[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 19:01:57.385189"], ["updated_at", "2015-05-11 19:01:57.385189"], ["token", "b0d4b2bd-1882-4c4d-acb1-0e3c74e7d37b"]]
|
402
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
403
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
404
|
+
[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 19:01:57.387305"], ["updated_at", "2015-05-11 19:01:57.387305"], ["token", "8327657d-a8a5-46fb-8f45-fbf3250f4e20"]]
|
405
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
406
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
407
|
+
[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", "TRUNCATE table dbhero_dataclips; commit;"], ["created_at", "2015-05-11 19:01:57.389593"], ["updated_at", "2015-05-11 19:01:57.389593"], ["token", "0668ed78-a8d8-4767-af11-c0e42efcd013"]]
|
408
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
409
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
410
|
+
[1m[36m (0.2ms)[0m [1mTRUNCATE table dbhero_dataclips; commit;[0m
|
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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dbhero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antônio Roberto Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -233,6 +233,7 @@ files:
|
|
233
233
|
- spec/dummy/db/migrate/20150323172444_create_dbhero_dataclips.rb
|
234
234
|
- spec/dummy/db/schema.rb
|
235
235
|
- spec/dummy/log/development.log
|
236
|
+
- spec/dummy/log/test.log
|
236
237
|
- spec/dummy/public/404.html
|
237
238
|
- spec/dummy/public/422.html
|
238
239
|
- spec/dummy/public/500.html
|
@@ -298,6 +299,7 @@ test_files:
|
|
298
299
|
- spec/dummy/db/migrate/20150323172444_create_dbhero_dataclips.rb
|
299
300
|
- spec/dummy/db/schema.rb
|
300
301
|
- spec/dummy/log/development.log
|
302
|
+
- spec/dummy/log/test.log
|
301
303
|
- spec/dummy/public/404.html
|
302
304
|
- spec/dummy/public/422.html
|
303
305
|
- spec/dummy/public/500.html
|