active_record_simple_execute 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +8 -0
  3. data/LICENSE +21 -0
  4. data/README.md +86 -0
  5. data/Rakefile +21 -0
  6. data/lib/active_record_simple_execute.rb +34 -0
  7. data/lib/active_record_simple_execute/version.rb +5 -0
  8. data/test/dummy_app/Rakefile +7 -0
  9. data/test/dummy_app/app/assets/config/manifest.js +3 -0
  10. data/test/dummy_app/app/assets/javascripts/application.js +0 -0
  11. data/test/dummy_app/app/assets/stylesheets/application.css +3 -0
  12. data/test/dummy_app/app/controllers/application_controller.rb +3 -0
  13. data/test/dummy_app/app/models/application_record.rb +3 -0
  14. data/test/dummy_app/app/models/post.rb +3 -0
  15. data/test/dummy_app/app/views/layouts/application.html.erb +14 -0
  16. data/test/dummy_app/config.ru +4 -0
  17. data/test/dummy_app/config/application.rb +70 -0
  18. data/test/dummy_app/config/boot.rb +10 -0
  19. data/test/dummy_app/config/database.yml +20 -0
  20. data/test/dummy_app/config/environment.rb +5 -0
  21. data/test/dummy_app/config/environments/development.rb +30 -0
  22. data/test/dummy_app/config/environments/production.rb +60 -0
  23. data/test/dummy_app/config/environments/test.rb +41 -0
  24. data/test/dummy_app/config/initializers/backtrace_silencers.rb +7 -0
  25. data/test/dummy_app/config/initializers/inflections.rb +10 -0
  26. data/test/dummy_app/config/initializers/mime_types.rb +5 -0
  27. data/test/dummy_app/config/initializers/secret_token.rb +11 -0
  28. data/test/dummy_app/config/initializers/session_store.rb +8 -0
  29. data/test/dummy_app/config/initializers/wrap_parameters.rb +14 -0
  30. data/test/dummy_app/config/locales/en.yml +5 -0
  31. data/test/dummy_app/config/routes.rb +6 -0
  32. data/test/dummy_app/config/secrets.yml +22 -0
  33. data/test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb +28 -0
  34. data/test/dummy_app/db/test +0 -0
  35. data/test/dummy_app/db/test.sqlite3 +0 -0
  36. data/test/dummy_app/log/test.log +612 -0
  37. data/test/test_helper.rb +43 -0
  38. data/test/unit/active_record_simple_execute_test.rb +63 -0
  39. metadata +227 -0
