rails8_db 0.0.9 → 0.0.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0217f72bf0f6f883cfeff4791f54836193fbe5a6e4cfe5baebf67c8d0e1b2459
4
- data.tar.gz: d3fc6c709f215871a176fe6a0e3dd6c02f889136027cab4e7e23956b5579362c
3
+ metadata.gz: 56d218c6b3d8147e73d9147123782471c2ba7195bf5625bd17a8845857f4423c
4
+ data.tar.gz: 4bd66cabc27c66e99ea46f891001280d91a770277b8572f07b4deb204cc933e1
5
5
  SHA512:
6
- metadata.gz: 3bc253630da5f6d0a8cc503cbed1f331cefec9b4ba173adac10048043428dd2acfbb8ca96117ee2a19605fbce418cb67f4568e93402504dd9b18422c366bc8ec
7
- data.tar.gz: eaebbba42949d779504bf70b8b2025cec2f2f74b6451f9c2d03d0dd9031e7243795972d8352ba2d908a0d96128d4d62e5564e8d27370e669fb3cecae2395ccf5
6
+ metadata.gz: 95f3562bb26dfdd26aad78a9536d439945799a76f4c83bca5dc1bfe73bb360264f44a8f3a85b19ec2d0235128fb231b41d9ecf0706dbf4a8df0bdff4b8de692f
7
+ data.tar.gz: 5f49cf2d29c51b95053b8438a5c74d12321ec24cb31cafeed13b556a9f31c66d3deae9dec7475f90e967a97bf7099f99de31edfdcc9e3c60496a9c5613573d8b
@@ -1,8 +1,8 @@
1
1
  // Import all required JavaScript files
2
- import "../codemirror/codemirror.js",
3
- import "../codemirror/modes/sql.js",
4
- import "../codemirror/addons/hint/show-hint.js",
5
- import "../codemirror/addons/hint/sql-hint.js",
2
+ import "../codemirror/codemirror.js"
3
+ import "../codemirror/modes/sql.js"
4
+ import "../codemirror/addons/hint/show-hint.js"
5
+ import "../codemirror/addons/hint/sql-hint.js"
6
6
  import "./jquery.js"
7
7
  import "./jquery.cookie.js"
8
8
  import "./foundation.min.js"
@@ -4,7 +4,7 @@
4
4
  <title><%= [yield(:title), 'Rails DB'].reject(&:blank?).join(' - ') %></title>
5
5
  <%= stylesheet_link_tag "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css" %>
6
6
  <%= stylesheet_link_tag "rails_db/application" %>
7
- <%= javascript_include_tag "rails_db/application" %>
7
+ <%= javascript_include_tag "rails_db/application", type: "module" %>
8
8
 
9
9
  <%= csrf_meta_tags %>
10
10
 
@@ -12,6 +12,11 @@ module RailsDb
12
12
  # Add the app/javascript directory to the asset paths
13
13
  initializer 'rails_db.assets.precompile' do |app|
14
14
  app.config.assets.paths << root.join('app', 'javascript')
15
+
16
+ # Configure Propshaft to handle JavaScript modules
17
+ if app.config.respond_to?(:assets) && app.config.assets.respond_to?(:js_compressor)
18
+ app.config.assets.js_compressor = nil if app.config.assets.js_compressor == :uglifier
19
+ end
15
20
  end
16
21
  end
17
22
  end
@@ -1,3 +1,3 @@
1
1
  module RailsDb
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -986,3 +986,497 @@ Processing by RailsDb::SqlController#index as HTML
986
986
  Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 3.4ms | GC: 0.2ms)
987
987
  Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.5ms (0 queries, 0 cached) | GC: 0.2ms)
988
988
  TRANSACTION (0.0ms) ROLLBACK TRANSACTION
