rails_db 2.4.5 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -9
  3. data/app/assets/javascripts/rails_db/application.js +1 -84
  4. data/app/assets/javascripts/rails_db/shared.js +83 -0
  5. data/app/helpers/rails_db/application_helper.rb +48 -0
  6. data/app/views/layouts/rails_db/application.html.erb +6 -2
  7. data/app/views/rails_db/shared/_assets.html.erb +26 -0
  8. data/lib/rails_db/engine.rb +16 -13
  9. data/lib/rails_db/version.rb +1 -1
  10. data/lib/rails_db.rb +7 -1
  11. data/rails_db.gemspec +0 -1
  12. data/test/dummy/log/test.log +523 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-d/-dFmyu9De77yM2skayCjxg-b5DDLMjzHiO-HZ8eqcA4.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-x/-xjvXK67vrqZQIInyRlIL5XDOq-nEcTo5f0bpUEGueA.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3h/3h2FhtpMLTvVDRuUigIcwhsadyODfurqo4yFcfcQHYk.cache +1 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8Q/8QEGHBv08YdoHFAv7cwhkO4Mmb0GXY8fr-0ALvC5R0o.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9G/9GA6fWc8ECFuVECVlNlIElC9tHcWOiWuPC6vXDEPhxw.cache +0 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/Bum5YkwvLquRTZsFNaSTShYyctIox2zQso28ySz7_wU.cache +1 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/QM/QM4PExN1xJfM3Qce8ccenrNJhulC6nhwy6iIsTW-Lt8.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Sj/SjgiVHAJsC5T6Q8KtQ8a7W1yUO7Q58FKOVqq2fLnPW8.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Wg/Wg-rem_R8qCAX43KPkLItyYIjR7WexyBgKW6fWZem64.cache +1 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/eq/eq3s9WWfQaspG8gCeucF1EFBYR-VN_U6yJpn0qWfjPk.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gp/gpB6SVB3O9McHcR4mBtFHFl26DX0qBrEr26XAMKOVTo.cache +1 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gu/gu4qNYOYvNdgjiGV-ndb-YqJNfPbrqtZrlX7NlOy5ac.cache +1 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hI/hiMgoFMwQ5Kh4p_b6HiBz8vtsIDs60RfM74O-XEWxgo.cache +3 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/iU/iUbBboX6KYOCn8Meioi9ifDmpvz9Q5PYFKLQtC1npU0.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ir/irfkiK0kq4WQxp8tWJBRsprajlb3CVAgz4rMPmJ-jrw.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mj/MjiV6c1ad6f2cEDfj8XoKSV4N31B42lSbg1OH9MmZzs.cache +1 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/qh/qhOgFIHFHttn-VV0Uu2W-4p0Cu5_MklXvqYkwKFsbKs.cache +8 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/uw/uwZKoJUdAwBfBb11hg52km8ZD_lyZf6WFKcYDM_7aSM.cache +0 -0
  31. metadata +36 -16
@@ -1131,3 +1131,526 @@ Processing by RailsDb::SqlController#index as HTML
1131
1131
  Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 2.7ms | Allocations: 7501)
1132
1132
  Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms | Allocations: 7687)
1133
1133
  TRANSACTION (0.0ms) rollback transaction
