dbhero 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/dbhero/application.js +5 -16
- data/app/assets/javascripts/dbhero/dataclips.js +69 -28
- data/app/controllers/dbhero/dataclips_controller.rb +2 -1
- data/app/views/dbhero/dataclips/_clip_table.html.slim +40 -36
- data/app/views/dbhero/dataclips/edit.html.slim +10 -2
- data/app/views/layouts/dbhero/application.html.slim +11 -3
- data/lib/dbhero/configuration.rb +3 -1
- data/lib/dbhero/gdrive_exporter.rb +2 -2
- data/lib/dbhero/version.rb +1 -1
- data/lib/generators/dbhero/install/templates/dbhero.rb +5 -0
- data/spec/dummy/log/test.log +415 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9618573ac123e59a6eb934c9703b7f052ab0d968
|
4
|
+
data.tar.gz: 17770f182841c085074d418624b8e1423181e9bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fb1828ca421b7e4af3667cf7116e591957d0c7f9d718c55c43794c1ec3355a0bd0483220ac78e7a0bee5eee78b86e5d65a7a2843eeb9b1718eb629a2a8921ac
|
7
|
+
data.tar.gz: 50bad8869d5f442355cb7ef36197f4f9f8a9f5e4e5cb3a5325c370329ef5ea20f0c238bcb839df5278db6779f5f8db864973dc6171cbfe224c7ee487851092d0
|
@@ -13,6 +13,10 @@
|
|
13
13
|
//= require jquery
|
14
14
|
//= require_tree .
|
15
15
|
|
16
|
+
var Dbhero = {
|
17
|
+
Dataclips: {}
|
18
|
+
};
|
19
|
+
|
16
20
|
$(function(){
|
17
21
|
|
18
22
|
$('.dropdown-button').dropdown({
|
@@ -26,20 +30,5 @@ $(function(){
|
|
26
30
|
}
|
27
31
|
);
|
28
32
|
|
29
|
-
|
30
|
-
var $table = $('table#clip_table')
|
31
|
-
|
32
|
-
$table.dataTable({
|
33
|
-
scrollX: true,
|
34
|
-
searching: false,
|
35
|
-
lengthChange: false,
|
36
|
-
pagingType: 'simple'
|
37
|
-
});
|
38
|
-
|
39
|
-
//$table.floatThead({
|
40
|
-
// scrollingTop: 'pageTop',
|
41
|
-
//});
|
42
|
-
} catch(e) {
|
43
|
-
console.log(e);
|
44
|
-
}
|
33
|
+
Dbhero.Dataclips.LoadDatatable();
|
45
34
|
});
|
@@ -1,42 +1,83 @@
|
|
1
1
|
$(function(){
|
2
|
+
Dbhero.Dataclips.LoadDatatable = function() {
|
3
|
+
if($('.dataTables_wrapper').length < 1) {
|
4
|
+
try {
|
5
|
+
var $table = $('table#clip_table');
|
2
6
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
+
$table.dataTable({
|
8
|
+
scrollX: true,
|
9
|
+
searching: false,
|
10
|
+
lengthChange: false,
|
11
|
+
pagingType: 'simple'
|
12
|
+
});
|
7
13
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
'class': textarea.attr('class')
|
14
|
-
}).insertBefore(textarea);
|
14
|
+
} catch(e) {
|
15
|
+
console.log(e);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
};
|
15
19
|
|
16
|
-
|
20
|
+
Dbhero.Dataclips.Editor = {
|
21
|
+
render: function() {
|
22
|
+
this.textarea = $('textarea#dataclip_raw_query');
|
23
|
+
this.buildAndInsertEditor();
|
17
24
|
|
18
|
-
|
19
|
-
|
25
|
+
try {
|
26
|
+
this.textarea.css('display', 'none');
|
27
|
+
this.startAce();
|
20
28
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
29
|
+
$('.ace_editor').css({'padding':'0'});
|
30
|
+
} catch(e) {
|
31
|
+
console.log(e);
|
32
|
+
this.textarea.css('display', 'block');
|
33
|
+
}
|
26
34
|
|
27
|
-
|
28
|
-
|
29
|
-
|
35
|
+
var that = this;
|
36
|
+
this.textarea.closest('form').submit(function () {
|
37
|
+
that.textarea.val(that.ace_editor.getSession().getValue());
|
38
|
+
});
|
39
|
+
},
|
30
40
|
|
31
|
-
|
41
|
+
buildAndInsertEditor: function() {
|
42
|
+
this.editor = $('<div>', {
|
43
|
+
id: "ace_editor",
|
44
|
+
position: 'absolute',
|
45
|
+
width: this.textarea.width(),
|
46
|
+
height: this.textarea.height(),
|
47
|
+
class: this.textarea.attr('class')
|
48
|
+
});
|
32
49
|
|
33
|
-
|
34
|
-
|
35
|
-
|
50
|
+
this.editor.insertBefore(this.textarea);
|
51
|
+
this.editor.css({ 'font-size': '15px' })
|
52
|
+
|
53
|
+
return this;
|
54
|
+
},
|
55
|
+
|
56
|
+
startAce: function() {
|
57
|
+
this.ace_editor = ace.edit(this.editor[0]);
|
58
|
+
this.ace_editor.renderer.setShowGutter(true);
|
36
59
|
|
37
|
-
|
38
|
-
|
60
|
+
this.ace_editor.getSession().setUseWrapMode(true);
|
61
|
+
this.ace_editor.getSession().setValue(this.textarea.val());
|
62
|
+
this.ace_editor.getSession().setTabSize(2);
|
63
|
+
this.ace_editor.getSession().setUseSoftTabs(true);
|
64
|
+
this.ace_editor.getSession().setMode("ace/mode/pgsql");
|
65
|
+
this.ace_editor.setTheme("ace/theme/xcode");
|
66
|
+
|
67
|
+
return this;
|
39
68
|
}
|
69
|
+
};
|
70
|
+
|
71
|
+
if($('textarea#dataclip_raw_query').length > 0){
|
72
|
+
Dbhero.Dataclips.Editor.render();
|
73
|
+
}
|
40
74
|
|
75
|
+
if($('.fetch-remote-clip-table').length > 0){
|
76
|
+
var $fetchremote = $('.fetch-remote-clip-table');
|
77
|
+
$.get($fetchremote.data('path'), function(response) {
|
78
|
+
$fetchremote.html(response);
|
79
|
+
Dbhero.Dataclips.LoadDatatable();
|
80
|
+
});
|
81
|
+
}
|
41
82
|
});
|
42
83
|
|
@@ -27,11 +27,12 @@ module Dbhero
|
|
27
27
|
|
28
28
|
def show
|
29
29
|
check_auth if @dataclip.private?
|
30
|
-
|
31
30
|
@dataclip.query_result
|
32
31
|
|
33
32
|
respond_to do |format|
|
34
33
|
format.html do
|
34
|
+
return render :show, layout: false if request.xhr?
|
35
|
+
|
35
36
|
if params[:export_gdrive]
|
36
37
|
session[:clip_token] = @dataclip.token
|
37
38
|
redirect_to google_client.auth.authorization_uri.to_s
|
@@ -1,38 +1,42 @@
|
|
1
|
-
= stylesheet_link_tag "//cdn.datatables.net/1.10.5/css/jquery.dataTables.min.css"
|
2
|
-
= javascript_include_tag "//cdn.datatables.net/1.10.5/js/jquery.dataTables.min.js"
|
3
|
-
= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/floatthead/1.2.10/jquery.floatThead.min.js"
|
4
|
-
|
5
1
|
- show_public_link = defined?(show_public_link) ? show_public_link : false
|
6
|
-
.
|
7
|
-
.
|
8
|
-
.
|
9
|
-
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
- @dataclip.q_result.columns.each do |column|
|
33
|
-
th= column
|
34
|
-
tbody
|
35
|
-
- @dataclip.q_result.rows.each do |row|
|
2
|
+
- if Dbhero.max_rows_limit >=@dataclip.q_result.rows.size
|
3
|
+
.section
|
4
|
+
.row
|
5
|
+
.col.s6.style-text-field
|
6
|
+
- if show_public_link
|
7
|
+
.input-field
|
8
|
+
i.tiny.mdi-social-share.prefix
|
9
|
+
input#icon_prefix.validate type="text" value=dataclip_url(@dataclip)
|
10
|
+
label for="icon_prefix"
|
11
|
+
strong PUBLIC URL
|
12
|
+
- else
|
13
|
+
p style="margin-top: 40px; margin-bottom: 0;"
|
14
|
+
| total rows returned
|
15
|
+
strong= @dataclip.total_rows
|
16
|
+
.col.s6.right-align style="margin-top: 25px;"
|
17
|
+
a class='dropdown-button btn' href='#' data-activates='export-drop' Export
|
18
|
+
|
19
|
+
ul id='export-drop' class='dropdown-content'
|
20
|
+
li
|
21
|
+
= link_to 'csv', dataclip_path(@dataclip, format: 'csv')
|
22
|
+
li
|
23
|
+
= link_to 'google drive', dataclip_path(@dataclip, export_gdrive: true)
|
24
|
+
|
25
|
+
.col.s12 style="overflow: auto;"
|
26
|
+
table#clip_table.cell-border.striped data-page-length='300'
|
27
|
+
thead.grey.lighten-2
|
36
28
|
tr
|
37
|
-
-
|
38
|
-
|
29
|
+
- @dataclip.q_result.columns.each do |column|
|
30
|
+
th= column
|
31
|
+
tbody
|
32
|
+
- @dataclip.q_result.rows.each do |row|
|
33
|
+
tr
|
34
|
+
- row.each do |value|
|
35
|
+
td style="min-width: 200px;"= value
|
36
|
+
- else
|
37
|
+
.section
|
38
|
+
.row
|
39
|
+
.col.s12.center-align
|
40
|
+
h2.flow-text this clip is too large, please download the csv:
|
41
|
+
.col.s12.center-align
|
42
|
+
= link_to "download csv", dataclip_url(@dataclip, format: :csv), class: "btn"
|
@@ -2,5 +2,13 @@
|
|
2
2
|
== render 'form'
|
3
3
|
- if @dataclip.valid? && @dataclip.q_result
|
4
4
|
.section
|
5
|
-
.row
|
6
|
-
|
5
|
+
.row.fetch-remote-clip-table data-path=dataclip_path(@dataclip)
|
6
|
+
.col.s12.center-align
|
7
|
+
.preloader-wrapper.big.active
|
8
|
+
.spinner-layer.spinner-blue-only
|
9
|
+
.circle-clipper.left
|
10
|
+
.circle
|
11
|
+
.gap-patch
|
12
|
+
.circle
|
13
|
+
.circle-clipper.right
|
14
|
+
.circle
|
@@ -2,9 +2,17 @@ doctype html
|
|
2
2
|
html.grey.lighten-3
|
3
3
|
head
|
4
4
|
title DBHero
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
|
6
|
+
= stylesheet_link_tag "dbhero/application",
|
7
|
+
"//cdnjs.cloudflare.com/ajax/libs/materialize/0.95.3/css/materialize.min.css",
|
8
|
+
"//cdn.datatables.net/1.10.5/css/jquery.dataTables.min.css",
|
9
|
+
media: "all"
|
10
|
+
|
11
|
+
= javascript_include_tag "dbhero/application",
|
12
|
+
"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.95.3/js/materialize.min.js",
|
13
|
+
"//cdn.datatables.net/1.10.5/js/jquery.dataTables.min.js"
|
14
|
+
|
15
|
+
= csrf_meta_tags
|
8
16
|
body
|
9
17
|
- unless action_name == 'show'
|
10
18
|
header.grey.lighten-5
|
data/lib/dbhero/configuration.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Dbhero
|
2
2
|
module Configuration
|
3
3
|
VALID_CONFIG_KEYS = [:authenticate, :current_user_method, :custom_user_auth_condition,
|
4
|
-
:user_representation, :google_api_id, :google_api_secret].freeze
|
4
|
+
:user_representation, :google_api_id, :google_api_secret, :max_rows_limit].freeze
|
5
5
|
|
6
6
|
DEFAULT_AUTHENTICATE = true
|
7
7
|
DEFAULT_CURRENT_USER_METHOD = :current_user
|
@@ -9,6 +9,7 @@ module Dbhero
|
|
9
9
|
DEFAULT_GOOGLE_API_SECRET = ''
|
10
10
|
DEFAULT_USER_PRESENTATION = :email
|
11
11
|
DEFAULT_CUSTOM_USER_AUTH_CONDITION = nil
|
12
|
+
DEFAULT_MAX_ROWS_LIMIT = 10_000
|
12
13
|
|
13
14
|
attr_accessor *VALID_CONFIG_KEYS
|
14
15
|
|
@@ -31,6 +32,7 @@ module Dbhero
|
|
31
32
|
self.google_api_id = DEFAULT_GOOGLE_API_ID
|
32
33
|
self.google_api_secret = DEFAULT_GOOGLE_API_SECRET
|
33
34
|
self.custom_user_auth_condition = DEFAULT_CUSTOM_USER_AUTH_CONDITION
|
35
|
+
self.max_rows_limit = DEFAULT_MAX_ROWS_LIMIT
|
34
36
|
end
|
35
37
|
|
36
38
|
end
|
@@ -40,7 +40,7 @@ module Dbhero
|
|
40
40
|
spreadsheet = @session.spreadsheet_by_title(file_title)
|
41
41
|
|
42
42
|
worksheet = (spreadsheet || upload_from_string(file_title)).worksheets[0]
|
43
|
-
worksheet[1,1] = "=importData(
|
43
|
+
worksheet[1,1] = "=importData(\"#{@options[:import_data_url]}\")"
|
44
44
|
worksheet.save
|
45
45
|
|
46
46
|
spreadsheet || @uploaded_file
|
@@ -48,7 +48,7 @@ module Dbhero
|
|
48
48
|
|
49
49
|
def upload_from_string file_title
|
50
50
|
@uploaded_file ||= @session.upload_from_string(
|
51
|
-
|
51
|
+
"",
|
52
52
|
file_title,
|
53
53
|
content_type: 'text/csv')
|
54
54
|
end
|
data/lib/dbhero/version.rb
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
Dbhero.configure do |config|
|
2
|
+
# max rows to show, if the number of rows on query result is greater of
|
3
|
+
# configuration then should display a button to download csv
|
4
|
+
# default value: 10000
|
5
|
+
# config.max_rows_limit = 10_000
|
6
|
+
|
2
7
|
# if you are using devise you can keep the "authenticate_user!"
|
3
8
|
config.authenticate = true
|
4
9
|
|
data/spec/dummy/log/test.log
CHANGED
@@ -4183,3 +4183,418 @@ PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared stateme
|
|
4183
4183
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4184
4184
|
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "dbhero_dataclips"[0m
|
4185
4185
|
[1m[35m (0.4ms)[0m ROLLBACK
|
4186
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4187
|
+
[1m[36m (136.9ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
4188
|
+
[1m[35m (414.7ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode'
|
4189
|
+
[1m[36mSQL (2.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
4190
|
+
[1m[35m (100.2ms)[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)
|
4191
|
+
[1m[36m (1.8ms)[0m [1mCREATE UNIQUE INDEX "index_dbhero_dataclips_on_token" ON "dbhero_dataclips" USING btree ("token")[0m
|
4192
|
+
[1m[35m (3.8ms)[0m CREATE INDEX "index_dbhero_dataclips_on_user" ON "dbhero_dataclips" USING btree ("user")
|
4193
|
+
[1m[36m (3.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
4194
|
+
[1m[35m (1.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
4195
|
+
[1m[36m (2.8ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
4196
|
+
[1m[35m (4.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150323172444')
|
4197
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
4198
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4199
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
4200
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
|
4201
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4202
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4203
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
4204
|
+
Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
|
4205
|
+
Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.0ms)
|
4206
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4207
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4208
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
4209
|
+
Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.3ms)
|
4210
|
+
Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
|
4211
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4212
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4213
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
4214
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
4215
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4216
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4217
|
+
Processing by Dbhero::DataclipsController#index as HTML
|
4218
|
+
Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/index.html.slim within layouts/dbhero/application (0.2ms)
|
4219
|
+
Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
|
4220
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4221
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4222
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
4223
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
4224
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4225
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4226
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
4227
|
+
Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.3ms)
|
4228
|
+
Completed 200 OK in 28ms (Views: 3.9ms | ActiveRecord: 15.0ms)
|
4229
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4230
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4231
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
4232
|
+
Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
|
4233
|
+
Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
|
4234
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4235
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4236
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
4237
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
4238
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4239
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4240
|
+
Processing by Dbhero::DataclipsController#new as HTML
|
4241
|
+
Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/new.html.slim within layouts/dbhero/application (0.2ms)
|
4242
|
+
Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
|
4243
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4244
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4245
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
4246
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
4247
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
4248
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4249
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4250
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
4251
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
4252
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4253
|
+
[1m[36mSQL (4.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-03-26 05:19:54.320108"], ["updated_at", "2015-03-26 05:19:54.320108"], ["token", "0a3becc3-1c60-44f3-b8f7-513d78188a9a"]]
|
4254
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4255
|
+
Redirected to http://test.host/dbhero/dataclips/0a3becc3-1c60-44f3-b8f7-513d78188a9a/edit
|
4256
|
+
Completed 302 Found in 23ms (ActiveRecord: 4.8ms)
|
4257
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4258
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4259
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
4260
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
4261
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4262
|
+
[1m[35mSQL (0.5ms)[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-03-26 05:19:54.343508"], ["updated_at", "2015-03-26 05:19:54.343508"], ["token", "fd736a96-8099-4af9-9c7f-c8007d549d7b"]]
|
4263
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4264
|
+
Redirected to http://test.host/dbhero/dataclips/fd736a96-8099-4af9-9c7f-c8007d549d7b/edit
|
4265
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
|
4266
|
+
[1m[35mDbhero::Dataclip Load (0.6ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar"]]
|
4267
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4268
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4269
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
4270
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
4271
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4272
|
+
[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-03-26 05:19:54.361439"], ["updated_at", "2015-03-26 05:19:54.361439"], ["token", "69d79a88-725e-4a9c-87e2-ca9cfcfa9dc4"]]
|
4273
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4274
|
+
Redirected to http://test.host/dbhero/dataclips/69d79a88-725e-4a9c-87e2-ca9cfcfa9dc4/edit
|
4275
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
|
4276
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4277
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4278
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
4279
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
4280
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4281
|
+
[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-03-26 05:19:54.369886"], ["updated_at", "2015-03-26 05:19:54.369886"], ["token", "9b124808-6e2c-4357-83f3-cf3ac0d98fed"]]
|
4282
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4283
|
+
Redirected to http://test.host/dbhero/dataclips/9b124808-6e2c-4357-83f3-cf3ac0d98fed/edit
|
4284
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
|
4285
|
+
[1m[36mDbhero::Dataclip Load (0.4ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1[0m [["description", "foo bar"]]
|
4286
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4287
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4288
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
4289
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
4290
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
4291
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4292
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4293
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
4294
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
|
4295
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4296
|
+
[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-03-26 05:19:54.386308"], ["updated_at", "2015-03-26 05:19:54.386308"], ["token", "ebd818b5-7c2c-4ad8-9216-47707be633c5"]]
|
4297
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4298
|
+
Redirected to http://test.host/dbhero/dataclips/ebd818b5-7c2c-4ad8-9216-47707be633c5/edit
|
4299
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
|
4300
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4301
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4302
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
4303
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar disabled", "raw_query"=>"select 'foo' as bar"}}
|
4304
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4305
|
+
[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-03-26 05:19:54.393261"], ["updated_at", "2015-03-26 05:19:54.393261"], ["token", "6a2dd0c9-f165-45e0-95e8-601d666420e8"]]
|
4306
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4307
|
+
Redirected to http://test.host/dbhero/dataclips/6a2dd0c9-f165-45e0-95e8-601d666420e8/edit
|
4308
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
|
4309
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "foo bar disabled"]]
|
4310
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4311
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4312
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4313
|
+
[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-03-26 05:19:54.399865"], ["updated_at", "2015-03-26 05:19:54.399865"], ["token", "e5290fad-5a20-4272-8b66-26f31fa4e2dc"]]
|
4314
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4315
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
4316
|
+
Parameters: {"id"=>"e5290fad-5a20-4272-8b66-26f31fa4e2dc"}
|
4317
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
4318
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4319
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4320
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4321
|
+
[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-03-26 05:19:54.407278"], ["updated_at", "2015-03-26 05:19:54.407278"], ["token", "6f17fbd0-1248-40e5-8c0f-66294298fabd"]]
|
4322
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4323
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
4324
|
+
Parameters: {"id"=>"6f17fbd0-1248-40e5-8c0f-66294298fabd"}
|
4325
|
+
[1m[36mDbhero::Dataclip Load (0.3ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "6f17fbd0-1248-40e5-8c0f-66294298fabd"]]
|
4326
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4327
|
+
[1m[36m (2.5ms)[0m [1mselect 'dummy_foo' as dummy_bar, vesion() as db_version[0m
|
4328
|
+
PG::UndefinedFunction: ERROR: function vesion() does not exist
|
4329
|
+
LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
4330
|
+
^
|
4331
|
+
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
|
4332
|
+
: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
4333
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4334
|
+
Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.3ms)
|
4335
|
+
Completed 200 OK in 9ms (Views: 3.4ms | ActiveRecord: 3.0ms)
|
4336
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4337
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4338
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4339
|
+
[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-03-26 05:19:54.423002"], ["updated_at", "2015-03-26 05:19:54.423002"], ["token", "940b252d-f5cb-41ab-8f81-e0074b5429e9"]]
|
4340
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4341
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
4342
|
+
Parameters: {"id"=>"940b252d-f5cb-41ab-8f81-e0074b5429e9"}
|
4343
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "940b252d-f5cb-41ab-8f81-e0074b5429e9"]]
|
4344
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4345
|
+
[1m[35m (0.3ms)[0m select 'dummy_foo' as dummy_bar, vesion() as db_version
|
4346
|
+
PG::UndefinedFunction: ERROR: function vesion() does not exist
|
4347
|
+
LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
4348
|
+
^
|
4349
|
+
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
|
4350
|
+
: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
4351
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4352
|
+
Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
|
4353
|
+
Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.9ms)
|
4354
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4355
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4356
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4357
|
+
[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-03-26 05:19:54.431898"], ["updated_at", "2015-03-26 05:19:54.431898"], ["token", "5dac2c84-c298-4dec-b2fd-2e6914ff2311"]]
|
4358
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4359
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
4360
|
+
Parameters: {"id"=>"5dac2c84-c298-4dec-b2fd-2e6914ff2311"}
|
4361
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
4362
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4363
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4364
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4365
|
+
[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-03-26 05:19:54.438552"], ["updated_at", "2015-03-26 05:19:54.438552"], ["token", "1d31725f-0a31-4c3c-b977-aba1851bf25b"]]
|
4366
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4367
|
+
Processing by Dbhero::DataclipsController#edit as HTML
|
4368
|
+
Parameters: {"id"=>"1d31725f-0a31-4c3c-b977-aba1851bf25b"}
|
4369
|
+
[1m[35mDbhero::Dataclip Load (0.4ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "1d31725f-0a31-4c3c-b977-aba1851bf25b"]]
|
4370
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4371
|
+
[1m[35m (0.4ms)[0m select 'dummy_foo' as dummy_bar, vesion() as db_version
|
4372
|
+
PG::UndefinedFunction: ERROR: function vesion() does not exist
|
4373
|
+
LINE 1: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
4374
|
+
^
|
4375
|
+
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
|
4376
|
+
: select 'dummy_foo' as dummy_bar, vesion() as db_version
|
4377
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4378
|
+
Rendered /Users/ton/code/dbhero/app/views/dbhero/dataclips/edit.html.slim within layouts/dbhero/application (0.2ms)
|
4379
|
+
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.9ms)
|
4380
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4381
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4382
|
+
Processing by Dbhero::DataclipsController#create as HTML
|
4383
|
+
Parameters: {"dataclip"=>{"description"=>"foo bar", "raw_query"=>"select 'foo' as bar"}}
|
4384
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
4385
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4386
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4387
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4388
|
+
[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-03-26 05:19:54.452888"], ["updated_at", "2015-03-26 05:19:54.452888"], ["token", "0a972503-3127-47d9-98e9-2c03e0f057db"]]
|
4389
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4390
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
4391
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"0a972503-3127-47d9-98e9-2c03e0f057db"}
|
4392
|
+
[1m[36mDbhero::Dataclip Load (0.4ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "0a972503-3127-47d9-98e9-2c03e0f057db"]]
|
4393
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4394
|
+
[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-03-26 05:19:54.458977"], ["id", 12]]
|
4395
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4396
|
+
Redirected to http://test.host/dbhero/dataclips/0a972503-3127-47d9-98e9-2c03e0f057db/edit
|
4397
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
|
4398
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4399
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4400
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4401
|
+
[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-03-26 05:19:54.470735"], ["updated_at", "2015-03-26 05:19:54.470735"], ["token", "ea8079d3-21d2-43ff-a61e-ec05224d46e9"]]
|
4402
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4403
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
4404
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"ea8079d3-21d2-43ff-a61e-ec05224d46e9"}
|
4405
|
+
[1m[35mDbhero::Dataclip Load (0.4ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "ea8079d3-21d2-43ff-a61e-ec05224d46e9"]]
|
4406
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4407
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-26 05:19:54.476329"], ["id", 13]]
|
4408
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4409
|
+
Redirected to http://test.host/dbhero/dataclips/ea8079d3-21d2-43ff-a61e-ec05224d46e9/edit
|
4410
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
|
4411
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1 [["description", "updated"]]
|
4412
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4413
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4414
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4415
|
+
[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-03-26 05:19:54.483170"], ["updated_at", "2015-03-26 05:19:54.483170"], ["token", "f1a17cf5-6315-41cc-879a-75b3aab6ca36"]]
|
4416
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4417
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
4418
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"f1a17cf5-6315-41cc-879a-75b3aab6ca36"}
|
4419
|
+
[1m[35mDbhero::Dataclip Load (0.5ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "f1a17cf5-6315-41cc-879a-75b3aab6ca36"]]
|
4420
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4421
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-26 05:19:54.488556"], ["id", 14]]
|
4422
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4423
|
+
Redirected to http://test.host/dbhero/dataclips/f1a17cf5-6315-41cc-879a-75b3aab6ca36/edit
|
4424
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
|
4425
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4426
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4427
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4428
|
+
[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-03-26 05:19:54.494349"], ["updated_at", "2015-03-26 05:19:54.494349"], ["token", "2a7cfed3-86bf-49b2-a765-74fb402a1f00"]]
|
4429
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4430
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
4431
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"2a7cfed3-86bf-49b2-a765-74fb402a1f00"}
|
4432
|
+
[1m[36mDbhero::Dataclip Load (0.2ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "2a7cfed3-86bf-49b2-a765-74fb402a1f00"]]
|
4433
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4434
|
+
[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-03-26 05:19:54.498348"], ["id", 15]]
|
4435
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4436
|
+
Redirected to http://test.host/dbhero/dataclips/2a7cfed3-86bf-49b2-a765-74fb402a1f00/edit
|
4437
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
|
4438
|
+
[1m[36mDbhero::Dataclip Load (0.4ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1[0m [["description", "updated"]]
|
4439
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4440
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4441
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4442
|
+
[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-03-26 05:19:54.521061"], ["updated_at", "2015-03-26 05:19:54.521061"], ["token", "83ac900f-5c82-453e-a038-9d6939ec8946"]]
|
4443
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4444
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
4445
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"83ac900f-5c82-453e-a038-9d6939ec8946"}
|
4446
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
|
4447
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4448
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4449
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4450
|
+
[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-03-26 05:19:54.528862"], ["updated_at", "2015-03-26 05:19:54.528862"], ["token", "b772e780-fa8e-42fe-bec5-9ad77a696943"]]
|
4451
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4452
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."id" = $1 LIMIT 1 [["id", 17]]
|
4453
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4454
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4455
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4456
|
+
[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-03-26 05:19:54.534643"], ["updated_at", "2015-03-26 05:19:54.534643"], ["token", "fb439620-358a-4624-ab0d-3de083b55a7f"]]
|
4457
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4458
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
4459
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"fb439620-358a-4624-ab0d-3de083b55a7f"}
|
4460
|
+
[1m[35mDbhero::Dataclip Load (0.3ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1 [["token", "fb439620-358a-4624-ab0d-3de083b55a7f"]]
|
4461
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4462
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "dbhero_dataclips" SET "description" = $1, "updated_at" = $2 WHERE "dbhero_dataclips"."id" = $3 [["description", "updated"], ["updated_at", "2015-03-26 05:19:54.539926"], ["id", 18]]
|
4463
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4464
|
+
Redirected to http://test.host/dbhero/dataclips/fb439620-358a-4624-ab0d-3de083b55a7f/edit
|
4465
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
4466
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4467
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4468
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4469
|
+
[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-03-26 05:19:54.545420"], ["updated_at", "2015-03-26 05:19:54.545420"], ["token", "9b98afc4-c542-49a1-b9d3-5928240e2111"]]
|
4470
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4471
|
+
Processing by Dbhero::DataclipsController#update as HTML
|
4472
|
+
Parameters: {"dataclip"=>{"description"=>"updated"}, "id"=>"9b98afc4-c542-49a1-b9d3-5928240e2111"}
|
4473
|
+
[1m[36mDbhero::Dataclip Load (0.4ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."token" = $1 LIMIT 1[0m [["token", "9b98afc4-c542-49a1-b9d3-5928240e2111"]]
|
4474
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4475
|
+
[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-03-26 05:19:54.550914"], ["id", 19]]
|
4476
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4477
|
+
Redirected to http://test.host/dbhero/dataclips/9b98afc4-c542-49a1-b9d3-5928240e2111/edit
|
4478
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
|
4479
|
+
[1m[36mDbhero::Dataclip Load (0.4ms)[0m [1mSELECT "dbhero_dataclips".* FROM "dbhero_dataclips" WHERE "dbhero_dataclips"."description" = $1 LIMIT 1[0m [["description", "updated"]]
|
4480
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4481
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4482
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4483
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4484
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4485
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4486
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4487
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4488
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4489
|
+
[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-03-26 05:19:54.582085"], ["updated_at", "2015-03-26 05:19:54.582085"], ["token", "81c2949c-c462-46cf-aa8e-dae2e3f1a8cc"]]
|
4490
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4491
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4492
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4493
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4494
|
+
[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-03-24 05:19:54.584719"], ["created_at", "2015-03-26 05:19:54.586485"], ["token", "9a4105fa-505d-4fb8-9f0e-7158e343d362"]]
|
4495
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4496
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4497
|
+
[1m[36mSQL (0.3ms)[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-03-25 05:19:54.588312"], ["created_at", "2015-03-26 05:19:54.589115"], ["token", "83e09bcc-095c-4bd9-8f2c-7c58e2210d28"]]
|
4498
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4499
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4500
|
+
[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-03-22 05:19:54.590589"], ["created_at", "2015-03-26 05:19:54.591415"], ["token", "13717853-6d5d-4d5b-90db-b218d580c80e"]]
|
4501
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4502
|
+
[1m[35mDbhero::Dataclip Load (0.9ms)[0m SELECT "dbhero_dataclips".* FROM "dbhero_dataclips" ORDER BY "dbhero_dataclips"."updated_at" DESC
|
4503
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4504
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4505
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4506
|
+
[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-03-26 05:19:54.598358"], ["updated_at", "2015-03-26 05:19:54.598358"], ["token", "811cde90-6f4e-46bf-8de8-e91a3e1df170"]]
|
4507
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4508
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4509
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4510
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4511
|
+
[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-03-26 05:19:54.602412"], ["updated_at", "2015-03-26 05:19:54.602412"], ["token", "5042709f-4646-4281-8611-129b2d496ed7"]]
|
4512
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4513
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4514
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4515
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4516
|
+
[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-03-26 05:19:54.605974"], ["updated_at", "2015-03-26 05:19:54.605974"], ["token", "bd3042fa-da29-4e72-8cef-4d6c799e0a7a"]]
|
4517
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4518
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4519
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4520
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4521
|
+
[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-03-26 05:19:54.609500"], ["updated_at", "2015-03-26 05:19:54.609500"], ["token", "f0e3b266-6c2f-46b5-95d6-9fc813fb1337"]]
|
4522
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4523
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4524
|
+
[1m[35m (0.3ms)[0m select 'foo'::text as bar, 'bar'::text as foo
|
4525
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4526
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4527
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4528
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4529
|
+
[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-03-26 05:19:54.613916"], ["updated_at", "2015-03-26 05:19:54.613916"], ["token", "c5241e6d-bbac-4097-b2b4-f7ba61d1cfe5"]]
|
4530
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4531
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4532
|
+
[1m[35m (1.6ms)[0m select foo.nest from (select unnest(ARRAY[1,2,3]) as nest) foo
|
4533
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4534
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4535
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4536
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4537
|
+
[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-03-26 05:19:54.619598"], ["updated_at", "2015-03-26 05:19:54.619598"], ["token", "12548a3b-bc28-4d3a-8a92-2e8857c5f063"]]
|
4538
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4539
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4540
|
+
[1m[35m (0.2ms)[0m select 'foo'::text as bar, 'bar'::text as foo
|
4541
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4542
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4543
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4544
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4545
|
+
[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-03-26 05:19:54.626015"], ["updated_at", "2015-03-26 05:19:54.626015"], ["token", "50a0d892-843c-4d73-9c53-c89a1da82ca8"]]
|
4546
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4547
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4548
|
+
[1m[35m (0.2ms)[0m select 'foo'::text as bar, 'bar'::text as foo
|
4549
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4550
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4551
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4552
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4553
|
+
[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-03-26 05:19:54.630239"], ["updated_at", "2015-03-26 05:19:54.630239"], ["token", "b608a842-47ea-4881-a6ad-e4581fc1390e"]]
|
4554
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4555
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4556
|
+
[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-03-26 05:19:54.632359"], ["updated_at", "2015-03-26 05:19:54.632359"], ["token", "0691e8e8-7baf-4d56-a590-28f53e6ae78d"]]
|
4557
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4558
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4559
|
+
[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-03-26 05:19:54.634679"], ["updated_at", "2015-03-26 05:19:54.634679"], ["token", "9a2e9463-a7a9-4f8b-9331-6a678f7798cb"]]
|
4560
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4561
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4562
|
+
[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-03-26 05:19:54.637495"], ["updated_at", "2015-03-26 05:19:54.637495"], ["token", "e422d859-13c7-4158-b352-22de696c831a"]]
|
4563
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4564
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4565
|
+
[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-03-26 05:19:54.639810"], ["updated_at", "2015-03-26 05:19:54.639810"], ["token", "6d7cb021-2f00-4da6-b957-72d89c629b26"]]
|
4566
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4567
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4568
|
+
[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-03-26 05:19:54.641899"], ["updated_at", "2015-03-26 05:19:54.641899"], ["token", "7a534f14-179a-45da-a552-189deae79187"]]
|
4569
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4570
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4571
|
+
[1m[36m (6.6ms)[0m [1mTRUNCATE table dbhero_dataclips[0m
|
4572
|
+
[1m[35m (1.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4573
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "dbhero_dataclips"[0m
|
4574
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4575
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4576
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4577
|
+
[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-03-26 05:19:54.656037"], ["updated_at", "2015-03-26 05:19:54.656037"], ["token", "18d4d564-51f6-4a89-aa2a-2e8faa2e9d32"]]
|
4578
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4579
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4580
|
+
[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-03-26 05:19:54.658503"], ["updated_at", "2015-03-26 05:19:54.658503"], ["token", "d87d881d-fda8-4bd9-9e66-82e35b765492"]]
|
4581
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4582
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4583
|
+
[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-03-26 05:19:54.661097"], ["updated_at", "2015-03-26 05:19:54.661097"], ["token", "210a5d36-02d0-4734-9110-473dfa404b70"]]
|
4584
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4585
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4586
|
+
[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-03-26 05:19:54.664207"], ["updated_at", "2015-03-26 05:19:54.664207"], ["token", "c1b1dbff-cc5c-4e30-a891-0557ade39505"]]
|
4587
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4588
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4589
|
+
[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-03-26 05:19:54.666511"], ["updated_at", "2015-03-26 05:19:54.666511"], ["token", "66e7f65a-0ffe-4ee3-b689-7ab40685c2e8"]]
|
4590
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4591
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4592
|
+
[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-03-26 05:19:54.668799"], ["updated_at", "2015-03-26 05:19:54.668799"], ["token", "4b065730-14ae-40fc-a4f6-fb79ef3b9c5b"]]
|
4593
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4594
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4595
|
+
[1m[36m (0.4ms)[0m [1mTRUNCATE table dbhero_dataclips; commit;[0m
|
4596
|
+
PG::SyntaxError: ERROR: cannot insert multiple commands into a prepared statement
|
4597
|
+
: TRUNCATE table dbhero_dataclips; commit;
|
4598
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4599
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "dbhero_dataclips"[0m
|
4600
|
+
[1m[35m (0.2ms)[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.0
|
4
|
+
version: 1.1.0
|
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-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|