989
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "schema_sha1"]]
990
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
991
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
992
+ ----------------------------------------------
993
+ DashboardControllerTest: test_should_get_index
994
+ ----------------------------------------------
995
+ User Delete All (0.2ms) DELETE FROM "users"
996
+ Account Delete All (0.0ms) DELETE FROM "accounts"
997
+ Customer Delete All (0.0ms) DELETE FROM "users" WHERE "users"."type" = ? [["type", "Customer"]]
998
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
999
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:59:32.184526"], ["updated_at", "2025-04-01 15:59:32.184526"]]
1000
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1001
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1002
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Edit"], ["created_at", "2025-04-01 15:59:32.185078"], ["updated_at", "2025-04-01 15:59:32.185078"]]
1003
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1004
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1005
+ 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-04-01 15:59:32.189744"], ["updated_at", "2025-04-01 15:59:32.189744"], ["type", "Customer"]]
1006
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1007
+ Started GET "/rails/db" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1008
+ Processing by RailsDb::DashboardController#index as HTML
1009
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1010
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application
1011
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application (Duration: 9.0ms | GC: 0.2ms)
1012
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 1.4ms | GC: 0.0ms)
1013
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.5ms | GC: 0.0ms)
1014
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.2ms | GC: 0.0ms)
1015
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.7ms | GC: 0.0ms)
1016
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 15.6ms | GC: 0.2ms)
1017
+ Completed 200 OK in 54ms (Views: 52.0ms | ActiveRecord: 0.1ms (0 queries, 0 cached) | GC: 21.5ms)
1018
+ Started GET "/rails/db/tables/users" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1019
+ Processing by RailsDb::TablesController#show as HTML
1020
+ Parameters: {"id"=>"users"}
1021
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1022
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/show.html.erb within layouts/rails_db/application
1023
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.1ms | GC: 0.0ms)
1024
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_show.html.erb (Duration: 4.2ms | GC: 0.0ms)
1025
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/show.html.erb within layouts/rails_db/application (Duration: 4.4ms | GC: 0.0ms)
1026
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
1027
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
1028
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
1029
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
1030
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 5.3ms | GC: 0.0ms)
1031
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.9ms (0 queries, 0 cached) | GC: 0.0ms)
1032
+ Started GET "/rails/db/tables/users/data" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1033
+ Processing by RailsDb::TablesController#data as HTML
1034
+ Parameters: {"table_id"=>"users"}
1035
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1036
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1037
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application
1038
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
1039
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 10.0ms | GC: 3.7ms)
1040
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 4.6ms | GC: 0.1ms)
1041
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
1042
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.9ms | GC: 0.0ms)
1043
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
1044
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
1045
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
1046
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
1047
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.1ms | GC: 0.0ms)
1048
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 26.2ms | GC: 4.1ms)
1049
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application (Duration: 26.5ms | GC: 4.1ms)
1050
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
1051
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
1052
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
1053
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
1054
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 27.3ms | GC: 4.1ms)
1055
+ Completed 200 OK in 30ms (Views: 26.7ms | ActiveRecord: 0.7ms (4 queries, 2 cached) | GC: 4.1ms)
1056
+ Started GET "/rails/db/sql" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1057
+ Processing by RailsDb::SqlController#index as HTML
1058
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1059
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
1060
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
1061
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.1ms | GC: 0.0ms)
1062
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application (Duration: 3.0ms | GC: 0.0ms)
1063
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
1064
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | GC: 0.0ms)
1065
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
1066
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
1067
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 4.7ms | GC: 0.0ms)
1068
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.5ms (0 queries, 0 cached) | GC: 0.0ms)
1069
+ Started GET "/rails/db/import" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1070
+ Processing by RailsDb::SqlController#import as HTML
1071
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1072
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/import.html.erb within layouts/rails_db/application
1073
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_import_sample.html.erb (Duration: 0.1ms | GC: 0.0ms)
1074
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/import.html.erb within layouts/rails_db/application (Duration: 0.5ms | GC: 0.0ms)
1075
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
1076
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
1077
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
1078
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
1079
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 1.3ms | GC: 0.0ms)
1080
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1081
+ Started GET "/rails/db/data-table" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1082
+ Processing by RailsDb::DashboardController#data_table as HTML
1083
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1084
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/data_table.html.erb within layouts/rails_db/application
1085
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/data_table.html.erb within layouts/rails_db/application (Duration: 0.5ms | GC: 0.0ms)
1086
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 2.5ms | GC: 2.3ms)
1087
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | GC: 0.0ms)
1088
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
1089
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
1090
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 3.8ms | GC: 2.3ms)
1091
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 2.3ms)
1092
+ Started GET "/rails/db/tables/users/data?sort_column=id&sort_order=desc" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1093
+ Processing by RailsDb::TablesController#data as HTML
1094
+ Parameters: {"sort_column"=>"id", "sort_order"=>"desc", "table_id"=>"users"}
1095
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1096
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1097
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application
1098
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
1099
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 5.1ms | GC: 0.4ms)
1100
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 4.9ms | GC: 0.2ms)
1101
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
1102
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
1103
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.6ms | GC: 0.0ms)
1104
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.6ms | GC: 0.0ms)
1105
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
1106
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
1107
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.0ms | GC: 0.0ms)
1108
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 19.5ms | GC: 0.8ms)
1109
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application (Duration: 19.6ms | GC: 0.8ms)
1110
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
1111
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
1112
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
1113
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
1114
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 20.4ms | GC: 0.8ms)
1115
+ Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.6ms (4 queries, 2 cached) | GC: 1.0ms)
1116
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1117
+ Started GET "/rails/db/tables/users/destroy?pk_id=1" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1118
+ Processing by RailsDb::TablesController#destroy as HTML
1119
+ Parameters: {"pk_id"=>"1", "table_id"=>"users"}
1120
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1121
+  (0.0ms) DELETE FROM users WHERE id = '1';
1122
+ Redirected to http://www.example.com/rails/db/tables/users/data
1123
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms (2 queries, 0 cached) | GC: 0.0ms)
1124
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1125
+ Started GET "/rails/db/tables/users/csv" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1126
+ Processing by RailsDb::TablesController#csv as HTML
1127
+ Parameters: {"table_id"=>"users"}
1128
+ SQL (0.0ms) SELECT * FROM users
1129
+ Rendering text template
1130
+ Rendered text template (Duration: 0.0ms | GC: 0.0ms)
1131
+ Sent data users.csv (0.5ms)
1132
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms (1 query, 0 cached) | GC: 0.0ms)
1133
+ Started GET "/rails/db/standalone" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1134
+ Processing by RailsDb::DashboardController#standalone as HTML
1135
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1136
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/standalone.html.erb within layouts/rails_db/application
1137
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/standalone.html.erb within layouts/rails_db/application (Duration: 0.7ms | GC: 0.0ms)
1138
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
1139
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | GC: 0.0ms)
1140
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
1141
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
1142
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 1.7ms | GC: 0.0ms)
1143
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1144
+ Started GET "/rails/db/sql?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1145
+ Processing by RailsDb::SqlController#index as HTML
1146
+ Parameters: {"sql"=>"select * from users limit 10"}
1147
+ SQL (0.0ms) select * from users limit 10
1148
+ SQL (0.0ms) EXPLAIN select * from users limit 10
1149
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1150
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
1151
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
1152
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.0ms | GC: 0.0ms)
1153
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_explain.html.erb (Duration: 0.1ms | GC: 0.0ms)
1154
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_results.html.erb (Duration: 0.7ms | GC: 0.0ms)
1155
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application (Duration: 5.4ms | GC: 2.1ms)
1156
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
1157
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
1158
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
1159
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
1160
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 6.2ms | GC: 2.1ms)
1161
+ Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.6ms (2 queries, 0 cached) | GC: 2.1ms)
1162
+ Started POST "/rails/db/sql-csv.csv?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1163
+ Processing by RailsDb::SqlController#csv as CSV
1164
+ Parameters: {"sql"=>"select * from users limit 10"}
1165
+ SQL (0.0ms) select * from users limit 10
1166
+ SQL (0.0ms) EXPLAIN select * from users limit 10
1167
+ Rendering text template
1168
+ Rendered text template (Duration: 0.0ms | GC: 0.0ms)
1169
+ Sent data results.csv (0.1ms)
1170
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms (2 queries, 0 cached) | GC: 0.0ms)
1171
+ Started POST "/rails/db/sql-xls.xls?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1172
+ Processing by RailsDb::SqlController#xls as XLS
1173
+ Parameters: {"sql"=>"select * from users limit 10"}
1174
+ SQL (0.0ms) select * from users limit 10
1175
+ SQL (0.0ms) EXPLAIN select * from users limit 10
1176
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/xls.xls.axlsx
1177
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/xls.xls.axlsx (Duration: 3.5ms | GC: 0.1ms)
1178
+ Rendering text template
1179
+ Rendered text template (Duration: 0.0ms | GC: 0.0ms)
1180
+ Sent data results.xlsx (0.1ms)
1181
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms (2 queries, 0 cached) | GC: 0.1ms)
1182
+ Started GET "/rails/db/tables/users/edit?pk_id=2" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1183
+ Processing by RailsDb::TablesController#edit as JS
1184
+ Parameters: {"pk_id"=>"2", "table_id"=>"users"}
1185
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1186
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
1187
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb
1188
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 7.2ms | GC: 0.2ms)
1189
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 7.9ms | GC: 0.2ms)
1190
+ Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.5ms (2 queries, 0 cached) | GC: 0.3ms)
1191
+ Started PUT "/rails/db/tables/users/update?pk_id=2" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1192
+ Processing by RailsDb::TablesController#update as JS
1193
+ Parameters: {"record"=>{"name"=>"JOHN"}, "pk_id"=>"2", "table_id"=>"users"}
1194
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1195
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
1196
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1197
+ #<Class:0x000000013561a658> Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "JOHN"], ["updated_at", "2025-04-01 15:59:32.366857"], ["id", 2]]
1198
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1199
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb
1200
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
1201
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb (Duration: 1.0ms | GC: 0.0ms)
1202
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.3ms (3 queries, 0 cached) | GC: 0.0ms)
1203
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
1204
+ Started GET "/rails/db/tables/users/new" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1205
+ Processing by RailsDb::TablesController#new as JS
1206
+ Parameters: {"table_id"=>"users"}
1207
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1208
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/new.js.erb
1209
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_new.html.erb (Duration: 3.2ms | GC: 0.0ms)
1210
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/new.js.erb (Duration: 3.5ms | GC: 0.0ms)
1211
+ Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms (1 query, 0 cached) | GC: 0.0ms)
1212
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1213
+ Started POST "/rails/db/tables/users/create" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1214
+ Processing by RailsDb::TablesController#create as JS
1215
+ Parameters: {"record"=>{"name"=>"XXX"}, "table_id"=>"users"}
1216
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1217
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1218
+ #<Class:0x00000001355fcb30> Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "XXX"], ["created_at", "2025-04-01 15:59:32.375712"], ["updated_at", "2025-04-01 15:59:32.375712"]]
1219
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1220
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/create.js.erb
1221
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
1222
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 7.0ms | GC: 2.4ms)
1223
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 5.4ms | GC: 0.6ms)
1224
+  Load (0.1ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
1225
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 1.1ms | GC: 0.0ms)
1226
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.9ms | GC: 0.1ms)
1227
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.8ms | GC: 0.0ms)
1228
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1229
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
1230
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.0ms | GC: 0.0ms)
1231
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 24.6ms | GC: 3.5ms)
1232
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/create.js.erb (Duration: 25.2ms | GC: 3.5ms)
1233
+ Completed 200 OK in 27ms (Views: 24.4ms | ActiveRecord: 1.1ms (5 queries, 1 cached) | GC: 3.5ms)
1234
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1235
+ Started GET "/rails/db/tables/users/edit?pk_id=3" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1236
+ Processing by RailsDb::TablesController#edit as JS
1237
+ Parameters: {"pk_id"=>"3", "table_id"=>"users"}
1238
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1239
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
1240
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb
1241
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 4.4ms | GC: 0.0ms)
1242
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 4.9ms | GC: 0.0ms)
1243
+ Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.5ms (2 queries, 0 cached) | GC: 0.0ms)
1244
+ Started PUT "/rails/db/tables/users/update?pk_id=3" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1245
+ Processing by RailsDb::TablesController#update as JS
1246
+ Parameters: {"record"=>{"name"=>"STI"}, "pk_id"=>"3", "table_id"=>"users"}
1247
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1248
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
1249
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1250
+ #<Class:0x00000001355fe250> Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "STI"], ["updated_at", "2025-04-01 15:59:32.412562"], ["id", 3]]
1251
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1252
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb
1253
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.8ms | GC: 0.0ms)
1254
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb (Duration: 1.0ms | GC: 0.0ms)
1255
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.4ms (3 queries, 0 cached) | GC: 0.0ms)
1256
+ Customer Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."type" = ? AND "users"."id" = ? LIMIT ? [["type", "Customer"], ["id", 3], ["LIMIT", 1]]
1257
+ Started GET "/admin/tools/db" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1258
+ Processing by RailsDb::DashboardController#index as HTML
1259
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1260
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application
1261
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application (Duration: 0.0ms | GC: 0.0ms)
1262
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
1263
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | GC: 0.0ms)
1264
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
1265
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
1266
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 1.1ms | GC: 0.0ms)
1267
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
1268
+ Started GET "/admin/tools/db/sql" for 127.0.0.1 at 2025-04-01 12:59:32 -0300
1269
+ Processing by RailsDb::SqlController#index as HTML
1270
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
1271
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
1272
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
1273
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.0ms | GC: 0.0ms)
1274
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application (Duration: 2.7ms | GC: 0.2ms)
1275
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
1276
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
1277
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
1278
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.4ms | GC: 0.2ms)
1279
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 3.8ms | GC: 0.4ms)
1280
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms (0 queries, 0 cached) | GC: 0.4ms)
1281
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1282
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1283
+ --------------------------------------------------------------------
1284
+ RailsDbHelpersTest: test_rails_db_data_table_works_with_many_options
1285
+ --------------------------------------------------------------------
1286
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1287
+ User Create (0.1ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) RETURNING "id" [["name", "Igor"], ["age", 9999], ["created_at", "2025-04-01 15:59:32.424037"], ["updated_at", "2025-04-01 15:59:32.424037"]]
1288
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1289
+ SQL (0.0ms) SELECT id, name FROM users ORDER BY id asc LIMIT 10 OFFSET 0
1290
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_data_table.html.erb (Duration: 0.6ms | GC: 0.2ms)
1291
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1292
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1293
+ ------------------------------------------------------------------------
1294
+ RailsDbHelpersTest: test_rails_db_data_table_sql_works_with_many_options
1295
+ ------------------------------------------------------------------------
1296
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1297
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:59:32.426363"], ["updated_at", "2025-04-01 15:59:32.426363"]]
1298
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1299
+ SQL (0.0ms) select * from users
1300
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sql_result.html.erb (Duration: 0.5ms | GC: 0.0ms)
1301
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1302
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1303
+ --------------------------------------------------------------
1304
+ RailsDbHelpersTest: test_default_rails_db_data_table_sql_works
1305
+ --------------------------------------------------------------
1306
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1307
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:59:32.428982"], ["updated_at", "2025-04-01 15:59:32.428982"]]
1308
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1309
+ SQL (0.0ms) select * from users
1310
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sql_result.html.erb (Duration: 0.0ms | GC: 0.0ms)
1311
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1312
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1313
+ ----------------------------------------------------------
1314
+ RailsDbHelpersTest: test_default_rails_db_data_table_works
1315
+ ----------------------------------------------------------
1316
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1317
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:59:32.430057"], ["updated_at", "2025-04-01 15:59:32.430057"]]
1318
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1319
+ SQL (0.0ms) SELECT * FROM users
1320
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_data_table.html.erb (Duration: 0.6ms | GC: 0.0ms)
1321
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1322
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1323
+ -------------------------
1324
+ DatabaseTest: test_tables
1325
+ -------------------------
1326
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1327
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1328
+ -------------------------
1329
+ DatabaseTest: test_insert
1330
+ -------------------------
1331
+ SQL (0.2ms) delete from projects_users
1332
+ SQL (0.0ms) EXPLAIN delete from projects_users
1333
+ User Delete All (0.0ms) DELETE FROM "users"
1334
+ SQL (0.0ms) SELECT COUNT(*) FROM projects_users
1335
+ SQL (0.0ms) insert into projects_users(project_id, user_id) values(1,2)
1336
+ SQL (0.0ms) EXPLAIN insert into projects_users(project_id, user_id) values(1,2)
1337
+ SQL (0.0ms) SELECT COUNT(*) FROM projects_users
1338
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1339
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1340
+ ------------------------
1341
+ DatabaseTest: test_query
1342
+ ------------------------
1343
+ User Delete All (0.0ms) DELETE FROM "users"
1344
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1345
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:59:32.433621"], ["updated_at", "2025-04-01 15:59:32.433621"]]
1346
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1347
+ SQL (0.0ms) select count(*) as users_count from users
1348
+ SQL (0.0ms) EXPLAIN select count(*) as users_count from users
1349
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1350
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1351
+ ------------------------------------
1352
+ DatabaseTest: test_accessible_tables
1353
+ ------------------------------------
1354
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1355
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1356
+ --------------------------
1357
+ DatabaseTest: test_adapter
1358
+ --------------------------
1359
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1360
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1361
+ ---------------------------
1362
+ TableTest: test_primary_key
1363
+ ---------------------------
1364
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1365
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1366
+ ----------------------
1367
+ TableTest: test_delete
1368
+ ----------------------
1369
+ User Delete All (0.0ms) DELETE FROM "users"
1370
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1371
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:59:32.436658"], ["updated_at", "2025-04-01 15:59:32.436658"]]
1372
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1373
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1374
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "john"], ["created_at", "2025-04-01 15:59:32.436968"], ["updated_at", "2025-04-01 15:59:32.436968"]]
1375
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1376
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1377
+  (0.0ms) DELETE FROM users WHERE id = 1;
1378
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1379
+ User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."name" = ? [["name", "igor"]]
1380
+ User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."name" = ? [["name", "john"]]
1381
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1382
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1383
+ ------------------------
1384
+ TableTest: test_truncate
1385
+ ------------------------
1386
+ User Delete All (0.0ms) DELETE FROM "users"
1387
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1388
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:59:32.438158"], ["updated_at", "2025-04-01 15:59:32.438158"]]
1389
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1390
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1391
+  (0.0ms) DELETE FROM users;
1392
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
1393
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1394
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1395
+ ------------------------
1396
+ TableTest: test_as_table
1397
+ ------------------------
1398
+ User Delete All (0.0ms) DELETE FROM "users"
1399
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1400
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:59:32.438968"], ["updated_at", "2025-04-01 15:59:32.438968"]]
1401
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1402
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1403
+  Load (0.0ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]]
1404
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1405
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1406
+ ----------------------
1407
+ TableTest: test_to_csv
1408
+ ----------------------
1409
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1410
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:59:32.441638"], ["updated_at", "2025-04-01 15:59:32.441638"]]
1411
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1412
+ SQL (0.0ms) SELECT * FROM users
1413
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1414
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1415
+ -----------------------
1416
+ TableTest: test_ransack
1417
+ -----------------------
1418
+ User Delete All (0.0ms) DELETE FROM "users"
1419
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1420
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "111"], ["created_at", "2025-04-01 15:59:32.443031"], ["updated_at", "2025-04-01 15:59:32.443031"]]
1421
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1422
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1423
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "555"], ["created_at", "2025-04-01 15:59:32.443464"], ["updated_at", "2025-04-01 15:59:32.443464"]]
1424
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1425
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
1426
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "333"], ["created_at", "2025-04-01 15:59:32.443859"], ["updated_at", "2025-04-01 15:59:32.443859"]]
1427
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
1428
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
1429
+  Pluck (0.0ms) SELECT "users"."name" FROM "users" ORDER BY "users"."name" DESC
1430
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1431
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1432
+ -----------------------
1433
+ TableTest: test_columns
1434
+ -----------------------
1435
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1436
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1437
+ -------------------------------------------------------------------------------------------------------------------------
1438
+ TablesHelperTest: test_method_display_style_column_returns_'display:none'_if_cookie_contains_record_for_this_table:column
1439
+ -------------------------------------------------------------------------------------------------------------------------
1440
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1441
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1442
+ -----------------------------------------------------------------------------------------------------------------------------------------
1443
+ TablesHelperTest: test_method_column_is_checked?_returns_true_for_checkbox_status_if_cookie_does_not_contain_record_for_this_table:column
1444
+ -----------------------------------------------------------------------------------------------------------------------------------------
1445
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1446
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1447
+ ----------------------------------------------------------------------------------------------------------------------------
1448
+ TablesHelperTest: test_method_display_style_column_returns_'display'_if_cookie_does_not_contain_record_for_this_table:column
1449
+ ----------------------------------------------------------------------------------------------------------------------------
1450
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1451
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1452
+ ----------------------------------------------------------------------------------------------------------------------------------
1453
+ TablesHelperTest: test_method_column_is_checked?_returns_false_for_checkbox_status_if_cookie_contains_record_for_this_table:column
1454
+ ----------------------------------------------------------------------------------------------------------------------------------
1455
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1456
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1457
+ ------------------------------------------------------------------------------------------------------------------------------------
1458
+ TablesHelperTest: test_method_column_is_checked?_returns_true_for_checkbox_status_if_cookie_does_not_contain_hash_key_for_this_table
1459
+ ------------------------------------------------------------------------------------------------------------------------------------
1460
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1461
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1462
+ --------------------------
1463
+ SqlImportTest: test_import
1464
+ --------------------------
1465
+  (0.0ms) update users set age = 11 where id = 1
1466
+  (0.0ms) update users set age = 22 where id = 2
1467
+  (0.0ms) update users set age = 33 where id = 3
1468
+  (0.0ms) 
1469
+ DROP TABLE IF EXISTS t
1470
+  (0.0ms) 
1471
+ CREATE TABLE t(x INTEGER, y, z, PRIMARY KEY(x ASC))
1472
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1473
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1474
+ -----------------------
1475
+ RailsDbTest: test_truth
1476
+ -----------------------
1477
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
1478
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
1479
+ ------------------------------------
1480
+ RailsDbTest: test_verify_access_proc
1481
+ ------------------------------------
1482
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails8_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilton Silveira