rails8_db 0.0.8 → 0.0.9

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: 5ba12f5b78e497cfad9196cfe635babb47d7d654002143a3b4b50f722e715eab
4
- data.tar.gz: 4cadbb40c4a1176001991203a9a15d5c2d215f6d67c778b7e41995a0db4e1c02
3
+ metadata.gz: 0217f72bf0f6f883cfeff4791f54836193fbe5a6e4cfe5baebf67c8d0e1b2459
4
+ data.tar.gz: d3fc6c709f215871a176fe6a0e3dd6c02f889136027cab4e7e23956b5579362c
5
5
  SHA512:
6
- metadata.gz: 739bbf058dbb3482931cb48f70a9a93c183910c1d89c4d094a926b7f2a99084c73485c724f818e115909bd35ba754893aa0d590554ef8c74196d6a14328be9b1
7
- data.tar.gz: fbc2fe759fa6d4c138d30236b4ac23a8c2badb6304f3dda49a52b47d0614b428e28439b218206be926cab18168611a508edd0d452b31e645d4ddd853036b1bd7
6
+ metadata.gz: 3bc253630da5f6d0a8cc503cbed1f331cefec9b4ba173adac10048043428dd2acfbb8ca96117ee2a19605fbce418cb67f4568e93402504dd9b18422c366bc8ec
7
+ data.tar.gz: eaebbba42949d779504bf70b8b2025cec2f2f74b6451f9c2d03d0dd9031e7243795972d8352ba2d908a0d96128d4d62e5564e8d27370e669fb3cecae2395ccf5
@@ -1,3 +1,15 @@
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",
6
+ import "./jquery.js"
7
+ import "./jquery.cookie.js"
8
+ import "./foundation.min.js"
9
+ import "./rails-ujs.js"
10
+ import "./search.js"
11
+ import "./show_hide_columns.js"
12
+ import "./sticky.js"
1
13
 