@@ -0,0 +1,41 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_files = true
12
+ config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
33
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
34
+ # like if you have constraints or database-specific column types
35
+ # config.active_record.schema_format = :sql
36
+
37
+ # Print deprecation notices to the stderr
38
+ config.active_support.deprecation = :stderr
39
+
40
+ config.eager_load = false
41
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+
8
+ gem_version = ActiveRecord.gem_version
9
+ if gem_version <= Gem::Version.new("5.1")
10
+ Dummy::Application.config.secret_token = '4f337f0063fbb4a724dd8da15419679300da990ae4f6c94d36c714a3cd07e9653fc42d902cf33a9b9449a28e7eb2673f928172d65a090fa3c9156d6beea8d16c'
11
+ end
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,6 @@
1
+ Dummy::Application.routes.draw do
2
+ get 'spreadsheets/csv', to: 'spreadsheets#csv'
3
+ get 'spreadsheets/ods', to: 'spreadsheets#ods'
4
+ get 'spreadsheets/xlsx', to: 'spreadsheets#xlsx'
5
+ get 'spreadsheets/alt_xlsx', to: 'spreadsheets#alt_xlsx'
6
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: d28054e102cd55dcd684cee239d31ddf1e1acd83bd879dd5f671e989f5c9d94ec1ede00e7fcf9b6bde4cd115f93c54e3ba6c5dc05d233292542f27a79706fcb4
15
+
16
+ test:
17
+ secret_key_base: 378b4f2309d4898f5170b41624e19bf60ce8a154ad87c100e8846bddcf4c28b72b533f2e73738ef8f6eabb7a773a0a0e7c32c0649916c5f280eb7ac621fc318c
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: 5e73c057b92f67f980fbea4c1c2c495b25def0048f8c1c040fed9c08f49cd50a2ebf872dd87857afc0861479e9382fceb7d9837a0bce546c2f7594e2f4da45e3
@@ -0,0 +1,28 @@
1
+ if defined?(ActiveRecord::Migration::Current)
2
+ migration_klass = ActiveRecord::Migration::Current
3
+ else
4
+ migration_klass = ActiveRecord::Migration
5
+ end
6
+
7
+ class SetUpTestTables < migration_klass
8
+
9
+ def change
10
+ create_table :posts do |t|
11
+ t.string :title, :content
12
+ t.integer :number
13
+ t.timestamps
14
+ end
15
+
16
+ create_table :comments do |t|
17
+ t.text :content
18
+ t.references :user, :post
19
+ t.timestamps
20
+ end
21
+
22
+ create_table :users do |t|
23
+ t.string :name
24
+ t.timestamps
25
+ end
26
+ end
27
+
28
+ end
Binary file
Binary file
@@ -0,0 +1,612 @@
1
+  (1.1ms) SELECT sqlite_version(*)
2
+  (0.1ms) begin transaction
3
+ -------------------------------------------------
4
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
5
+ -------------------------------------------------
6
+  (0.0ms) rollback transaction
7
+  (0.0ms) begin transaction
8
+ ----------------------------------------------
9
+ ActiveRecordSimpleExecuteTest: test_no_results
10
+ ----------------------------------------------
11
+  (0.2ms) select * from posts where orders.title = 'bar'
12
+  (0.0ms) rollback transaction
13
+  (0.0ms) begin transaction
14
+ -----------------------------------------------
15
+ ActiveRecordSimpleExecuteTest: test_has_results
16
+ -----------------------------------------------
17
+  (0.1ms) select * from posts where orders.title = 'bar'
18
+  (0.0ms) rollback transaction
19
+  (0.7ms) SELECT sqlite_version(*)
20
+  (0.1ms) begin transaction
21
+ -------------------------------------------------
22
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
23
+ -------------------------------------------------
24
+  (0.0ms) rollback transaction
25
+  (0.0ms) begin transaction
26
+ -----------------------------------------------
27
+ ActiveRecordSimpleExecuteTest: test_has_results
28
+ -----------------------------------------------
29
+  (0.1ms) select * from posts where posts.title = 'bar'
30
+  (0.0ms) rollback transaction
31
+  (0.0ms) begin transaction
32
+ ----------------------------------------------
33
+ ActiveRecordSimpleExecuteTest: test_no_results
34
+ ----------------------------------------------
35
+  (0.1ms) select * from posts where posts.title = 'bar'
36
+  (0.0ms) rollback transaction
37
+  (1.0ms) SELECT sqlite_version(*)
38
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
39
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
40
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
41
+ Migrating to SetUpTestTables (20210128155312)
42
+  (0.0ms) begin transaction
43
+  (0.4ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" varchar, "number" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
44
+  (0.1ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "content" text, "user_id" integer, "post_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
45
+  (0.1ms) CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")
46
+  (0.1ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
47
+  (0.1ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
48
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20210128155312"]]
49
+  (0.7ms) commit transaction
50
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
51
+  (0.0ms) begin transaction
52
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-05-20 05:52:52.993598"], ["updated_at", "2021-05-20 05:52:52.993598"]]
53
+  (2.0ms) commit transaction
54
+  (0.9ms) DELETE FROM posts;
55
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
56
+  (0.0ms) begin transaction
57
+ -----------------------------------------------
58
+ ActiveRecordSimpleExecuteTest: test_has_results
59
+ -----------------------------------------------
60
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
61
+  (0.0ms) rollback transaction
62
+  (0.0ms) begin transaction
63
+ -------------------------------------------------
64
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
65
+ -------------------------------------------------
66
+  (0.1ms) rollback transaction
67
+  (0.0ms) begin transaction
68
+ ----------------------------------------------
69
+ ActiveRecordSimpleExecuteTest: test_no_results
70
+ ----------------------------------------------
71
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
72
+  (0.0ms) rollback transaction
73
+  (0.7ms) SELECT sqlite_version(*)
74
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
75
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
76
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
77
+  (1.5ms) DELETE FROM posts;
78
+  (0.2ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
79
+  (0.0ms) begin transaction
80
+ -----------------------------------------------
81
+ ActiveRecordSimpleExecuteTest: test_has_results
82
+ -----------------------------------------------
83
+  (0.0ms) SAVEPOINT active_record_1
84
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 05:53:30.883973"], ["updated_at", "2021-05-20 05:53:30.883973"]]
85
+  (0.0ms) RELEASE SAVEPOINT active_record_1
86
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
87
+  (0.2ms) rollback transaction
88
+  (0.0ms) begin transaction
89
+ ----------------------------------------------
90
+ ActiveRecordSimpleExecuteTest: test_no_results
91
+ ----------------------------------------------
92
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
93
+  (0.0ms) rollback transaction
94
+  (0.0ms) begin transaction
95
+ -------------------------------------------------
96
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
97
+ -------------------------------------------------
98
+  (0.0ms) rollback transaction
99
+  (0.8ms) SELECT sqlite_version(*)
100
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
101
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
102
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
103
+  (1.3ms) DELETE FROM posts;
104
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
105
+  (0.1ms) begin transaction
106
+ -----------------------------------------------
107
+ ActiveRecordSimpleExecuteTest: test_has_results
108
+ -----------------------------------------------
109
+  (0.0ms) SAVEPOINT active_record_1
110
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 05:53:54.976875"], ["updated_at", "2021-05-20 05:53:54.976875"]]
111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
112
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
113
+  (0.2ms) rollback transaction
114
+  (0.1ms) begin transaction
115
+ -------------------------------------------------
116
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
117
+ -------------------------------------------------
118
+  (0.0ms) rollback transaction
119
+  (0.0ms) begin transaction
120
+ ----------------------------------------------
121
+ ActiveRecordSimpleExecuteTest: test_no_results
122
+ ----------------------------------------------
123
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
124
+  (0.0ms) rollback transaction
125
+  (0.7ms) SELECT sqlite_version(*)
126
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
127
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
128
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
129
+  (1.5ms) DELETE FROM posts;
130
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
131
+  (0.0ms) begin transaction
132
+ -------------------------------------------------
133
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
134
+ -------------------------------------------------
135
+  (0.0ms) rollback transaction
136
+  (0.0ms) begin transaction
137
+ -----------------------------------------------
138
+ ActiveRecordSimpleExecuteTest: test_has_results
139
+ -----------------------------------------------
140
+  (0.0ms) SAVEPOINT active_record_1
141
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 05:54:08.825470"], ["updated_at", "2021-05-20 05:54:08.825470"]]
142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
143
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
144
+  (0.2ms) rollback transaction
145
+  (0.0ms) begin transaction
146
+ ----------------------------------------------
147
+ ActiveRecordSimpleExecuteTest: test_no_results
148
+ ----------------------------------------------
149
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
150
+  (0.0ms) rollback transaction
151
+  (0.7ms) SELECT sqlite_version(*)
152
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
153
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
154
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
155
+  (1.8ms) DELETE FROM posts;
156
+  (0.3ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
157
+  (0.1ms) begin transaction
158
+ -----------------------------------------------
159
+ ActiveRecordSimpleExecuteTest: test_has_results
160
+ -----------------------------------------------
161
+  (0.0ms) SAVEPOINT active_record_1
162
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 05:54:33.237152"], ["updated_at", "2021-05-20 05:54:33.237152"]]
163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
164
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
165
+  (0.2ms) rollback transaction
166
+  (0.0ms) begin transaction
167
+ ----------------------------------------------
168
+ ActiveRecordSimpleExecuteTest: test_no_results
169
+ ----------------------------------------------
170
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
171
+  (0.0ms) rollback transaction
172
+  (0.0ms) begin transaction
173
+ -------------------------------------------------
174
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
175
+ -------------------------------------------------
176
+  (0.0ms) rollback transaction
177
+  (0.7ms) SELECT sqlite_version(*)
178
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
179
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
180
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
181
+  (1.3ms) DELETE FROM posts;
182
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
183
+  (0.0ms) begin transaction
184
+ -----------------------------------------------
185
+ ActiveRecordSimpleExecuteTest: test_has_results
186
+ -----------------------------------------------
187
+  (0.0ms) SAVEPOINT active_record_1
188
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 05:54:45.670452"], ["updated_at", "2021-05-20 05:54:45.670452"]]
189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
191
+  (0.2ms) rollback transaction
192
+  (0.0ms) begin transaction
193
+ ----------------------------------------------
194
+ ActiveRecordSimpleExecuteTest: test_no_results
195
+ ----------------------------------------------
196
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
197
+  (0.0ms) rollback transaction
198
+  (0.0ms) begin transaction
199
+ -------------------------------------------------
200
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
201
+ -------------------------------------------------
202
+  (0.0ms) rollback transaction
203
+  (1.1ms) SELECT sqlite_version(*)
204
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
205
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
206
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
207
+  (1.4ms) DELETE FROM posts;
208
+  (0.6ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
209
+  (0.0ms) begin transaction
210
+ ----------------------------------------------
211
+ ActiveRecordSimpleExecuteTest: test_no_results
212
+ ----------------------------------------------
213
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
214
+  (0.0ms) rollback transaction
215
+  (0.0ms) begin transaction
216
+ -------------------------------------------------
217
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
218
+ -------------------------------------------------
219
+  (0.0ms) rollback transaction
220
+  (0.0ms) begin transaction
221
+ -----------------------------------------------
222
+ ActiveRecordSimpleExecuteTest: test_has_results
223
+ -----------------------------------------------
224
+  (0.0ms) SAVEPOINT active_record_1
225
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 05:56:31.198693"], ["updated_at", "2021-05-20 05:56:31.198693"]]
226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
227
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
228
+  (0.2ms) rollback transaction
229
+  (1.1ms) SELECT sqlite_version(*)
230
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
231
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
232
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
233
+  (1.0ms) DELETE FROM posts;
234
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
235
+  (0.0ms) begin transaction
236
+ -----------------------------------------------
237
+ ActiveRecordSimpleExecuteTest: test_has_results
238
+ -----------------------------------------------
239
+  (0.0ms) SAVEPOINT active_record_1
240
+ Post Create (0.3ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 05:58:47.688330"], ["updated_at", "2021-05-20 05:58:47.688330"]]
241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
242
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
243
+  (0.2ms) rollback transaction
244
+  (0.0ms) begin transaction
245
+ ----------------------------------------------
246
+ ActiveRecordSimpleExecuteTest: test_no_results
247
+ ----------------------------------------------
248
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
249
+  (0.0ms) rollback transaction
250
+  (0.0ms) begin transaction
251
+ -------------------------------------------------
252
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
253
+ -------------------------------------------------
254
+  (0.1ms) rollback transaction
255
+  (1.1ms) SELECT sqlite_version(*)
256
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
257
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
258
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
259
+  (1.3ms) DELETE FROM posts;
260
+  (0.6ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
261
+  (0.1ms) begin transaction
262
+ -----------------------------------------------
263
+ ActiveRecordSimpleExecuteTest: test_has_results
264
+ -----------------------------------------------
265
+  (0.0ms) SAVEPOINT active_record_1
266
+ Post Create (0.3ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 05:59:21.953471"], ["updated_at", "2021-05-20 05:59:21.953471"]]
267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
268
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
269
+  (0.2ms) rollback transaction
270
+  (0.0ms) begin transaction
271
+ ----------------------------------------------
272
+ ActiveRecordSimpleExecuteTest: test_no_results
273
+ ----------------------------------------------
274
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
275
+  (0.1ms) rollback transaction
276
+  (0.0ms) begin transaction
277
+ -------------------------------------------------
278
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
279
+ -------------------------------------------------
280
+  (0.0ms) rollback transaction
281
+  (0.7ms) SELECT sqlite_version(*)
282
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
283
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
284
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
285
+  (1.7ms) DELETE FROM posts;
286
+  (0.2ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
287
+  (0.0ms) begin transaction
288
+ -----------------------------------------------
289
+ ActiveRecordSimpleExecuteTest: test_has_results
290
+ -----------------------------------------------
291
+  (0.0ms) SAVEPOINT active_record_1
292
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 05:59:59.169170"], ["updated_at", "2021-05-20 05:59:59.169170"]]
293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
295
+  (0.2ms) rollback transaction
296
+  (0.0ms) begin transaction
297
+ ----------------------------------------------
298
+ ActiveRecordSimpleExecuteTest: test_no_results
299
+ ----------------------------------------------
300
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
301
+  (0.0ms) rollback transaction
302
+  (0.0ms) begin transaction
303
+ -------------------------------------------------
304
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
305
+ -------------------------------------------------
306
+  (0.0ms) rollback transaction
307
+  (0.7ms) SELECT sqlite_version(*)
308
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
309
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
310
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
311
+  (1.4ms) DELETE FROM posts;
312
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
313
+  (0.0ms) begin transaction
314
+ -------------------------------------------------
315
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
316
+ -------------------------------------------------
317
+  (0.0ms) rollback transaction
318
+  (0.0ms) begin transaction
319
+ -----------------------------------------------
320
+ ActiveRecordSimpleExecuteTest: test_has_results
321
+ -----------------------------------------------
322
+  (0.0ms) SAVEPOINT active_record_1
323
+ Post Create (0.3ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:00:32.253301"], ["updated_at", "2021-05-20 06:00:32.253301"]]
324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
325
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
326
+  (0.2ms) rollback transaction
327
+  (0.0ms) begin transaction
328
+ ----------------------------------------------
329
+ ActiveRecordSimpleExecuteTest: test_no_results
330
+ ----------------------------------------------
331
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
332
+  (0.0ms) rollback transaction
333
+  (0.7ms) SELECT sqlite_version(*)
334
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
335
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
336
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
337
+  (1.4ms) DELETE FROM posts;
338
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
339
+  (0.0ms) begin transaction
340
+ -----------------------------------------------
341
+ ActiveRecordSimpleExecuteTest: test_has_results
342
+ -----------------------------------------------
343
+  (0.1ms) SAVEPOINT active_record_1
344
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:01:41.533312"], ["updated_at", "2021-05-20 06:01:41.533312"]]
345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
346
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
347
+  (0.2ms) rollback transaction
348
+  (0.0ms) begin transaction
349
+ ----------------------------------------------
350
+ ActiveRecordSimpleExecuteTest: test_no_results
351
+ ----------------------------------------------
352
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
353
+  (0.0ms) rollback transaction
354
+  (0.0ms) begin transaction
355
+ -------------------------------------------------
356
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
357
+ -------------------------------------------------
358
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
359
+  (0.0ms) rollback transaction
360
+  (0.8ms) SELECT sqlite_version(*)
361
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
362
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
363
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
364
+  (1.4ms) DELETE FROM posts;
365
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
366
+  (0.0ms) begin transaction
367
+ -----------------------------------------------
368
+ ActiveRecordSimpleExecuteTest: test_has_results
369
+ -----------------------------------------------
370
+  (0.0ms) SAVEPOINT active_record_1
371
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:02:01.592052"], ["updated_at", "2021-05-20 06:02:01.592052"]]
372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
373
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
374
+  (0.2ms) rollback transaction
375
+  (0.0ms) begin transaction
376
+ ----------------------------------------------
377
+ ActiveRecordSimpleExecuteTest: test_no_results
378
+ ----------------------------------------------
379
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
380
+  (0.0ms) rollback transaction
381
+  (0.0ms) begin transaction
382
+ -------------------------------------------------
383
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
384
+ -------------------------------------------------
385
+  (0.0ms) SAVEPOINT active_record_1
386
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:02:01.594501"], ["updated_at", "2021-05-20 06:02:01.594501"]]
387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
388
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
389
+  (0.2ms) rollback transaction
390
+  (1.1ms) SELECT sqlite_version(*)
391
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
392
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
393
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
394
+  (1.5ms) DELETE FROM posts;
395
+  (0.6ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
396
+  (0.0ms) begin transaction
397
+ ---------------------------------------------------
398
+ ActiveRecordSimpleExecuteTest: test_exposes_version
399
+ ---------------------------------------------------
400
+  (0.0ms) rollback transaction
401
+  (0.0ms) begin transaction
402
+ -----------------------------------------------
403
+ ActiveRecordSimpleExecuteTest: test_has_results
404
+ -----------------------------------------------
405
+  (0.0ms) SAVEPOINT active_record_1
406
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:11:33.566934"], ["updated_at", "2021-05-20 06:11:33.566934"]]
407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
408
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
409
+  (0.2ms) rollback transaction
410
+  (0.0ms) begin transaction
411
+ ----------------------------------------------
412
+ ActiveRecordSimpleExecuteTest: test_no_results
413
+ ----------------------------------------------
414
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
415
+  (0.0ms) rollback transaction
416
+  (0.0ms) begin transaction
417
+ -------------------------------------------------
418
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
419
+ -------------------------------------------------
420
+  (0.1ms) SAVEPOINT active_record_1
421
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:11:33.569228"], ["updated_at", "2021-05-20 06:11:33.569228"]]
422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
423
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
424
+  (0.2ms) rollback transaction
425
+  (1.1ms) SELECT sqlite_version(*)
426
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
427
+  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
428
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
429
+ Migrating to SetUpTestTables (20210128155312)
430
+  (0.1ms) begin transaction
431
+  (0.4ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" varchar, "number" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
432
+  (0.1ms) CREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "content" text, "user_id" integer, "post_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
433
+  (0.1ms) CREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")
434
+  (0.1ms) CREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")
435
+  (0.1ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
436
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20210128155312"]]
437
+  (0.8ms) commit transaction
438
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
439
+  (0.0ms) begin transaction
440
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-05-20 06:29:00.161778"], ["updated_at", "2021-05-20 06:29:00.161778"]]
441
+  (0.8ms) commit transaction
442
+  (0.6ms) DELETE FROM posts;
443
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
444
+  (0.0ms) begin transaction
445
+ -----------------------------------------------
446
+ ActiveRecordSimpleExecuteTest: test_has_results
447
+ -----------------------------------------------
448
+  (0.1ms) SAVEPOINT active_record_1
449
+ Post Create (0.3ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:29:00.209495"], ["updated_at", "2021-05-20 06:29:00.209495"]]
450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
451
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
452
+  (0.2ms) rollback transaction
453
+  (0.0ms) begin transaction
454
+ ----------------------------------------------
455
+ ActiveRecordSimpleExecuteTest: test_no_results
456
+ ----------------------------------------------
457
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
458
+  (0.0ms) rollback transaction
459
+  (0.0ms) begin transaction
460
+ -------------------------------------------------
461
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
462
+ -------------------------------------------------
463
+  (0.0ms) SAVEPOINT active_record_1
464
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:29:00.212013"], ["updated_at", "2021-05-20 06:29:00.212013"]]
465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
466
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
467
+  (0.2ms) rollback transaction
468
+  (0.0ms) begin transaction
469
+ ---------------------------------------------------
470
+ ActiveRecordSimpleExecuteTest: test_exposes_version
471
+ ---------------------------------------------------
472
+  (0.0ms) rollback transaction
473
+  (0.7ms) SELECT sqlite_version(*)
474
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
475
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
476
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
477
+  (1.2ms) DELETE FROM posts;
478
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
479
+  (0.0ms) begin transaction
480
+ ---------------------------------------------------
481
+ ActiveRecordSimpleExecuteTest: test_exposes_version
482
+ ---------------------------------------------------
483
+  (0.0ms) rollback transaction
484
+  (0.0ms) begin transaction
485
+ -----------------------------------------------
486
+ ActiveRecordSimpleExecuteTest: test_has_results
487
+ -----------------------------------------------
488
+  (0.0ms) SAVEPOINT active_record_1
489
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:29:04.738175"], ["updated_at", "2021-05-20 06:29:04.738175"]]
490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
491
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
492
+  (0.2ms) rollback transaction
493
+  (0.0ms) begin transaction
494
+ ----------------------------------------------
495
+ ActiveRecordSimpleExecuteTest: test_no_results
496
+ ----------------------------------------------
497
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
498
+  (0.0ms) rollback transaction
499
+  (0.0ms) begin transaction
500
+ -------------------------------------------------
501
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
502
+ -------------------------------------------------
503
+  (0.0ms) SAVEPOINT active_record_1
504
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:29:04.740508"], ["updated_at", "2021-05-20 06:29:04.740508"]]
505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
506
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
507
+  (0.2ms) rollback transaction
508
+  (0.7ms) SELECT sqlite_version(*)
509
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
510
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
511
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
512
+  (1.2ms) DELETE FROM posts;
513
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
514
+  (0.0ms) begin transaction
515
+ ----------------------------------------------
516
+ ActiveRecordSimpleExecuteTest: test_no_results
517
+ ----------------------------------------------
518
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
519
+  (0.0ms) rollback transaction
520
+  (0.0ms) begin transaction
521
+ ---------------------------------------------------
522
+ ActiveRecordSimpleExecuteTest: test_exposes_version
523
+ ---------------------------------------------------
524
+  (0.0ms) rollback transaction
525
+  (0.0ms) begin transaction
526
+ -----------------------------------------------
527
+ ActiveRecordSimpleExecuteTest: test_has_results
528
+ -----------------------------------------------
529
+  (0.0ms) SAVEPOINT active_record_1
530
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:31:43.704792"], ["updated_at", "2021-05-20 06:31:43.704792"]]
531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
532
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
533
+  (0.2ms) rollback transaction
534
+  (0.0ms) begin transaction
535
+ -------------------------------------------------
536
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
537
+ -------------------------------------------------
538
+  (0.0ms) SAVEPOINT active_record_1
539
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:31:43.706486"], ["updated_at", "2021-05-20 06:31:43.706486"]]
540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
541
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
542
+  (0.2ms) rollback transaction
543
+  (0.7ms) SELECT sqlite_version(*)
544
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
545
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
546
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
547
+  (1.5ms) DELETE FROM posts;
548
+  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
549
+  (0.0ms) begin transaction
550
+ ----------------------------------------------
551
+ ActiveRecordSimpleExecuteTest: test_no_results
552
+ ----------------------------------------------
553
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
554
+  (0.1ms) rollback transaction
555
+  (0.0ms) begin transaction
556
+ -------------------------------------------------
557
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
558
+ -------------------------------------------------
559
+  (0.0ms) SAVEPOINT active_record_1
560
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:45:14.401653"], ["updated_at", "2021-05-20 06:45:14.401653"]]
561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
562
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
563
+  (0.2ms) rollback transaction
564
+  (0.0ms) begin transaction
565
+ -----------------------------------------------
566
+ ActiveRecordSimpleExecuteTest: test_has_results
567
+ -----------------------------------------------
568
+  (0.0ms) SAVEPOINT active_record_1
569
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 06:45:14.403420"], ["updated_at", "2021-05-20 06:45:14.403420"]]
570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
571
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
572
+  (0.2ms) rollback transaction
573
+  (0.0ms) begin transaction
574
+ ---------------------------------------------------
575
+ ActiveRecordSimpleExecuteTest: test_exposes_version
576
+ ---------------------------------------------------
577
+  (0.0ms) rollback transaction
578
+  (1.2ms) SELECT sqlite_version(*)
579
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
580
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
581
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
582
+  (1.4ms) DELETE FROM posts;
583
+  (0.6ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
584
+  (0.0ms) begin transaction
585
+ ---------------------------------------------------
586
+ ActiveRecordSimpleExecuteTest: test_exposes_version
587
+ ---------------------------------------------------
588
+  (0.0ms) rollback transaction
589
+  (0.0ms) begin transaction
590
+ ----------------------------------------------
591
+ ActiveRecordSimpleExecuteTest: test_no_results
592
+ ----------------------------------------------
593
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
594
+  (0.0ms) rollback transaction
595
+  (0.0ms) begin transaction
596
+ -------------------------------------------------
597
+ ActiveRecordSimpleExecuteTest: test_with_sql_vars
598
+ -------------------------------------------------
599
+  (0.0ms) SAVEPOINT active_record_1
600
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 07:00:33.593182"], ["updated_at", "2021-05-20 07:00:33.593182"]]
601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
602
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
603
+  (0.2ms) rollback transaction
604
+  (0.0ms) begin transaction
605
+ -----------------------------------------------
606
+ ActiveRecordSimpleExecuteTest: test_has_results
607
+ -----------------------------------------------
608
+  (0.0ms) SAVEPOINT active_record_1
609
+ Post Create (0.2ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "bar"], ["created_at", "2021-05-20 07:00:33.595145"], ["updated_at", "2021-05-20 07:00:33.595145"]]
610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
611
+  (0.1ms) SELECT * FROM posts WHERE posts.title = 'bar'
612
+  (0.2ms) rollback transaction