mini_sql 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG +4 -0
- data/README.md +36 -0
- data/bench/builder_perf.rb +138 -0
- data/bench/decorator_perf.rb +143 -0
- data/bench/mini_sql_methods_perf.rb +80 -0
- data/bench/prepared_perf.rb +59 -0
- data/bench/shared/generate_data.rb +133 -0
- data/bench/topic_perf.rb +21 -327
- data/bench/topic_wide_perf.rb +92 -0
- data/lib/mini_sql.rb +17 -8
- data/lib/mini_sql/abstract/prepared_binds.rb +74 -0
- data/lib/mini_sql/abstract/prepared_cache.rb +45 -0
- data/lib/mini_sql/builder.rb +61 -30
- data/lib/mini_sql/inline_param_encoder.rb +4 -3
- data/lib/mini_sql/mysql/connection.rb +6 -0
- data/lib/mini_sql/mysql/deserializer_cache.rb +3 -3
- data/lib/mini_sql/mysql/prepared_binds.rb +15 -0
- data/lib/mini_sql/mysql/prepared_cache.rb +21 -0
- data/lib/mini_sql/mysql/prepared_connection.rb +44 -0
- data/lib/mini_sql/postgres/connection.rb +6 -0
- data/lib/mini_sql/postgres/deserializer_cache.rb +5 -5
- data/lib/mini_sql/postgres/prepared_binds.rb +15 -0
- data/lib/mini_sql/postgres/prepared_cache.rb +25 -0
- data/lib/mini_sql/postgres/prepared_connection.rb +36 -0
- data/lib/mini_sql/postgres_jdbc/deserializer_cache.rb +3 -3
- data/lib/mini_sql/result.rb +10 -0
- data/lib/mini_sql/serializer.rb +29 -15
- data/lib/mini_sql/sqlite/connection.rb +9 -1
- data/lib/mini_sql/sqlite/deserializer_cache.rb +3 -3
- data/lib/mini_sql/sqlite/prepared_binds.rb +15 -0
- data/lib/mini_sql/sqlite/prepared_cache.rb +21 -0
- data/lib/mini_sql/sqlite/prepared_connection.rb +40 -0
- data/lib/mini_sql/version.rb +1 -1
- metadata +19 -2
data/lib/mini_sql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -196,12 +196,20 @@ files:
|
|
196
196
|
- LICENSE.txt
|
197
197
|
- README.md
|
198
198
|
- Rakefile
|
199
|
+
- bench/builder_perf.rb
|
200
|
+
- bench/decorator_perf.rb
|
201
|
+
- bench/mini_sql_methods_perf.rb
|
202
|
+
- bench/prepared_perf.rb
|
203
|
+
- bench/shared/generate_data.rb
|
199
204
|
- bench/timestamp_perf.rb
|
200
205
|
- bench/topic_mysql_perf.rb
|
201
206
|
- bench/topic_perf.rb
|
207
|
+
- bench/topic_wide_perf.rb
|
202
208
|
- bin/console
|
203
209
|
- bin/setup
|
204
210
|
- lib/mini_sql.rb
|
211
|
+
- lib/mini_sql/abstract/prepared_binds.rb
|
212
|
+
- lib/mini_sql/abstract/prepared_cache.rb
|
205
213
|
- lib/mini_sql/builder.rb
|
206
214
|
- lib/mini_sql/connection.rb
|
207
215
|
- lib/mini_sql/decoratable.rb
|
@@ -209,15 +217,24 @@ files:
|
|
209
217
|
- lib/mini_sql/inline_param_encoder.rb
|
210
218
|
- lib/mini_sql/mysql/connection.rb
|
211
219
|
- lib/mini_sql/mysql/deserializer_cache.rb
|
220
|
+
- lib/mini_sql/mysql/prepared_binds.rb
|
221
|
+
- lib/mini_sql/mysql/prepared_cache.rb
|
222
|
+
- lib/mini_sql/mysql/prepared_connection.rb
|
212
223
|
- lib/mini_sql/postgres/coders.rb
|
213
224
|
- lib/mini_sql/postgres/connection.rb
|
214
225
|
- lib/mini_sql/postgres/deserializer_cache.rb
|
226
|
+
- lib/mini_sql/postgres/prepared_binds.rb
|
227
|
+
- lib/mini_sql/postgres/prepared_cache.rb
|
228
|
+
- lib/mini_sql/postgres/prepared_connection.rb
|
215
229
|
- lib/mini_sql/postgres_jdbc/connection.rb
|
216
230
|
- lib/mini_sql/postgres_jdbc/deserializer_cache.rb
|
217
231
|
- lib/mini_sql/result.rb
|
218
232
|
- lib/mini_sql/serializer.rb
|
219
233
|
- lib/mini_sql/sqlite/connection.rb
|
220
234
|
- lib/mini_sql/sqlite/deserializer_cache.rb
|
235
|
+
- lib/mini_sql/sqlite/prepared_binds.rb
|
236
|
+
- lib/mini_sql/sqlite/prepared_cache.rb
|
237
|
+
- lib/mini_sql/sqlite/prepared_connection.rb
|
221
238
|
- lib/mini_sql/version.rb
|
222
239
|
- mini_sql.gemspec
|
223
240
|
homepage: https://github.com/discourse/mini_sql
|