2
14
  $(function(){
3
15
  $(document).foundation();
@@ -4,22 +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
- <% unless ENV["RAILS_ENV"] == "test" %>
8
- <%= javascript_include_tag(
9
- "codemirror/codemirror.js",
10
- "codemirror/modes/sql.js",
11
- "codemirror/addons/hint/show-hint.js",
12
- "codemirror/addons/hint/sql-hint.js",
13
- "rails_db/jquery.js",
14
- "rails_db/jquery.cookie.js",
15
- "rails_db/rails-ujs.js",
16
- "rails_db/foundation.min.js",
17
- "rails_db/sticky.js",
18
- "rails_db/show_hide_columns.js",
19
- "rails_db/search.js"
20
- ) %>
21
- <%= javascript_include_tag "rails_db/application" %>
22
- <% end %>
7
+ <%= javascript_include_tag "rails_db/application" %>
23
8
 
24
9
  <%= csrf_meta_tags %>
25
10
 
@@ -8,5 +8,10 @@ module RailsDb
8
8
  include RailsDb::Helpers
9
9
  end
10
10
  end
11
+
12
+ # Add the app/javascript directory to the asset paths
13
+ initializer 'rails_db.assets.precompile' do |app|
14
+ app.config.assets.paths << root.join('app', 'javascript')
15
+ end
11
16
  end
12
17
  end
@@ -1,3 +1,3 @@
1
1
  module RailsDb
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -0,0 +1 @@
1
+ DEPRECATION WARNING: `to_time` will always preserve the receiver timezone rather than system local time in Rails 8.1. To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`. (called from <top (required)> at /Users/iltongarcia/Projects/rails/rails_db/test/dummy/config/environment.rb:5)
@@ -0,0 +1,988 @@
1
+ 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"]]
2
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4
+ ------------------------
5
+ TableTest: test_as_table
6
+ ------------------------
7
+ User Delete All (0.3ms) DELETE FROM "users"
8
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
9
+ User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:52:17.450783"], ["updated_at", "2025-04-01 15:52:17.450783"]]
10
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
11
+  Count (0.3ms) SELECT COUNT(*) FROM "users"
12
+  Load (0.0ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]]
13
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
14
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
15
+ ---------------------------
16
+ TableTest: test_primary_key
17
+ ---------------------------
18
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
19
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
20
+ ----------------------
21
+ TableTest: test_to_csv
22
+ ----------------------
23
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
24
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:52:17.454586"], ["updated_at", "2025-04-01 15:52:17.454586"]]
25
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
26
+ SQL (0.0ms) SELECT * FROM users
27
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
28
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
29
+ -----------------------
30
+ TableTest: test_ransack
31
+ -----------------------
32
+ User Delete All (0.0ms) DELETE FROM "users"
33
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
34
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "111"], ["created_at", "2025-04-01 15:52:17.455918"], ["updated_at", "2025-04-01 15:52:17.455918"]]
35
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
36
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
37
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "555"], ["created_at", "2025-04-01 15:52:17.456223"], ["updated_at", "2025-04-01 15:52:17.456223"]]
38
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
39
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
40
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "333"], ["created_at", "2025-04-01 15:52:17.456512"], ["updated_at", "2025-04-01 15:52:17.456512"]]
41
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
42
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
43
+  Pluck (0.0ms) SELECT "users"."name" FROM "users" ORDER BY "users"."name" DESC
44
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
45
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
46
+ ------------------------
47
+ TableTest: test_truncate
48
+ ------------------------
49
+ User Delete All (0.0ms) DELETE FROM "users"
50
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:52:17.464892"], ["updated_at", "2025-04-01 15:52:17.464892"]]
52
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
53
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
54
+  (0.0ms) DELETE FROM users;
55
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
56
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
57
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
58
+ -----------------------
59
+ TableTest: test_columns
60
+ -----------------------
61
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
62
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
63
+ ----------------------
64
+ TableTest: test_delete
65
+ ----------------------
66
+ User Delete All (0.0ms) DELETE FROM "users"
67
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
68
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:52:17.466737"], ["updated_at", "2025-04-01 15:52:17.466737"]]
69
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
70
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
71
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "john"], ["created_at", "2025-04-01 15:52:17.467073"], ["updated_at", "2025-04-01 15:52:17.467073"]]
72
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
73
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
74
+  (0.0ms) DELETE FROM users WHERE id = 1;
75
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
76
+ User Count (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."name" = ? [["name", "igor"]]
77
+ User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."name" = ? [["name", "john"]]
78
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
79
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
80
+ ------------------------
81
+ DatabaseTest: test_query
82
+ ------------------------
83
+ User Delete All (0.0ms) DELETE FROM "users"
84
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
85
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:52:17.469468"], ["updated_at", "2025-04-01 15:52:17.469468"]]
86
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
87
+ SQL (0.0ms) select count(*) as users_count from users
88
+ SQL (0.0ms) EXPLAIN select count(*) as users_count from users
89
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
90
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
91
+ ------------------------------------
92
+ DatabaseTest: test_accessible_tables
93
+ ------------------------------------
94
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
95
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
96
+ -------------------------
97
+ DatabaseTest: test_tables
98
+ -------------------------
99
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
100
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
101
+ --------------------------
102
+ DatabaseTest: test_adapter
103
+ --------------------------
104
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
105
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
106
+ -------------------------
107
+ DatabaseTest: test_insert
108
+ -------------------------
109
+ SQL (0.2ms) delete from projects_users
110
+ SQL (0.0ms) EXPLAIN delete from projects_users
111
+ User Delete All (0.0ms) DELETE FROM "users"
112
+ SQL (0.0ms) SELECT COUNT(*) FROM projects_users
113
+ SQL (0.0ms) insert into projects_users(project_id, user_id) values(1,2)
114
+ SQL (0.0ms) EXPLAIN insert into projects_users(project_id, user_id) values(1,2)
115
+ SQL (0.0ms) SELECT COUNT(*) FROM projects_users
116
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
117
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
118
+ ------------------------------------
119
+ RailsDbTest: test_verify_access_proc
120
+ ------------------------------------
121
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
122
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
123
+ -----------------------
124
+ RailsDbTest: test_truth
125
+ -----------------------
126
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
127
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
128
+ --------------------------
129
+ SqlImportTest: test_import
130
+ --------------------------
131
+  (0.0ms) update users set age = 11 where id = 1
132
+  (0.0ms) update users set age = 22 where id = 2
133
+  (0.0ms) update users set age = 33 where id = 3
134
+  (0.0ms) 
135
+ DROP TABLE IF EXISTS t
136
+  (0.0ms) 
137
+ CREATE TABLE t(x INTEGER, y, z, PRIMARY KEY(x ASC))
138
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
139
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
140
+ --------------------------------------------------------------------
141
+ RailsDbHelpersTest: test_rails_db_data_table_works_with_many_options
142
+ --------------------------------------------------------------------
143
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
144
+ User Create (0.2ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) RETURNING "id" [["name", "Igor"], ["age", 9999], ["created_at", "2025-04-01 15:52:17.477230"], ["updated_at", "2025-04-01 15:52:17.477230"]]
145
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
146
+ SQL (0.1ms) SELECT id, name FROM users ORDER BY id asc LIMIT 10 OFFSET 0
147
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_data_table.html.erb (Duration: 0.6ms | GC: 0.0ms)
148
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
149
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
150
+ --------------------------------------------------------------
151
+ RailsDbHelpersTest: test_default_rails_db_data_table_sql_works
152
+ --------------------------------------------------------------
153
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
154
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:52:17.502361"], ["updated_at", "2025-04-01 15:52:17.502361"]]
155
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
156
+ SQL (0.0ms) select * from users
157
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sql_result.html.erb (Duration: 0.3ms | GC: 0.0ms)
158
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
159
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
160
+ ----------------------------------------------------------
161
+ RailsDbHelpersTest: test_default_rails_db_data_table_works
162
+ ----------------------------------------------------------
163
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
164
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:52:17.504890"], ["updated_at", "2025-04-01 15:52:17.504890"]]
165
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
166
+ SQL (0.0ms) SELECT * FROM users
167
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_data_table.html.erb (Duration: 0.9ms | GC: 0.0ms)
168
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
169
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
170
+ ------------------------------------------------------------------------
171
+ RailsDbHelpersTest: test_rails_db_data_table_sql_works_with_many_options
172
+ ------------------------------------------------------------------------
173
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
174
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:52:17.507087"], ["updated_at", "2025-04-01 15:52:17.507087"]]
175
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
176
+ SQL (0.0ms) select * from users
177
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sql_result.html.erb (Duration: 0.0ms | GC: 0.0ms)
178
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
179
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
180
+ ----------------------------------------------
181
+ DashboardControllerTest: test_should_get_index
182
+ ----------------------------------------------
183
+ User Delete All (0.0ms) DELETE FROM "users"
184
+ Account Delete All (0.0ms) DELETE FROM "accounts"
185
+ Customer Delete All (0.0ms) DELETE FROM "users" WHERE "users"."type" = ? [["type", "Customer"]]
186
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
187
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:52:17.533034"], ["updated_at", "2025-04-01 15:52:17.533034"]]
188
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
189
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
190
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Edit"], ["created_at", "2025-04-01 15:52:17.533361"], ["updated_at", "2025-04-01 15:52:17.533361"]]
191
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
192
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
193
+ 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:52:17.534838"], ["updated_at", "2025-04-01 15:52:17.534838"], ["type", "Customer"]]
194
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
195
+ Started GET "/rails/db" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
196
+ Processing by RailsDb::DashboardController#index as HTML
197
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
198
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application
199
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application (Duration: 28.3ms | GC: 19.1ms)
200
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 1.5ms | GC: 0.0ms)
201
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.5ms | GC: 0.0ms)
202
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.2ms | GC: 0.0ms)
203
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.7ms | GC: 0.0ms)
204
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 34.8ms | GC: 19.1ms)
205
+ Completed 200 OK in 38ms (Views: 36.0ms | ActiveRecord: 0.1ms (0 queries, 0 cached) | GC: 19.2ms)
206
+ Started GET "/rails/db/tables/users" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
207
+ Processing by RailsDb::TablesController#show as HTML
208
+ Parameters: {"id"=>"users"}
209
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
210
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/show.html.erb within layouts/rails_db/application
211
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.1ms | GC: 0.0ms)
212
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_show.html.erb (Duration: 4.2ms | GC: 0.0ms)
213
+ 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)
214
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
215
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
216
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
217
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
218
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 5.2ms | GC: 0.0ms)
219
+ Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 1.0ms (0 queries, 0 cached) | GC: 0.0ms)
220
+ Started GET "/rails/db/tables/users/data" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
221
+ Processing by RailsDb::TablesController#data as HTML
222
+ Parameters: {"table_id"=>"users"}
223
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
224
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
225
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application
226
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
227
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 7.3ms | GC: 0.0ms)
228
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 4.8ms | GC: 0.0ms)
229
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
230
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 1.0ms | GC: 0.1ms)
231
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
232
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.6ms | GC: 0.0ms)
233
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
234
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
235
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.1ms | GC: 0.0ms)
236
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 27.1ms | GC: 3.7ms)
237
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application (Duration: 27.4ms | GC: 3.7ms)
238
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
239
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
240
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
241
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
242
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 28.2ms | GC: 3.7ms)
243
+ Completed 200 OK in 30ms (Views: 27.5ms | ActiveRecord: 0.8ms (4 queries, 2 cached) | GC: 3.7ms)
244
+ Started GET "/rails/db/sql" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
245
+ Processing by RailsDb::SqlController#index as HTML
246
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
247
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
248
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
249
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.2ms | GC: 0.0ms)
250
+ 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.2ms)
251
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.3ms | GC: 0.1ms)
252
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
253
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
254
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
255
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 4.7ms | GC: 0.2ms)
256
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.5ms (0 queries, 0 cached) | GC: 0.2ms)
257
+ Started GET "/rails/db/import" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
258
+ Processing by RailsDb::SqlController#import as HTML
259
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
260
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/import.html.erb within layouts/rails_db/application
261
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_import_sample.html.erb (Duration: 0.1ms | GC: 0.0ms)
262
+ 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)
263
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
264
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
265
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
266
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
267
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 1.3ms | GC: 0.0ms)
268
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
269
+ Started GET "/rails/db/data-table" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
270
+ Processing by RailsDb::DashboardController#data_table as HTML
271
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
272
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/data_table.html.erb within layouts/rails_db/application
273
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/data_table.html.erb within layouts/rails_db/application (Duration: 0.6ms | GC: 0.0ms)
274
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
275
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
276
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
277
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
278
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 1.4ms | GC: 0.0ms)
279
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
280
+ Started GET "/rails/db/tables/users/data?sort_column=id&sort_order=desc" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
281
+ Processing by RailsDb::TablesController#data as HTML
282
+ Parameters: {"sort_column"=>"id", "sort_order"=>"desc", "table_id"=>"users"}
283
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
284
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
285
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application
286
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
287
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 6.7ms | GC: 2.1ms)
288
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 5.0ms | GC: 0.5ms)
289
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
290
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.8ms | GC: 0.1ms)
291
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
292
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.6ms | GC: 0.0ms)
293
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
294
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
295
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.0ms | GC: 0.0ms)
296
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 21.3ms | GC: 2.9ms)
297
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application (Duration: 21.3ms | GC: 2.9ms)
298
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.3ms | GC: 0.1ms)
299
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | GC: 0.0ms)
300
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
301
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
302
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 22.2ms | GC: 3.0ms)
303
+ Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.7ms (4 queries, 2 cached) | GC: 3.0ms)
304
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
305
+ Started GET "/rails/db/tables/users/destroy?pk_id=1" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
306
+ Processing by RailsDb::TablesController#destroy as HTML
307
+ Parameters: {"pk_id"=>"1", "table_id"=>"users"}
308
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
309
+  (0.0ms) DELETE FROM users WHERE id = '1';
310
+ Redirected to http://www.example.com/rails/db/tables/users/data
311
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms (2 queries, 0 cached) | GC: 0.0ms)
312
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
313
+ Started GET "/rails/db/tables/users/csv" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
314
+ Processing by RailsDb::TablesController#csv as HTML
315
+ Parameters: {"table_id"=>"users"}
316
+ SQL (0.0ms) SELECT * FROM users
317
+ Rendering text template
318
+ Rendered text template (Duration: 0.0ms | GC: 0.0ms)
319
+ Sent data users.csv (0.6ms)
320
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms (1 query, 0 cached) | GC: 0.0ms)
321
+ Started GET "/rails/db/standalone" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
322
+ Processing by RailsDb::DashboardController#standalone as HTML
323
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
324
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/standalone.html.erb within layouts/rails_db/application
325
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/standalone.html.erb within layouts/rails_db/application (Duration: 0.8ms | GC: 0.0ms)
326
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
327
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
328
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
329
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
330
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 1.6ms | GC: 0.0ms)
331
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
332
+ Started GET "/rails/db/sql?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
333
+ Processing by RailsDb::SqlController#index as HTML
334
+ Parameters: {"sql"=>"select * from users limit 10"}
335
+ SQL (0.0ms) select * from users limit 10
336
+ SQL (0.0ms) EXPLAIN select * from users limit 10
337
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
338
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
339
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
340
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.1ms | GC: 0.0ms)
341
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_explain.html.erb (Duration: 0.1ms | GC: 0.0ms)
342
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_results.html.erb (Duration: 0.6ms | GC: 0.0ms)
343
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application (Duration: 3.1ms | GC: 0.0ms)
344
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
345
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
346
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
347
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
348
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 3.9ms | GC: 0.0ms)
349
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.5ms (2 queries, 0 cached) | GC: 0.0ms)
350
+ Started POST "/rails/db/sql-csv.csv?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
351
+ Processing by RailsDb::SqlController#csv as CSV
352
+ Parameters: {"sql"=>"select * from users limit 10"}
353
+ SQL (0.0ms) select * from users limit 10
354
+ SQL (0.0ms) EXPLAIN select * from users limit 10
355
+ Rendering text template
356
+ Rendered text template (Duration: 0.0ms | GC: 0.0ms)
357
+ Sent data results.csv (0.1ms)
358
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms (2 queries, 0 cached) | GC: 0.2ms)
359
+ Started POST "/rails/db/sql-xls.xls?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
360
+ Processing by RailsDb::SqlController#xls as XLS
361
+ Parameters: {"sql"=>"select * from users limit 10"}
362
+ SQL (0.0ms) select * from users limit 10
363
+ SQL (0.0ms) EXPLAIN select * from users limit 10
364
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/xls.xls.axlsx
365
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/xls.xls.axlsx (Duration: 21.1ms | GC: 0.3ms)
366
+ Rendering text template
367
+ Rendered text template (Duration: 0.0ms | GC: 0.0ms)
368
+ Sent data results.xlsx (0.1ms)
369
+ Completed 200 OK in 22ms (Views: 21.5ms | ActiveRecord: 0.0ms (2 queries, 0 cached) | GC: 0.3ms)
370
+ Started GET "/rails/db/tables/users/edit?pk_id=2" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
371
+ Processing by RailsDb::TablesController#edit as JS
372
+ Parameters: {"pk_id"=>"2", "table_id"=>"users"}
373
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
374
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
375
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb
376
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 8.3ms | GC: 0.2ms)
377
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 9.2ms | GC: 0.3ms)
378
+ Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.6ms (2 queries, 0 cached) | GC: 0.4ms)
379
+ Started PUT "/rails/db/tables/users/update?pk_id=2" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
380
+ Processing by RailsDb::TablesController#update as JS
381
+ Parameters: {"record"=>{"name"=>"JOHN"}, "pk_id"=>"2", "table_id"=>"users"}
382
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
383
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
384
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
385
+ #<Class:0x0000000125512130> Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "JOHN"], ["updated_at", "2025-04-01 15:52:17.710323"], ["id", 2]]
386
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
387
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb
388
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
389
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb (Duration: 1.0ms | GC: 0.0ms)
390
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.3ms (3 queries, 0 cached) | GC: 0.1ms)
391
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
392
+ Started GET "/rails/db/tables/users/new" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
393
+ Processing by RailsDb::TablesController#new as JS
394
+ Parameters: {"table_id"=>"users"}
395
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
396
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/new.js.erb
397
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_new.html.erb (Duration: 3.2ms | GC: 0.0ms)
398
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/new.js.erb (Duration: 3.5ms | GC: 0.0ms)
399
+ Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms (1 query, 0 cached) | GC: 0.0ms)
400
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
401
+ Started POST "/rails/db/tables/users/create" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
402
+ Processing by RailsDb::TablesController#create as JS
403
+ Parameters: {"record"=>{"name"=>"XXX"}, "table_id"=>"users"}
404
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
405
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
406
+ #<Class:0x00000001256f94d0> Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "XXX"], ["created_at", "2025-04-01 15:52:17.719371"], ["updated_at", "2025-04-01 15:52:17.719371"]]
407
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
408
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/create.js.erb
409
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
410
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 6.9ms | GC: 2.2ms)
411
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 5.1ms | GC: 0.6ms)
412
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
413
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
414
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.6ms | GC: 0.0ms)
415
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.1ms)
416
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
417
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
418
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.0ms | GC: 0.0ms)
419
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 21.2ms | GC: 3.2ms)
420
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/create.js.erb (Duration: 21.7ms | GC: 3.2ms)
421
+ Completed 200 OK in 24ms (Views: 21.1ms | ActiveRecord: 0.7ms (5 queries, 1 cached) | GC: 3.2ms)
422
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
423
+ Started GET "/rails/db/tables/users/edit?pk_id=3" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
424
+ Processing by RailsDb::TablesController#edit as JS
425
+ Parameters: {"pk_id"=>"3", "table_id"=>"users"}
426
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
427
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
428
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb
429
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 4.1ms | GC: 0.0ms)
430
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 4.5ms | GC: 0.0ms)
431
+ Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms (2 queries, 0 cached) | GC: 0.0ms)
432
+ Started PUT "/rails/db/tables/users/update?pk_id=3" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
433
+ Processing by RailsDb::TablesController#update as JS
434
+ Parameters: {"record"=>{"name"=>"STI"}, "pk_id"=>"3", "table_id"=>"users"}
435
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
436
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
437
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
438
+ #<Class:0x000000012563c1c8> Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "STI"], ["updated_at", "2025-04-01 15:52:17.750843"], ["id", 3]]
439
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
440
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb
441
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
442
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb (Duration: 0.9ms | GC: 0.0ms)
443
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.3ms (3 queries, 0 cached) | GC: 0.0ms)
444
+ Customer Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."type" = ? AND "users"."id" = ? LIMIT ? [["type", "Customer"], ["id", 3], ["LIMIT", 1]]
445
+ Started GET "/admin/tools/db" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
446
+ Processing by RailsDb::DashboardController#index as HTML
447
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
448
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application
449
+ 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)
450
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
451
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | GC: 0.0ms)
452
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.1ms | GC: 0.0ms)
453
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.3ms | GC: 0.0ms)
454
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 3.4ms | GC: 0.0ms)
455
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
456
+ Started GET "/admin/tools/db/sql" for 127.0.0.1 at 2025-04-01 12:52:17 -0300
457
+ Processing by RailsDb::SqlController#index as HTML
458
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
459
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
460
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
461
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 2.0ms | GC: 1.8ms)
462
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application (Duration: 5.8ms | GC: 2.1ms)
463
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
464
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | GC: 0.0ms)
465
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.1ms | GC: 0.0ms)
466
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
467
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 8.6ms | GC: 2.1ms)
468
+ Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.5ms (0 queries, 0 cached) | GC: 2.1ms)
469
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
470
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
471
+ ----------------------------------------------------------------------------------------------------------------------------
472
+ TablesHelperTest: test_method_display_style_column_returns_'display'_if_cookie_does_not_contain_record_for_this_table:column
473
+ ----------------------------------------------------------------------------------------------------------------------------
474
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
475
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
476
+ ----------------------------------------------------------------------------------------------------------------------------------
477
+ TablesHelperTest: test_method_column_is_checked?_returns_false_for_checkbox_status_if_cookie_contains_record_for_this_table:column
478
+ ----------------------------------------------------------------------------------------------------------------------------------
479
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
480
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
481
+ -------------------------------------------------------------------------------------------------------------------------
482
+ TablesHelperTest: test_method_display_style_column_returns_'display:none'_if_cookie_contains_record_for_this_table:column
483
+ -------------------------------------------------------------------------------------------------------------------------
484
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
485
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
486
+ ------------------------------------------------------------------------------------------------------------------------------------
487
+ TablesHelperTest: test_method_column_is_checked?_returns_true_for_checkbox_status_if_cookie_does_not_contain_hash_key_for_this_table
488
+ ------------------------------------------------------------------------------------------------------------------------------------
489
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
490
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
491
+ -----------------------------------------------------------------------------------------------------------------------------------------
492
+ TablesHelperTest: test_method_column_is_checked?_returns_true_for_checkbox_status_if_cookie_does_not_contain_record_for_this_table:column
493
+ -----------------------------------------------------------------------------------------------------------------------------------------
494
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
495
+ 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"]]
496
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
497
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
498
+ -----------------------
499
+ RailsDbTest: test_truth
500
+ -----------------------
501
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
502
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
503
+ ------------------------------------
504
+ RailsDbTest: test_verify_access_proc
505
+ ------------------------------------
506
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
507
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
508
+ ------------------------------------------------------------------------------------------------------------------------------------
509
+ TablesHelperTest: test_method_column_is_checked?_returns_true_for_checkbox_status_if_cookie_does_not_contain_hash_key_for_this_table
510
+ ------------------------------------------------------------------------------------------------------------------------------------
511
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
512
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
513
+ -------------------------------------------------------------------------------------------------------------------------
514
+ TablesHelperTest: test_method_display_style_column_returns_'display:none'_if_cookie_contains_record_for_this_table:column
515
+ -------------------------------------------------------------------------------------------------------------------------
516
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
517
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
518
+ -----------------------------------------------------------------------------------------------------------------------------------------
519
+ TablesHelperTest: test_method_column_is_checked?_returns_true_for_checkbox_status_if_cookie_does_not_contain_record_for_this_table:column
520
+ -----------------------------------------------------------------------------------------------------------------------------------------
521
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
522
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
523
+ ----------------------------------------------------------------------------------------------------------------------------------
524
+ TablesHelperTest: test_method_column_is_checked?_returns_false_for_checkbox_status_if_cookie_contains_record_for_this_table:column
525
+ ----------------------------------------------------------------------------------------------------------------------------------
526
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
527
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
528
+ ----------------------------------------------------------------------------------------------------------------------------
529
+ TablesHelperTest: test_method_display_style_column_returns_'display'_if_cookie_does_not_contain_record_for_this_table:column
530
+ ----------------------------------------------------------------------------------------------------------------------------
531
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
532
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
533
+ --------------------------
534
+ DatabaseTest: test_adapter
535
+ --------------------------
536
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
537
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
538
+ -------------------------
539
+ DatabaseTest: test_tables
540
+ -------------------------
541
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
542
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
543
+ -------------------------
544
+ DatabaseTest: test_insert
545
+ -------------------------
546
+ SQL (0.1ms) delete from projects_users
547
+ SQL (0.0ms) EXPLAIN delete from projects_users
548
+ User Delete All (0.0ms) DELETE FROM "users"
549
+ SQL (0.0ms) SELECT COUNT(*) FROM projects_users
550
+ SQL (0.0ms) insert into projects_users(project_id, user_id) values(1,2)
551
+ SQL (0.0ms) EXPLAIN insert into projects_users(project_id, user_id) values(1,2)
552
+ SQL (0.0ms) SELECT COUNT(*) FROM projects_users
553
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
554
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
555
+ ------------------------------------
556
+ DatabaseTest: test_accessible_tables
557
+ ------------------------------------
558
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
559
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
560
+ ------------------------
561
+ DatabaseTest: test_query
562
+ ------------------------
563
+ User Delete All (0.0ms) DELETE FROM "users"
564
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
565
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:52:28.956767"], ["updated_at", "2025-04-01 15:52:28.956767"]]
566
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
567
+ SQL (0.0ms) select count(*) as users_count from users
568
+ SQL (0.0ms) EXPLAIN select count(*) as users_count from users
569
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
570
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
571
+ -----------------------
572
+ TableTest: test_columns
573
+ -----------------------
574
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
575
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
576
+ ----------------------
577
+ TableTest: test_delete
578
+ ----------------------
579
+ User Delete All (0.0ms) DELETE FROM "users"
580
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
581
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:52:28.959112"], ["updated_at", "2025-04-01 15:52:28.959112"]]
582
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
583
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
584
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "john"], ["created_at", "2025-04-01 15:52:28.959536"], ["updated_at", "2025-04-01 15:52:28.959536"]]
585
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
586
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
587
+  (0.0ms) DELETE FROM users WHERE id = 1;
588
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
589
+ User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."name" = ? [["name", "igor"]]
590
+ User Count (0.0ms) SELECT COUNT(*) FROM "users" WHERE "users"."name" = ? [["name", "john"]]
591
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
592
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
593
+ ------------------------
594
+ TableTest: test_truncate
595
+ ------------------------
596
+ User Delete All (0.0ms) DELETE FROM "users"
597
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
598
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:52:28.962449"], ["updated_at", "2025-04-01 15:52:28.962449"]]
599
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
600
+ User Count (0.1ms) SELECT COUNT(*) FROM "users"
601
+  (0.0ms) DELETE FROM users;
602
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
603
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
604
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
605
+ ------------------------
606
+ TableTest: test_as_table
607
+ ------------------------
608
+ User Delete All (0.0ms) DELETE FROM "users"
609
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
610
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:52:28.963931"], ["updated_at", "2025-04-01 15:52:28.963931"]]
611
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
612
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
613
+  Load (0.0ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]]
614
+ TRANSACTION (0.1ms) ROLLBACK TRANSACTION
615
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
616
+ ----------------------
617
+ TableTest: test_to_csv
618
+ ----------------------
619
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
620
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "igor"], ["created_at", "2025-04-01 15:52:28.971554"], ["updated_at", "2025-04-01 15:52:28.971554"]]
621
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
622
+ SQL (0.0ms) SELECT * FROM users
623
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
624
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
625
+ -----------------------
626
+ TableTest: test_ransack
627
+ -----------------------
628
+ User Delete All (0.0ms) DELETE FROM "users"
629
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
630
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "111"], ["created_at", "2025-04-01 15:52:28.973733"], ["updated_at", "2025-04-01 15:52:28.973733"]]
631
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
632
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
633
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "555"], ["created_at", "2025-04-01 15:52:28.974094"], ["updated_at", "2025-04-01 15:52:28.974094"]]
634
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
635
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
636
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "333"], ["created_at", "2025-04-01 15:52:28.974413"], ["updated_at", "2025-04-01 15:52:28.974413"]]
637
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
638
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
639
+  Pluck (0.2ms) SELECT "users"."name" FROM "users" ORDER BY "users"."name" DESC
640
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
641
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
642
+ ---------------------------
643
+ TableTest: test_primary_key
644
+ ---------------------------
645
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
646
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
647
+ ----------------------------------------------------------
648
+ RailsDbHelpersTest: test_default_rails_db_data_table_works
649
+ ----------------------------------------------------------
650
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
651
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:52:28.978752"], ["updated_at", "2025-04-01 15:52:28.978752"]]
652
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
653
+ SQL (0.0ms) SELECT * FROM users
654
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_data_table.html.erb (Duration: 1.5ms | GC: 0.3ms)
655
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
656
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
657
+ ------------------------------------------------------------------------
658
+ RailsDbHelpersTest: test_rails_db_data_table_sql_works_with_many_options
659
+ ------------------------------------------------------------------------
660
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
661
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:52:29.004285"], ["updated_at", "2025-04-01 15:52:29.004285"]]
662
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
663
+ SQL (0.0ms) select * from users
664
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sql_result.html.erb (Duration: 0.3ms | GC: 0.0ms)
665
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
666
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
667
+ --------------------------------------------------------------
668
+ RailsDbHelpersTest: test_default_rails_db_data_table_sql_works
669
+ --------------------------------------------------------------
670
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
671
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:52:29.006072"], ["updated_at", "2025-04-01 15:52:29.006072"]]
672
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
673
+ SQL (0.0ms) select * from users
674
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sql_result.html.erb (Duration: 0.0ms | GC: 0.0ms)
675
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
676
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
677
+ --------------------------------------------------------------------
678
+ RailsDbHelpersTest: test_rails_db_data_table_works_with_many_options
679
+ --------------------------------------------------------------------
680
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
681
+ 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:52:29.007079"], ["updated_at", "2025-04-01 15:52:29.007079"]]
682
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
683
+ SQL (0.0ms) SELECT id, name FROM users ORDER BY id asc LIMIT 10 OFFSET 0
684
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_data_table.html.erb (Duration: 0.1ms | GC: 0.0ms)
685
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
686
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
687
+ --------------------------
688
+ SqlImportTest: test_import
689
+ --------------------------
690
+  (0.0ms) update users set age = 11 where id = 1
691
+  (0.0ms) update users set age = 22 where id = 2
692
+  (0.0ms) update users set age = 33 where id = 3
693
+  (0.0ms) 
694
+ DROP TABLE IF EXISTS t
695
+  (0.1ms) 
696
+ CREATE TABLE t(x INTEGER, y, z, PRIMARY KEY(x ASC))
697
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
698
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
699
+ ----------------------------------------------
700
+ DashboardControllerTest: test_should_get_index
701
+ ----------------------------------------------
702
+ User Delete All (0.1ms) DELETE FROM "users"
703
+ Account Delete All (0.0ms) DELETE FROM "accounts"
704
+ Customer Delete All (0.0ms) DELETE FROM "users" WHERE "users"."type" = ? [["type", "Customer"]]
705
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
706
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Igor"], ["created_at", "2025-04-01 15:52:29.032487"], ["updated_at", "2025-04-01 15:52:29.032487"]]
707
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
708
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
709
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Edit"], ["created_at", "2025-04-01 15:52:29.032803"], ["updated_at", "2025-04-01 15:52:29.032803"]]
710
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
711
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
712
+ 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:52:29.034275"], ["updated_at", "2025-04-01 15:52:29.034275"], ["type", "Customer"]]
713
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
714
+ Started GET "/rails/db" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
715
+ Processing by RailsDb::DashboardController#index as HTML
716
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
717
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application
718
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application (Duration: 26.2ms | GC: 17.4ms)
719
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 1.4ms | GC: 0.0ms)
720
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.5ms | GC: 0.0ms)
721
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.2ms | GC: 0.0ms)
722
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.8ms | GC: 0.0ms)
723
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 33.9ms | GC: 17.4ms)
724
+ Completed 200 OK in 37ms (Views: 35.0ms | ActiveRecord: 0.1ms (0 queries, 0 cached) | GC: 17.4ms)
725
+ Started GET "/rails/db/tables/users" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
726
+ Processing by RailsDb::TablesController#show as HTML
727
+ Parameters: {"id"=>"users"}
728
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
729
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/show.html.erb within layouts/rails_db/application
730
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.1ms | GC: 0.0ms)
731
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_show.html.erb (Duration: 4.1ms | GC: 0.0ms)
732
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/show.html.erb within layouts/rails_db/application (Duration: 4.3ms | GC: 0.0ms)
733
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
734
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
735
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
736
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
737
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 5.1ms | GC: 0.0ms)
738
+ Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.0ms (0 queries, 0 cached) | GC: 0.0ms)
739
+ Started GET "/rails/db/tables/users/data" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
740
+ Processing by RailsDb::TablesController#data as HTML
741
+ Parameters: {"table_id"=>"users"}
742
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
743
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
744
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application
745
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
746
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 7.3ms | GC: 0.0ms)
747
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 8.5ms | GC: 3.6ms)
748
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
749
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 1.0ms | GC: 0.1ms)
750
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.1ms)
751
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.6ms | GC: 0.0ms)
752
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
753
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
754
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.1ms | GC: 0.0ms)
755
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 27.3ms | GC: 4.1ms)
756
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application (Duration: 27.6ms | GC: 4.1ms)
757
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
758
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
759
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
760
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
761
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 28.4ms | GC: 4.1ms)
762
+ Completed 200 OK in 30ms (Views: 27.9ms | ActiveRecord: 0.7ms (4 queries, 2 cached) | GC: 4.1ms)
763
+ Started GET "/rails/db/sql" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
764
+ Processing by RailsDb::SqlController#index as HTML
765
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
766
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
767
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
768
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.3ms | GC: 0.1ms)
769
+ 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.1ms)
770
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
771
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | GC: 0.0ms)
772
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
773
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
774
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 4.8ms | GC: 0.1ms)
775
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.5ms (0 queries, 0 cached) | GC: 0.1ms)
776
+ Started GET "/rails/db/import" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
777
+ Processing by RailsDb::SqlController#import as HTML
778
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
779
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/import.html.erb within layouts/rails_db/application
780
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_import_sample.html.erb (Duration: 0.1ms | GC: 0.0ms)
781
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/import.html.erb within layouts/rails_db/application (Duration: 0.4ms | GC: 0.0ms)
782
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
783
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
784
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
785
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
786
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 1.3ms | GC: 0.0ms)
787
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
788
+ Started GET "/rails/db/data-table" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
789
+ Processing by RailsDb::DashboardController#data_table as HTML
790
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
791
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/data_table.html.erb within layouts/rails_db/application
792
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/data_table.html.erb within layouts/rails_db/application (Duration: 0.6ms | GC: 0.0ms)
793
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
794
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
795
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
796
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
797
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 1.4ms | GC: 0.0ms)
798
+ Completed 200 OK in 1ms (Views: 1.4ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
799
+ Started GET "/rails/db/tables/users/data?sort_column=id&sort_order=desc" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
800
+ Processing by RailsDb::TablesController#data as HTML
801
+ Parameters: {"sort_column"=>"id", "sort_order"=>"desc", "table_id"=>"users"}
802
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
803
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
804
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application
805
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
806
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 7.2ms | GC: 2.6ms)
807
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 4.6ms | GC: 0.1ms)
808
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
809
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
810
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.6ms | GC: 0.0ms)
811
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.6ms | GC: 0.0ms)
812
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
813
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
814
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.0ms | GC: 0.0ms)
815
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 21.2ms | GC: 3.0ms)
816
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application (Duration: 21.2ms | GC: 3.0ms)
817
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
818
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
819
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
820
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
821
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 22.0ms | GC: 3.0ms)
822
+ Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.6ms (4 queries, 2 cached) | GC: 3.0ms)
823
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
824
+ Started GET "/rails/db/tables/users/destroy?pk_id=1" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
825
+ Processing by RailsDb::TablesController#destroy as HTML
826
+ Parameters: {"pk_id"=>"1", "table_id"=>"users"}
827
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
828
+  (0.0ms) DELETE FROM users WHERE id = '1';
829
+ Redirected to http://www.example.com/rails/db/tables/users/data
830
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms (2 queries, 0 cached) | GC: 0.0ms)
831
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
832
+ Started GET "/rails/db/tables/users/csv" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
833
+ Processing by RailsDb::TablesController#csv as HTML
834
+ Parameters: {"table_id"=>"users"}
835
+ SQL (0.0ms) SELECT * FROM users
836
+ Rendering text template
837
+ Rendered text template (Duration: 0.0ms | GC: 0.0ms)
838
+ Sent data users.csv (0.4ms)
839
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms (1 query, 0 cached) | GC: 0.0ms)
840
+ Started GET "/rails/db/standalone" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
841
+ Processing by RailsDb::DashboardController#standalone as HTML
842
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
843
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/standalone.html.erb within layouts/rails_db/application
844
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/standalone.html.erb within layouts/rails_db/application (Duration: 0.8ms | GC: 0.0ms)
845
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
846
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
847
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
848
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
849
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 1.6ms | GC: 0.0ms)
850
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
851
+ Started GET "/rails/db/sql?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
852
+ Processing by RailsDb::SqlController#index as HTML
853
+ Parameters: {"sql"=>"select * from users limit 10"}
854
+ SQL (0.0ms) select * from users limit 10
855
+ SQL (0.0ms) EXPLAIN select * from users limit 10
856
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
857
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
858
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
859
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.1ms | GC: 0.0ms)
860
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_explain.html.erb (Duration: 0.1ms | GC: 0.0ms)
861
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_results.html.erb (Duration: 0.6ms | GC: 0.0ms)
862
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application (Duration: 4.8ms | GC: 1.6ms)
863
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
864
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
865
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
866
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
867
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 5.6ms | GC: 1.6ms)
868
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.6ms (2 queries, 0 cached) | GC: 1.6ms)
869
+ Started POST "/rails/db/sql-csv.csv?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
870
+ Processing by RailsDb::SqlController#csv as CSV
871
+ Parameters: {"sql"=>"select * from users limit 10"}
872
+ SQL (0.0ms) select * from users limit 10
873
+ SQL (0.0ms) EXPLAIN select * from users limit 10
874
+ Rendering text template
875
+ Rendered text template (Duration: 0.0ms | GC: 0.0ms)
876
+ Sent data results.csv (0.1ms)
877
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms (2 queries, 0 cached) | GC: 0.0ms)
878
+ Started POST "/rails/db/sql-xls.xls?sql=select+%2A+from+users+limit+10" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
879
+ Processing by RailsDb::SqlController#xls as XLS
880
+ Parameters: {"sql"=>"select * from users limit 10"}
881
+ SQL (0.0ms) select * from users limit 10
882
+ SQL (0.0ms) EXPLAIN select * from users limit 10
883
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/xls.xls.axlsx
884
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/xls.xls.axlsx (Duration: 3.3ms | GC: 0.1ms)
885
+ Rendering text template
886
+ Rendered text template (Duration: 0.0ms | GC: 0.0ms)
887
+ Sent data results.xlsx (0.1ms)
888
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms (2 queries, 0 cached) | GC: 0.2ms)
889
+ Started GET "/rails/db/tables/users/edit?pk_id=2" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
890
+ Processing by RailsDb::TablesController#edit as JS
891
+ Parameters: {"pk_id"=>"2", "table_id"=>"users"}
892
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
893
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
894
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb
895
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 6.6ms | GC: 0.2ms)
896
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 7.6ms | GC: 0.3ms)
897
+ Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.5ms (2 queries, 0 cached) | GC: 0.4ms)
898
+ Started PUT "/rails/db/tables/users/update?pk_id=2" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
899
+ Processing by RailsDb::TablesController#update as JS
900
+ Parameters: {"record"=>{"name"=>"JOHN"}, "pk_id"=>"2", "table_id"=>"users"}
901
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
902
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
903
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
904
+ #<Class:0x000000015c1cb7d8> Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "JOHN"], ["updated_at", "2025-04-01 15:52:29.188253"], ["id", 2]]
905
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
906
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb
907
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
908
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb (Duration: 1.0ms | GC: 0.0ms)
909
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.3ms (3 queries, 0 cached) | GC: 0.0ms)
910
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
911
+ Started GET "/rails/db/tables/users/new" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
912
+ Processing by RailsDb::TablesController#new as JS
913
+ Parameters: {"table_id"=>"users"}
914
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
915
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/new.js.erb
916
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_new.html.erb (Duration: 3.2ms | GC: 0.0ms)
917
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/new.js.erb (Duration: 3.5ms | GC: 0.0ms)
918
+ Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.5ms (1 query, 0 cached) | GC: 0.0ms)
919
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
920
+ Started POST "/rails/db/tables/users/create" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
921
+ Processing by RailsDb::TablesController#create as JS
922
+ Parameters: {"record"=>{"name"=>"XXX"}, "table_id"=>"users"}
923
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
924
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
925
+ #<Class:0x000000015cc70508> Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "XXX"], ["created_at", "2025-04-01 15:52:29.197027"], ["updated_at", "2025-04-01 15:52:29.197027"]]
926
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
927
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/create.js.erb
928
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
929
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 7.1ms | GC: 2.5ms)
930
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 4.8ms | GC: 0.4ms)
931
+  Load (0.0ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
932
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
933
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.7ms | GC: 0.0ms)
934
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 0.6ms | GC: 0.0ms)
935
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
936
+ CACHE Count (0.0ms) SELECT COUNT(*) FROM "users"
937
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.0ms | GC: 0.0ms)
938
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 20.5ms | GC: 3.1ms)
939
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/create.js.erb (Duration: 21.0ms | GC: 3.1ms)
940
+ Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.7ms (5 queries, 1 cached) | GC: 3.1ms)
941
+ User Count (0.0ms) SELECT COUNT(*) FROM "users"
942
+ Started GET "/rails/db/tables/users/edit?pk_id=3" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
943
+ Processing by RailsDb::TablesController#edit as JS
944
+ Parameters: {"pk_id"=>"3", "table_id"=>"users"}
945
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
946
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
947
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb
948
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 4.0ms | GC: 0.0ms)
949
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 4.5ms | GC: 0.0ms)
950
+ Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms (2 queries, 0 cached) | GC: 0.0ms)
951
+ Started PUT "/rails/db/tables/users/update?pk_id=3" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
952
+ Processing by RailsDb::TablesController#update as JS
953
+ Parameters: {"record"=>{"name"=>"STI"}, "pk_id"=>"3", "table_id"=>"users"}
954
+  Count (0.0ms) SELECT COUNT(*) FROM "users"
955
+  Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
956
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
957
+ #<Class:0x0000000123af6698> Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "STI"], ["updated_at", "2025-04-01 15:52:29.229415"], ["id", 3]]
958
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
959
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb
960
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 1.0ms | GC: 0.2ms)
961
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/tables/update.js.erb (Duration: 1.2ms | GC: 0.2ms)
962
+ Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.3ms (3 queries, 0 cached) | GC: 2.1ms)
963
+ Customer Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."type" = ? AND "users"."id" = ? LIMIT ? [["type", "Customer"], ["id", 3], ["LIMIT", 1]]
964
+ Started GET "/admin/tools/db" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
965
+ Processing by RailsDb::DashboardController#index as HTML
966
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
967
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application
968
+ 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)
969
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
970
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.2ms | GC: 0.0ms)
971
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.3ms | GC: 0.2ms)
972
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.4ms | GC: 0.2ms)
973
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 1.2ms | GC: 0.2ms)
974
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.2ms)
975
+ Started GET "/admin/tools/db/sql" for 127.0.0.1 at 2025-04-01 12:52:29 -0300
976
+ Processing by RailsDb::SqlController#index as HTML
977
+ Rendering layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb
978
+ Rendering /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application
979
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.0ms | GC: 0.0ms)
980
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/_history.html.erb (Duration: 0.1ms | GC: 0.0ms)
981
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/sql/index.html.erb within layouts/rails_db/application (Duration: 2.5ms | GC: 0.2ms)
982
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 0.2ms | GC: 0.0ms)
983
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 0.3ms | GC: 0.1ms)
984
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.0ms | GC: 0.0ms)
985
+ Rendered /Users/iltongarcia/Projects/rails/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 0.2ms | GC: 0.0ms)
986
+ Rendered layout /Users/iltongarcia/Projects/rails/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 3.4ms | GC: 0.2ms)
987
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.5ms (0 queries, 0 cached) | GC: 0.2ms)
988
+ 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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilton Silveira
@@ -595,6 +595,8 @@ files:
595
595
  - test/dummy/db/migrate/20210626083314_add_country_column.rb
596
596
  - test/dummy/db/schema.rb
597
597
  - test/dummy/db/test.sqlite3
598
+ - test/dummy/log/development.log
599
+ - test/dummy/log/test.log
598
600
  - test/dummy/public/404.html
599
601
  - test/dummy/public/422.html
600
602
  - test/dummy/public/500.html
@@ -1038,6 +1040,8 @@ test_files:
1038
1040
  - test/dummy/db/migrate/20210626083314_add_country_column.rb
1039
1041
  - test/dummy/db/schema.rb
1040
1042
  - test/dummy/db/test.sqlite3
1043
+ - test/dummy/log/development.log
1044
+ - test/dummy/log/test.log
1041
1045
  - test/dummy/public/404.html
1042
1046
  - test/dummy/public/422.html
1043
1047
  - test/dummy/public/500.html