1134
+ ActiveRecord::InternalMetadata Load (0.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "schema_sha1"]]
1135
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1136
+ TRANSACTION (0.0ms) begin transaction
1137
+ ----------------------------------------------
1138
+ DashboardControllerTest: test_should_get_index
1139
+ ----------------------------------------------
1140
+ User Delete All (0.2ms) DELETE FROM "users"
1141
+ Account Delete All (0.0ms) DELETE FROM "accounts"
1142
+ Customer Delete All (0.0ms) DELETE FROM "users" WHERE "users"."type" = ? [["type", "Customer"]]
1143
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1144
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-07-09 19:46:51.045926"], ["updated_at", "2025-07-09 19:46:51.045926"]]
1145
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1146
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1147
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Edit"], ["created_at", "2025-07-09 19:46:51.046447"], ["updated_at", "2025-07-09 19:46:51.046447"]]
1148
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1149
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1150
+ Customer Create (0.1ms) INSERT INTO "users" ("name", "bio", "created_at", "updated_at", "type") VALUES (?, ?, ?, ?, ?) RETURNING "id" [["name", "Customer 1"], ["bio", "this is bio text"], ["created_at", "2025-07-09 19:46:51.047817"], ["updated_at", "2025-07-09 19:46:51.047817"], ["type", "Customer"]]
1151
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1152
+ Started GET "/rails/db" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1153
+ Processing by RailsDb::DashboardController#index as HTML
1154
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1155
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application
1156
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application (Duration: 85.1ms | Allocations: 71050)
1157
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.9ms | Allocations: 730)
1158
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 1.4ms | Allocations: 1771)
1159
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.4ms | Allocations: 800)
1160
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.1ms | Allocations: 274)
1161
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.5ms | Allocations: 1171)
1162
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 91.3ms | Allocations: 76813)
1163
+ Completed 200 OK in 544ms (Views: 93.2ms | ActiveRecord: 0.1ms | Allocations: 1054873)
1164
+ Started GET "/rails/db/tables/users" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1165
+ Processing by RailsDb::TablesController#show as HTML
1166
+ Parameters: {"id" => "users"}
1167
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1168
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/tables/show.html.erb within layouts/rails_db/application
1169
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.1ms | Allocations: 119)
1170
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_show.html.erb (Duration: 2.7ms | Allocations: 6634)
1171
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/show.html.erb within layouts/rails_db/application (Duration: 2.8ms | Allocations: 6817)
1172
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.7ms | Allocations: 422)
1173
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.3ms | Allocations: 1007)
1174
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | Allocations: 586)
1175
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | Allocations: 104)
1176
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | Allocations: 571)
1177
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 4.6ms | Allocations: 9756)
1178
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.8ms | Allocations: 10304)
1179
+ Started GET "/rails/db/tables/users/data" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1180
+ Processing by RailsDb::TablesController#data as HTML
1181
+ Parameters: {"table_id" => "users"}
1182
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1183
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1184
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application
1185
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | Allocations: 17)
1186
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 11.8ms | Allocations: 14027)
1187
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 4.8ms | Allocations: 11611)
1188
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 25], ["OFFSET", 0]]
1189
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | Allocations: 1212)
1190
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.4ms | Allocations: 1004)
1191
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.4ms | Allocations: 1009)
1192
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.1ms | Allocations: 76)
1193
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 26.1ms | Allocations: 48704)
1194
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application (Duration: 26.3ms | Allocations: 48886)
1195
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.7ms | Allocations: 422)
1196
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.5ms | Allocations: 1023)
1197
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | Allocations: 586)
1198
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | Allocations: 104)
1199
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | Allocations: 571)
1200
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 28.2ms | Allocations: 51778)
1201
+ Completed 200 OK in 31ms (Views: 27.7ms | ActiveRecord: 0.6ms | Allocations: 53697)
1202
+ Started GET "/rails/db/sql" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1203
+ Processing by RailsDb::SqlController#index as HTML
1204
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1205
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
1206
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | Allocations: 17)
1207
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.1ms | Allocations: 194)
1208
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application (Duration: 1.8ms | Allocations: 3879)
1209
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.7ms | Allocations: 422)
1210
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.4ms | Allocations: 1025)
1211
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | Allocations: 586)
1212
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | Allocations: 104)
1213
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | Allocations: 572)
1214
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 4.2ms | Allocations: 7516)
1215
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.4ms | Allocations: 7976)
1216
+ Started GET "/rails/db/import" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1217
+ Processing by RailsDb::SqlController#import as HTML
1218
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1219
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/sql/import.html.erb within layouts/rails_db/application
1220
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/_import_sample.html.erb (Duration: 0.0ms | Allocations: 75)
1221
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/import.html.erb within layouts/rails_db/application (Duration: 0.3ms | Allocations: 523)
1222
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.7ms | Allocations: 422)
1223
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.3ms | Allocations: 1024)
1224
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | Allocations: 586)
1225
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | Allocations: 104)
1226
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | Allocations: 572)
1227
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 2.0ms | Allocations: 3563)
1228
+ Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms | Allocations: 3814)
1229
+ Started GET "/rails/db/data-table" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1230
+ Processing by RailsDb::DashboardController#data_table as HTML
1231
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1232
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/dashboard/data_table.html.erb within layouts/rails_db/application
1233
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/dashboard/data_table.html.erb within layouts/rails_db/application (Duration: 0.2ms | Allocations: 904)
1234
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.6ms | Allocations: 423)
1235
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 1.4ms | Allocations: 1030)
1236
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.7ms | Allocations: 586)
1237
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | Allocations: 104)
1238
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.9ms | Allocations: 572)
1239
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 4.2ms | Allocations: 3954)
1240
+ Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms | Allocations: 4128)
1241
+ Started GET "/" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1242
+ Processing by HomeController#index as HTML
1243
+ Rendering layout layouts/application.html.erb
1244
+ Rendering home/index.html.erb within layouts/application
1245
+ SQL (0.0ms) SELECT id, name, users_count FROM accounts ORDER BY users_count desc LIMIT 10 OFFSET 0
1246
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_data_table.html.erb (Duration: 0.8ms | Allocations: 480)
1247
+ SQL (0.0ms) select id, name, age from users order by age desc limit 10
1248
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sql_result.html.erb (Duration: 1.2ms | Allocations: 350)
1249
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1250
+ Customer Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."type" = ? [["type", "Customer"]]
1251
+ Account Count (0.0ms) SELECT COUNT(*) FROM "accounts"
1252
+ Rendered home/index.html.erb within layouts/application (Duration: 4.0ms | Allocations: 2212)
1253
+ Rendered layout layouts/application.html.erb (Duration: 6.0ms | Allocations: 3803)
1254
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.2ms | Allocations: 4769)
1255
+ Started GET "/rails/db/tables/users/data?sort_column=id&sort_order=desc" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1256
+ Processing by RailsDb::TablesController#data as HTML
1257
+ Parameters: {"sort_column" => "id", "sort_order" => "desc", "table_id" => "users"}
1258
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1259
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1260
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application
1261
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | Allocations: 17)
1262
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 16.0ms | Allocations: 11607)
1263
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 8.1ms | Allocations: 11607)
1264
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 25], ["OFFSET", 0]]
1265
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.5ms | Allocations: 1010)
1266
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.4ms | Allocations: 1010)
1267
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.4ms | Allocations: 1015)
1268
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.0ms | Allocations: 9)
1269
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 32.9ms | Allocations: 44597)
1270
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application (Duration: 32.9ms | Allocations: 44642)
1271
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.7ms | Allocations: 422)
1272
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.5ms | Allocations: 1025)
1273
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | Allocations: 586)
1274
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | Allocations: 104)
1275
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | Allocations: 571)
1276
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 34.9ms | Allocations: 47536)
1277
+ Completed 200 OK in 37ms (Views: 34.3ms | ActiveRecord: 0.7ms | Allocations: 48850)
1278
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1279
+ Started GET "/rails/db/tables/users/destroy?pk_id=1" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1280
+ Processing by RailsDb::TablesController#destroy as HTML
1281
+ Parameters: {"pk_id" => "1", "table_id" => "users"}
1282
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1283
+  (0.0ms) DELETE FROM users WHERE id = '1';
1284
+ Redirected to http://www.example.com/rails/db/tables/users/data
1285
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms | Allocations: 1542)
1286
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1287
+ Started GET "/rails/db/tables/users/csv" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1288
+ Processing by RailsDb::TablesController#csv as HTML
1289
+ Parameters: {"table_id" => "users"}
1290
+ SQL (0.0ms) SELECT * FROM users
1291
+ Rendering text template
1292
+ Rendered text template (Duration: 0.0ms | Allocations: 3)
1293
+ Sent data users.csv (0.6ms)
1294
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms | Allocations: 921)
1295
+ Started GET "/rails/db/standalone" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1296
+ Processing by RailsDb::DashboardController#standalone as HTML
1297
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1298
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/dashboard/standalone.html.erb within layouts/rails_db/application
1299
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/dashboard/standalone.html.erb within layouts/rails_db/application (Duration: 0.3ms | Allocations: 886)
1300
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.8ms | Allocations: 423)
1301
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.4ms | Allocations: 1029)
1302
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | Allocations: 586)
1303
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | Allocations: 104)
1304
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | Allocations: 572)
1305
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 2.5ms | Allocations: 3935)
1306
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms | Allocations: 4109)
1307
+ Started GET "/rails/db/tables/users/xlsx.xls" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1308
+ Processing by RailsDb::TablesController#xlsx as XLS
1309
+ Parameters: {"table_id" => "users"}
1310
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/tables/table.xls.axlsx
1311
+ SQL (0.0ms) SELECT * FROM users
1312
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/table.xls.axlsx (Duration: 2.0ms | Allocations: 5947)
1313
+ Rendering text template
1314
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1315
+ Sent data users.xlsx (0.1ms)
1316
+ Completed 200 OK in 2ms (Views: 2.3ms | ActiveRecord: 0.1ms | Allocations: 6429)
1317
+ Started GET "/rails/db/sql?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1318
+ Processing by RailsDb::SqlController#index as HTML
1319
+ Parameters: {"sql" => "select * from users limit 10"}
1320
+ SQL (0.0ms) select * from users limit 10
1321
+ SQL (0.0ms) EXPLAIN select * from users limit 10
1322
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1323
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
1324
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | Allocations: 17)
1325
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.1ms | Allocations: 136)
1326
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/_explain.html.erb (Duration: 0.1ms | Allocations: 295)
1327
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/_results.html.erb (Duration: 0.5ms | Allocations: 988)
1328
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application (Duration: 2.0ms | Allocations: 4424)
1329
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.7ms | Allocations: 422)
1330
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.5ms | Allocations: 1024)
1331
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | Allocations: 586)
1332
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | Allocations: 104)
1333
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | Allocations: 572)
1334
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 4.0ms | Allocations: 7460)
1335
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.5ms | Allocations: 7897)
1336
+ Started POST "/rails/db/sql-csv.csv?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1337
+ Processing by RailsDb::SqlController#csv as CSV
1338
+ Parameters: {"sql" => "select * from users limit 10"}
1339
+ SQL (0.0ms) select * from users limit 10
1340
+ SQL (0.0ms) EXPLAIN select * from users limit 10
1341
+ Rendering text template
1342
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1343
+ Sent data results.csv (0.1ms)
1344
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 490)
1345
+ Started POST "/rails/db/sql-xls.xls?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1346
+ Processing by RailsDb::SqlController#xls as XLS
1347
+ Parameters: {"sql" => "select * from users limit 10"}
1348
+ SQL (0.0ms) select * from users limit 10
1349
+ SQL (0.0ms) EXPLAIN select * from users limit 10
1350
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/sql/xls.xls.axlsx
1351
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/xls.xls.axlsx (Duration: 1.3ms | Allocations: 3023)
1352
+ Rendering text template
1353
+ Rendered text template (Duration: 0.0ms | Allocations: 1)
1354
+ Sent data results.xlsx (0.1ms)
1355
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms | Allocations: 3647)
1356
+ Started GET "/rails/db/tables/users/edit?pk_id=2" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1357
+ Processing by RailsDb::TablesController#edit as JS
1358
+ Parameters: {"pk_id" => "2", "table_id" => "users"}
1359
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1360
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
1361
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/tables/edit.js.erb
1362
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 5.9ms | Allocations: 11848)
1363
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 6.7ms | Allocations: 15727)
1364
+ Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.5ms | Allocations: 21197)
1365
+ Started PUT "/rails/db/tables/users/update?pk_id=2" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1366
+ Processing by RailsDb::TablesController#update as JS
1367
+ Parameters: {"record" => {"name" => "JOHN"}, "pk_id" => "2", "table_id" => "users"}
1368
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1369
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
1370
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1371
+ #<Class:0x00000001239a0f00> Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "JOHN"], ["updated_at", "2025-07-09 19:46:51.735962"], ["id", 2]]
1372
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1373
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/tables/update.js.erb
1374
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.5ms | Allocations: 1035)
1375
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/update.js.erb (Duration: 0.7ms | Allocations: 1562)
1376
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms | Allocations: 7285)
1377
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
1378
+ Started GET "/rails/db/tables/users/new" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1379
+ Processing by RailsDb::TablesController#new as JS
1380
+ Parameters: {"table_id" => "users"}
1381
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1382
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/tables/new.js.erb
1383
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_new.html.erb (Duration: 2.6ms | Allocations: 6600)
1384
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/new.js.erb (Duration: 3.0ms | Allocations: 7793)
1385
+ Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms | Allocations: 12742)
1386
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1387
+ Started POST "/rails/db/tables/users/create" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1388
+ Processing by RailsDb::TablesController#create as JS
1389
+ Parameters: {"record" => {"name" => "XXX"}, "table_id" => "users"}
1390
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1391
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1392
+ #<Class:0x0000000124383ae0> Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "XXX"], ["created_at", "2025-07-09 19:46:51.743979"], ["updated_at", "2025-07-09 19:46:51.743979"]]
1393
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1394
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/tables/create.js.erb
1395
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | Allocations: 17)
1396
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 4.4ms | Allocations: 11609)
1397
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 4.3ms | Allocations: 11605)
1398
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 25], ["OFFSET", 0]]
1399
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.5ms | Allocations: 1010)
1400
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | Allocations: 1015)
1401
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.4ms | Allocations: 1010)
1402
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.0ms | Allocations: 9)
1403
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 16.4ms | Allocations: 40742)
1404
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/create.js.erb (Duration: 17.2ms | Allocations: 44140)
1405
+ Completed 200 OK in 19ms (Views: 16.5ms | ActiveRecord: 0.9ms | Allocations: 49974)
1406
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1407
+ Started GET "/rails/db/tables/users/edit?pk_id=3" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1408
+ Processing by RailsDb::TablesController#edit as JS
1409
+ Parameters: {"pk_id" => "3", "table_id" => "users"}
1410
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1411
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
1412
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/tables/edit.js.erb
1413
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 3.5ms | Allocations: 9917)
1414
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 4.0ms | Allocations: 13619)
1415
+ Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms | Allocations: 18645)
1416
+ Started PUT "/rails/db/tables/users/update?pk_id=3" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1417
+ Processing by RailsDb::TablesController#update as JS
1418
+ Parameters: {"record" => {"name" => "STI"}, "pk_id" => "3", "table_id" => "users"}
1419
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1420
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
1421
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1422
+ #<Class:0x000000012626a1e8> Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "STI"], ["updated_at", "2025-07-09 19:46:51.770606"], ["id", 3]]
1423
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1424
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/tables/update.js.erb
1425
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.5ms | Allocations: 1035)
1426
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/tables/update.js.erb (Duration: 0.7ms | Allocations: 1465)
1427
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms | Allocations: 6958)
1428
+ Customer Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."type" = ? AND "users"."id" = ? LIMIT ? [["type", "Customer"], ["id", 3], ["LIMIT", 1]]
1429
+ Started GET "/admin/tools/db" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1430
+ Processing by RailsDb::DashboardController#index as HTML
1431
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1432
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application
1433
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application (Duration: 0.2ms | Allocations: 421)
1434
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.8ms | Allocations: 423)
1435
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.4ms | Allocations: 1041)
1436
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | Allocations: 586)
1437
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | Allocations: 104)
1438
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.3ms | Allocations: 576)
1439
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 2.3ms | Allocations: 3481)
1440
+ Completed 200 OK in 2ms (Views: 2.4ms | ActiveRecord: 0.0ms | Allocations: 3654)
1441
+ Started GET "/admin/tools/db/sql" for 127.0.0.1 at 2025-07-09 22:46:51 +0300
1442
+ Processing by RailsDb::SqlController#index as HTML
1443
+ Rendering layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb
1444
+ Rendering /Users/igor/projects/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
1445
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | Allocations: 17)
1446
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.1ms | Allocations: 128)
1447
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application (Duration: 1.5ms | Allocations: 3304)
1448
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_assets.html.erb (Duration: 0.7ms | Allocations: 422)
1449
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.4ms | Allocations: 1030)
1450
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | Allocations: 586)
1451
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | Allocations: 104)
1452
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | Allocations: 576)
1453
+ Rendered layout /Users/igor/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 3.2ms | Allocations: 6350)
1454
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms | Allocations: 6536)
1455
+ TRANSACTION (0.0ms) rollback transaction
1456
+ TRANSACTION (0.0ms) begin transaction
1457
+ --------------------------
1458
+ SqlImportTest: test_import
1459
+ --------------------------
1460
+  (0.0ms) update users set age = 11 where id = 1
1461
+  (0.0ms) update users set age = 22 where id = 2
1462
+  (0.0ms) update users set age = 33 where id = 3
1463
+  (0.0ms) 
1464
+ DROP TABLE IF EXISTS t
1465
+  (0.0ms) 
1466
+ CREATE TABLE t(x INTEGER, y, z, PRIMARY KEY(x ASC))
1467
+ TRANSACTION (0.0ms) rollback transaction
1468
+ TRANSACTION (0.0ms) begin transaction
1469
+ ------------------------
1470
+ TableTest: test_as_table
1471
+ ------------------------
1472
+ User Delete All (0.0ms) DELETE FROM "users"
1473
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1474
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-07-09 19:46:51.783821"], ["updated_at", "2025-07-09 19:46:51.783821"]]
1475
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1476
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1477
+  Load (0.0ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]]
1478
+ TRANSACTION (0.0ms) rollback transaction
1479
+ TRANSACTION (0.0ms) begin transaction
1480
+ -----------------------
1481
+ TableTest: test_columns
1482
+ -----------------------
1483
+ TRANSACTION (0.0ms) rollback transaction
1484
+ TRANSACTION (0.0ms) begin transaction
1485
+ ----------------------
1486
+ TableTest: test_delete
1487
+ ----------------------
1488
+ User Delete All (0.0ms) DELETE FROM "users"
1489
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1490
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-07-09 19:46:51.786168"], ["updated_at", "2025-07-09 19:46:51.786168"]]
1491
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1492
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1493
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "john"], ["created_at", "2025-07-09 19:46:51.786416"], ["updated_at", "2025-07-09 19:46:51.786416"]]
1494
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1495
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1496
+  (0.0ms) DELETE FROM users WHERE id = 1;
1497
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1498
+ User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."name" = ? [["name", "igor"]]
1499
+ User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."name" = ? [["name", "john"]]
1500
+ TRANSACTION (0.0ms) rollback transaction
1501
+ TRANSACTION (0.0ms) begin transaction
1502
+ ------------------------
1503
+ TableTest: test_truncate
1504
+ ------------------------
1505
+ User Delete All (0.0ms) DELETE FROM "users"
1506
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1507
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-07-09 19:46:51.787317"], ["updated_at", "2025-07-09 19:46:51.787317"]]
1508
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1509
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1510
+  (0.0ms) DELETE FROM users;
1511
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1512
+ TRANSACTION (0.0ms) rollback transaction
1513
+ TRANSACTION (0.0ms) begin transaction
1514
+ -----------------------
1515
+ TableTest: test_ransack
1516
+ -----------------------
1517
+ User Delete All (0.0ms) DELETE FROM "users"
1518
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1519
+ User Create (0.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "111"], ["created_at", "2025-07-09 19:46:51.787906"], ["updated_at", "2025-07-09 19:46:51.787906"]]
1520
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1521
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1522
+ User Create (0.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "555"], ["created_at", "2025-07-09 19:46:51.788133"], ["updated_at", "2025-07-09 19:46:51.788133"]]
1523
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1524
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1525
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "333"], ["created_at", "2025-07-09 19:46:51.788350"], ["updated_at", "2025-07-09 19:46:51.788350"]]
1526
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1527
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1528
+  Pluck (0.0ms) SELECT "users"."name" FROM "users" ORDER BY "users"."name" DESC
1529
+ TRANSACTION (0.0ms) rollback transaction
1530
+ TRANSACTION (0.0ms) begin transaction
1531
+ ----------------------
1532
+ TableTest: test_to_csv
1533
+ ----------------------
1534
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1535
+ User Create (0.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-07-09 19:46:51.789171"], ["updated_at", "2025-07-09 19:46:51.789171"]]
1536
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1537
+ SQL (0.0ms) SELECT * FROM users
1538
+ TRANSACTION (0.0ms) rollback transaction
1539
+ TRANSACTION (0.0ms) begin transaction
1540
+ ---------------------------
1541
+ TableTest: test_primary_key
1542
+ ---------------------------
1543
+ TRANSACTION (0.0ms) rollback transaction
1544
+ TRANSACTION (0.0ms) begin transaction
1545
+ --------------------------------------------------------------
1546
+ RailsDbHelpersTest: test_default_rails_db_data_table_sql_works
1547
+ --------------------------------------------------------------
1548
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1549
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-07-09 19:46:51.790309"], ["updated_at", "2025-07-09 19:46:51.790309"]]
1550
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1551
+ SQL (0.0ms) select * from users
1552
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sql_result.html.erb (Duration: 0.0ms | Allocations: 61)
1553
+ TRANSACTION (0.0ms) rollback transaction
1554
+ TRANSACTION (0.0ms) begin transaction
1555
+ ----------------------------------------------------------
1556
+ RailsDbHelpersTest: test_default_rails_db_data_table_works
1557
+ ----------------------------------------------------------
1558
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1559
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-07-09 19:46:51.791040"], ["updated_at", "2025-07-09 19:46:51.791040"]]
1560
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1561
+ SQL (0.0ms) SELECT * FROM users
1562
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_data_table.html.erb (Duration: 0.3ms | Allocations: 772)
1563
+ TRANSACTION (0.0ms) rollback transaction
1564
+ TRANSACTION (0.0ms) begin transaction
1565
+ ------------------------------------------------------------------------
1566
+ RailsDbHelpersTest: test_rails_db_data_table_sql_works_with_many_options
1567
+ ------------------------------------------------------------------------
1568
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1569
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-07-09 19:46:51.791905"], ["updated_at", "2025-07-09 19:46:51.791905"]]
1570
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1571
+ SQL (0.0ms) select * from users
1572
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_sql_result.html.erb (Duration: 0.0ms | Allocations: 87)
1573
+ TRANSACTION (0.0ms) rollback transaction
1574
+ TRANSACTION (0.0ms) begin transaction
1575
+ --------------------------------------------------------------------
1576
+ RailsDbHelpersTest: test_rails_db_data_table_works_with_many_options
1577
+ --------------------------------------------------------------------
1578
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1579
+ User Create (0.0ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) RETURNING "id" [["name", "Igor"], ["age", 9999], ["created_at", "2025-07-09 19:46:51.792438"], ["updated_at", "2025-07-09 19:46:51.792438"]]
1580
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1581
+ SQL (0.0ms) SELECT id, name FROM users ORDER BY id asc LIMIT 10 OFFSET 0
1582
+ Rendered /Users/igor/projects/rails_db/app/views/rails_db/shared/_data_table.html.erb (Duration: 0.1ms | Allocations: 117)
1583
+ TRANSACTION (0.0ms) rollback transaction
1584
+ TRANSACTION (0.0ms) begin transaction
1585
+ -------------------------------------------------------------------------------------------------------------------------
1586
+ TablesHelperTest: test_method_display_style_column_returns_'display:none'_if_cookie_contains_record_for_this_table:column
1587
+ -------------------------------------------------------------------------------------------------------------------------
1588
+ TRANSACTION (0.0ms) rollback transaction
1589
+ TRANSACTION (0.0ms) begin transaction
1590
+ ------------------------------------------------------------------------------------------------------------------------------------
1591
+ TablesHelperTest: test_method_column_is_checked?_returns_true_for_checkbox_status_if_cookie_does_not_contain_hash_key_for_this_table
1592
+ ------------------------------------------------------------------------------------------------------------------------------------
1593
+ TRANSACTION (0.0ms) rollback transaction
1594
+ TRANSACTION (0.0ms) begin transaction
1595
+ ----------------------------------------------------------------------------------------------------------------------------------
1596
+ TablesHelperTest: test_method_column_is_checked?_returns_false_for_checkbox_status_if_cookie_contains_record_for_this_table:column
1597
+ ----------------------------------------------------------------------------------------------------------------------------------
1598
+ TRANSACTION (0.0ms) rollback transaction
1599
+ TRANSACTION (0.0ms) begin transaction
1600
+ ----------------------------------------------------------------------------------------------------------------------------
1601
+ TablesHelperTest: test_method_display_style_column_returns_'display'_if_cookie_does_not_contain_record_for_this_table:column
1602
+ ----------------------------------------------------------------------------------------------------------------------------
1603
+ TRANSACTION (0.0ms) rollback transaction
1604
+ TRANSACTION (0.0ms) begin transaction
1605
+ -----------------------------------------------------------------------------------------------------------------------------------------
1606
+ TablesHelperTest: test_method_column_is_checked?_returns_true_for_checkbox_status_if_cookie_does_not_contain_record_for_this_table:column
1607
+ -----------------------------------------------------------------------------------------------------------------------------------------
1608
+ TRANSACTION (0.0ms) rollback transaction
1609
+ TRANSACTION (0.0ms) begin transaction
1610
+ -------------------------
1611
+ DatabaseTest: test_tables
1612
+ -------------------------
1613
+ TRANSACTION (0.0ms) rollback transaction
1614
+ TRANSACTION (0.0ms) begin transaction
1615
+ ------------------------------------
1616
+ DatabaseTest: test_accessible_tables
1617
+ ------------------------------------
1618
+ TRANSACTION (0.0ms) rollback transaction
1619
+ TRANSACTION (0.0ms) begin transaction
1620
+ -------------------------
1621
+ DatabaseTest: test_insert
1622
+ -------------------------
1623
+ SQL (0.7ms) delete from projects_users
1624
+ SQL (0.0ms) EXPLAIN delete from projects_users
1625
+ User Delete All (0.0ms) DELETE FROM "users"
1626
+ SQL (0.0ms) SELECT COUNT(*) FROM projects_users
1627
+ SQL (0.0ms) insert into projects_users(project_id, user_id) values(1,2)
1628
+ SQL (0.0ms) EXPLAIN insert into projects_users(project_id, user_id) values(1,2)
1629
+ SQL (0.0ms) SELECT COUNT(*) FROM projects_users
1630
+ TRANSACTION (0.0ms) rollback transaction
1631
+ TRANSACTION (0.0ms) begin transaction
1632
+ ------------------------
1633
+ DatabaseTest: test_query
1634
+ ------------------------
1635
+ User Delete All (0.0ms) DELETE FROM "users"
1636
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1637
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-07-09 19:46:51.795769"], ["updated_at", "2025-07-09 19:46:51.795769"]]
1638
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1639
+ SQL (0.0ms) select count(*) as users_count from users
1640
+ SQL (0.0ms) EXPLAIN select count(*) as users_count from users
1641
+ TRANSACTION (0.0ms) rollback transaction
1642
+ TRANSACTION (0.0ms) begin transaction
1643
+ --------------------------
1644
+ DatabaseTest: test_adapter
1645
+ --------------------------
1646
+ TRANSACTION (0.0ms) rollback transaction
1647
+ TRANSACTION (0.0ms) begin transaction
1648
+ -----------------------
1649
+ RailsDbTest: test_truth
1650
+ -----------------------
1651
+ TRANSACTION (0.0ms) rollback transaction
1652
+ TRANSACTION (0.0ms) begin transaction
1653
+ ------------------------------------
1654
+ RailsDbTest: test_verify_access_proc
1655
+ ------------------------------------
1656
+ TRANSACTION (0.0ms) rollback transaction
@@ -0,0 +1 @@
1
+ I"�/Users/igor/projects/rails_db/app/assets/stylesheets/rails_db/application.css?type=text/css&pipeline=self&id=5d3de12091efbf30d9842712344f7ed3f8f512c4041f1d0660c2dc4a87f6b197:ET
@@ -0,0 +1 @@
1
+ "%Tk L�7z�@�wv0��oF�8�D!��a����
@@ -0,0 +1 @@
1
+ I"�/Users/igor/projects/rails_db/app/assets/javascripts/rails_db/shared.js?type=application/javascript&pipeline=self&id=97e9b00a0742031439c300aee1c7e1f3693d4a21dc08b444bf4c26f75f93cfdb:ET
@@ -0,0 +1 @@
1
+ "%���:��� Î��w]��$��Ub�ߍ#V�`R�
@@ -0,0 +1 @@
1
+ I"�/Users/igor/projects/rails_db/app/assets/javascripts/rails_db/application.js?type=application/javascript&pipeline=self&id=a799e5a3345989d7cd59f5c7f10c965fff8f380a34fc4cf4f0e1d994708265ba:ET
@@ -0,0 +1 @@
1
+ "%l�|�n�dt�aE<�v�g@�qV j�0���ݒ
@@ -0,0 +1 @@
1
+ I"�/Users/igor/projects/rails_db/app/assets/javascripts/rails_db/application.js?type=application/javascript&id=44fa92fa3dd29f0c2372f8b4840a3c54500fc1326a64f68792cbb22aac291130:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"Zfile-digest:///Users/igor/projects/rails_db/app/assets/javascripts/rails_db/shared.js;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/igor/projects/rails_db/app/assets/stylesheets/rails_db/application.css?type=text/css&id=9729fb3e47f2ab0ad1584dafc0ea2d2fc6857dec77405136356854344e7e9787:ET