query_report 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/query_report/column.rb +11 -2
- data/lib/query_report/record.rb +29 -10
- data/lib/query_report/version.rb +1 -1
- data/test/dummy/log/development.log +344 -0
- metadata +2 -2
data/lib/query_report/column.rb
CHANGED
@@ -61,7 +61,16 @@ module QueryReport
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def rowspan?
|
64
|
-
@options[:rowspan] == true
|
64
|
+
@options[:rowspan] == true || @options[:rowspan].kind_of?(Symbol)
|
65
|
+
end
|
66
|
+
|
67
|
+
def rowspan_column_humanized
|
68
|
+
rowspan_column_name = @options[:rowspan].kind_of?(Symbol) ? @options[:rowspan] : self.name
|
69
|
+
|
70
|
+
report.columns.each do |column|
|
71
|
+
return column.humanize if column.name == rowspan_column_name
|
72
|
+
end
|
73
|
+
return self.humanize
|
65
74
|
end
|
66
75
|
|
67
76
|
def humanize
|
@@ -77,7 +86,7 @@ module QueryReport
|
|
77
86
|
end
|
78
87
|
|
79
88
|
def total
|
80
|
-
@total ||= has_total? ? report.records.inject(0) {|sum, r| sum + r[humanize].to_f } : nil
|
89
|
+
@total ||= has_total? ? report.records.inject(0) { |sum, r| sum + r[humanize].to_f } : nil
|
81
90
|
end
|
82
91
|
end
|
83
92
|
end
|
data/lib/query_report/record.rb
CHANGED
@@ -56,24 +56,43 @@ module QueryReport
|
|
56
56
|
@all_records_with_rowspan ||= map_rowspan(all_records)
|
57
57
|
end
|
58
58
|
|
59
|
-
def map_rowspan(
|
59
|
+
def map_rowspan(recs)
|
60
60
|
last_reset_index = @columns.select(&:rowspan?).inject({}) { |hash, column| hash[column.humanize] = 0; hash }
|
61
|
-
|
62
|
-
|
61
|
+
rowspan_column_hash = @columns.select(&:rowspan?).inject({}) { |hash, column| hash[column.humanize] = column.rowspan_column_humanized; hash }
|
62
|
+
|
63
|
+
prev_row = {}
|
64
|
+
recs.each_with_index do |row, index|
|
63
65
|
last_reset_index.each do |col, last_index|
|
66
|
+
rowspan_col = rowspan_column_hash[col]
|
67
|
+
|
68
|
+
rowspan_content = get_content_from_element(row[rowspan_col]) #picking the current content of the rowspan column
|
69
|
+
prev_rowspan_content = get_content_from_element(prev_row[rowspan_col]) #picking the last rowspan content stored
|
70
|
+
|
64
71
|
content = row[col]
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
last_reset_index[col]
|
72
|
+
prev_content = get_content_from_element(prev_row[col])
|
73
|
+
|
74
|
+
if index == 0 || rowspan_content != prev_rowspan_content || content != prev_content
|
75
|
+
last_reset_index[col] = index
|
69
76
|
#initialize
|
70
77
|
row[col] = {content: content, rowspan: 1}
|
71
|
-
elsif
|
72
|
-
|
73
|
-
row.delete col
|
78
|
+
elsif rowspan_content == prev_rowspan_content
|
79
|
+
recs[last_index][col][:rowspan] += 1
|
74
80
|
end
|
75
81
|
end
|
82
|
+
|
83
|
+
prev_row = row
|
76
84
|
end
|
85
|
+
|
86
|
+
#cleaning up the un needed row values
|
87
|
+
recs.each do |row|
|
88
|
+
last_reset_index.each do |col, last_index|
|
89
|
+
row.delete col unless row[col].kind_of?(Hash)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
def get_content_from_element(content)
|
95
|
+
content.kind_of?(Hash) ? content[:content] : content
|
77
96
|
end
|
78
97
|
end
|
79
98
|
end
|
data/lib/query_report/version.rb
CHANGED
@@ -46176,3 +46176,347 @@ Connecting to database specified by database.yml
|
|
46176
46176
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 09 Oct 2013 17:02:50 UTC +00:00], ["dob", Tue, 09 Oct 1979 17:02:50 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 09 Oct 2013 17:02:50 UTC +00:00]]
|
46177
46177
|
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
46178
46178
|
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
46179
|
+
Connecting to database specified by database.yml
|
46180
|
+
Connecting to database specified by database.yml
|
46181
|
+
Connecting to database specified by database.yml
|
46182
|
+
Connecting to database specified by database.yml
|
46183
|
+
Connecting to database specified by database.yml
|
46184
|
+
Connecting to database specified by database.yml
|
46185
|
+
Connecting to database specified by database.yml
|
46186
|
+
Connecting to database specified by database.yml
|
46187
|
+
Connecting to database specified by database.yml
|
46188
|
+
Connecting to database specified by database.yml
|
46189
|
+
Connecting to database specified by database.yml
|
46190
|
+
Connecting to database specified by database.yml
|
46191
|
+
Connecting to database specified by database.yml
|
46192
|
+
Connecting to database specified by database.yml
|
46193
|
+
Connecting to database specified by database.yml
|
46194
|
+
Connecting to database specified by database.yml
|
46195
|
+
Connecting to database specified by database.yml
|
46196
|
+
Connecting to database specified by database.yml
|
46197
|
+
Connecting to database specified by database.yml
|
46198
|
+
Connecting to database specified by database.yml
|
46199
|
+
Connecting to database specified by database.yml
|
46200
|
+
Connecting to database specified by database.yml
|
46201
|
+
Connecting to database specified by database.yml
|
46202
|
+
Connecting to database specified by database.yml
|
46203
|
+
Connecting to database specified by database.yml
|
46204
|
+
Connecting to database specified by database.yml
|
46205
|
+
Connecting to database specified by database.yml
|
46206
|
+
Connecting to database specified by database.yml
|
46207
|
+
Connecting to database specified by database.yml
|
46208
|
+
Connecting to database specified by database.yml
|
46209
|
+
Connecting to database specified by database.yml
|
46210
|
+
Connecting to database specified by database.yml
|
46211
|
+
Connecting to database specified by database.yml
|
46212
|
+
Connecting to database specified by database.yml
|
46213
|
+
Connecting to database specified by database.yml
|
46214
|
+
Connecting to database specified by database.yml
|
46215
|
+
Connecting to database specified by database.yml
|
46216
|
+
Connecting to database specified by database.yml
|
46217
|
+
Connecting to database specified by database.yml
|
46218
|
+
Connecting to database specified by database.yml
|
46219
|
+
Connecting to database specified by database.yml
|
46220
|
+
Connecting to database specified by database.yml
|
46221
|
+
Connecting to database specified by database.yml
|
46222
|
+
Connecting to database specified by database.yml
|
46223
|
+
Connecting to database specified by database.yml
|
46224
|
+
Connecting to database specified by database.yml
|
46225
|
+
[1m[36m (1.7ms)[0m [1mselect sqlite_version(*)[0m
|
46226
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
|
46227
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
46228
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
46229
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) [0m
|
46230
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
|
46231
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) [0m
|
46232
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46233
|
+
[1m[36mSQL (48.4ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 30], ["created_at", Wed, 30 Oct 2013 05:28:19 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 30 Oct 2013 05:28:19 UTC +00:00]]
|
46234
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46236
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?) [["book_id", nil], ["user_id", 1]]
|
46237
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46238
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
46239
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46240
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46241
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
46242
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46243
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46244
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:28:19 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:28:19 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:28:19 UTC +00:00]]
|
46245
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46246
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46247
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:28:19 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:28:19 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:28:19 UTC +00:00]]
|
46248
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46250
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:28:19 UTC +00:00], ["dob", Tue, 30 Oct 1979 05:28:19 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:28:19 UTC +00:00]]
|
46251
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46252
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
46253
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46254
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46255
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 2]]
|
46256
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46257
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46258
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
|
46259
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46261
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 4]]
|
46262
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46263
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46264
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:28:20 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:28:20 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:28:20 UTC +00:00]]
|
46265
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46266
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46267
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:28:20 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:28:20 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:28:20 UTC +00:00]]
|
46268
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46269
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46270
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:28:20 UTC +00:00], ["dob", Tue, 30 Oct 1979 05:28:20 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:28:20 UTC +00:00]]
|
46271
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46272
|
+
[1m[35m (0.2ms)[0m SELECT AVG("users"."age") AS avg_id FROM "users"
|
46273
|
+
[1m[36m (0.1ms)[0m [1mSELECT AVG("users"."age") AS avg_id FROM "users" [0m
|
46274
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
46275
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46276
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46277
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 5]]
|
46278
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46279
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46280
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
|
46281
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46282
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46283
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 7]]
|
46284
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46285
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46286
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:28:23 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46287
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46288
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46289
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:28:23 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46290
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46291
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46292
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Tue, 30 Oct 1979 05:28:23 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46293
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46294
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
46295
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46296
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46297
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 8]]
|
46298
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46299
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46300
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]
|
46301
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46303
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 10]]
|
46304
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46305
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46306
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:28:23 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46307
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46308
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46309
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:28:23 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46310
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46311
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46312
|
+
[1m[35mSQL (79.9ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46313
|
+
[1m[36m (0.3ms)[0m [1mcommit transaction[0m
|
46314
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
|
46315
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46316
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46317
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 11]]
|
46318
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46319
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46320
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]
|
46321
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46322
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46323
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 13]]
|
46324
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46325
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46326
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:28:23 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46327
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46328
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46329
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:28:23 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46330
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46331
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46332
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46333
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46334
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
46335
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46336
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46337
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 14]]
|
46338
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46340
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]
|
46341
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46342
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46343
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 16]]
|
46344
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46345
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46346
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:28:23 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46347
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46348
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46349
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:28:23 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46350
|
+
[1m[35m (0.0ms)[0m commit transaction
|
46351
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46352
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46353
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46354
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-30 05:28:23.000000' AND "users"."dob" <= '2013-11-30 05:28:23.000000')) LIMIT 25 OFFSET 0
|
46355
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46356
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46357
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 17]]
|
46358
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46360
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 18]]
|
46361
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46362
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46363
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 19]]
|
46364
|
+
[1m[35m (0.2ms)[0m commit transaction
|
46365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46366
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:28:23 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46367
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46368
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46369
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:28:23 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46370
|
+
[1m[35m (0.0ms)[0m commit transaction
|
46371
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46372
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:28:23 UTC +00:00]]
|
46373
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
46374
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
|
46375
|
+
Connecting to database specified by database.yml
|
46376
|
+
[1m[36m (3.3ms)[0m [1mselect sqlite_version(*)[0m
|
46377
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "gem_defined_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer)
|
46378
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "age" integer, "dob" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
46379
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
46380
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "readerships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer) [0m
|
46381
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "authorships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "book_id" integer)
|
46382
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "user_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "user_id" integer) [0m
|
46383
|
+
[1m[35mUser Load (2.8ms)[0m SELECT "users".* FROM "users"
|
46384
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46385
|
+
[1m[35mSQL (45.7ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:32:03 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46386
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46387
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46388
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:32:03 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46389
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46390
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46391
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46392
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46393
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" LIMIT 25 OFFSET 0
|
46394
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46395
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46396
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
46397
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46398
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46399
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
|
46400
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46401
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46402
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 3]]
|
46403
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46404
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46405
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:32:03 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46406
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46407
|
+
[1m[35m (0.0ms)[0m begin transaction
|
46408
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:32:03 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46409
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46410
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46411
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46412
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46413
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
46414
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46415
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46416
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 4]]
|
46417
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46418
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46419
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
|
46420
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46421
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46422
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 6]]
|
46423
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46424
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46425
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:32:03 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46426
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46427
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46428
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:32:03 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46429
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46430
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46431
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46432
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46433
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE (("users"."dob" >= '1992-10-30 05:32:03.000000' AND "users"."dob" <= '2013-11-30 05:32:03.000000')) LIMIT 25 OFFSET 0
|
46434
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46435
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46436
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 7]]
|
46437
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46438
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46439
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
|
46440
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46442
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 9]]
|
46443
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46444
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46445
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:32:03 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46446
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46447
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46448
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:32:03 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46449
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46450
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46451
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", nil], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46452
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46453
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."age" = 34 LIMIT 25 OFFSET 0
|
46454
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46455
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46456
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 10]]
|
46457
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46458
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46459
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]
|
46460
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
46461
|
+
[1m[35m (0.0ms)[0m begin transaction
|
46462
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 12]]
|
46463
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46464
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46465
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:32:03 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46466
|
+
[1m[36m (0.2ms)[0m [1mcommit transaction[0m
|
46467
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46468
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:32:03 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46469
|
+
[1m[35m (0.1ms)[0m commit transaction
|
46470
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46471
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Tue, 30 Oct 1979 05:32:03 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46472
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46473
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
46474
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46475
|
+
[1m[35m (0.0ms)[0m begin transaction
|
46476
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 13]]
|
46477
|
+
[1m[35m (0.0ms)[0m commit transaction
|
46478
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46479
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]
|
46480
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
46481
|
+
[1m[35m (0.0ms)[0m begin transaction
|
46482
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 15]]
|
46483
|
+
[1m[35m (0.0ms)[0m commit transaction
|
46484
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46485
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:32:03 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46486
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
46487
|
+
[1m[35m (0.0ms)[0m begin transaction
|
46488
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:32:03 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46489
|
+
[1m[35m (0.0ms)[0m commit transaction
|
46490
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46491
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00], ["dob", Tue, 30 Oct 1979 05:32:03 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:32:03 UTC +00:00]]
|
46492
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
46493
|
+
[1m[35m (0.1ms)[0m SELECT AVG("users"."age") AS avg_id FROM "users"
|
46494
|
+
[1m[36m (0.1ms)[0m [1mSELECT AVG("users"."age") AS avg_id FROM "users" [0m
|
46495
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
46496
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" [0m
|
46497
|
+
[1m[35m (0.1ms)[0m begin transaction
|
46498
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 16]]
|
46499
|
+
[1m[35m (0.0ms)[0m commit transaction
|
46500
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46501
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 17]]
|
46502
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
46503
|
+
[1m[35m (0.0ms)[0m begin transaction
|
46504
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 18]]
|
46505
|
+
[1m[35m (0.0ms)[0m commit transaction
|
46506
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46507
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 10], ["created_at", Wed, 30 Oct 2013 05:32:06 UTC +00:00], ["dob", Thu, 30 Oct 2003 05:32:06 UTC +00:00], ["name", "User#1"], ["updated_at", Wed, 30 Oct 2013 05:32:06 UTC +00:00]]
|
46508
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
46509
|
+
[1m[35m (0.0ms)[0m begin transaction
|
46510
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["age", 20], ["created_at", Wed, 30 Oct 2013 05:32:06 UTC +00:00], ["dob", Sat, 30 Oct 1993 05:32:06 UTC +00:00], ["name", "User#2"], ["updated_at", Wed, 30 Oct 2013 05:32:06 UTC +00:00]]
|
46511
|
+
[1m[35m (0.0ms)[0m commit transaction
|
46512
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46513
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 34], ["created_at", Wed, 30 Oct 2013 05:32:06 UTC +00:00], ["dob", Tue, 30 Oct 1979 05:32:06 UTC +00:00], ["name", "User#3"], ["updated_at", Wed, 30 Oct 2013 05:32:06 UTC +00:00]]
|
46514
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46515
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
46516
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
46517
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "created_at", "dob", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["age", 30], ["created_at", Wed, 30 Oct 2013 05:32:06 UTC +00:00], ["dob", nil], ["name", "Jitu"], ["updated_at", Wed, 30 Oct 2013 05:32:06 UTC +00:00]]
|
46518
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
46519
|
+
[1m[35m (0.0ms)[0m begin transaction
|
46520
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "readerships" ("book_id", "user_id") VALUES (?, ?)[0m [["book_id", nil], ["user_id", 22]]
|
46521
|
+
[1m[35m (0.0ms)[0m commit transaction
|
46522
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: query_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|