extralite 2.5 → 2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +34 -13
- data/Gemfile +4 -0
- data/Gemfile-bundle +1 -1
- data/LICENSE +1 -1
- data/README.md +1059 -247
- data/Rakefile +18 -0
- data/TODO.md +0 -7
- data/examples/kv_store.rb +49 -0
- data/examples/multi_fiber.rb +16 -0
- data/examples/on_progress.rb +9 -0
- data/examples/pubsub_store_polyphony.rb +194 -0
- data/examples/pubsub_store_threads.rb +204 -0
- data/ext/extralite/changeset.c +463 -0
- data/ext/extralite/common.c +177 -91
- data/ext/extralite/database.c +745 -276
- data/ext/extralite/extconf-bundle.rb +10 -4
- data/ext/extralite/extconf.rb +34 -34
- data/ext/extralite/extralite.h +104 -47
- data/ext/extralite/extralite_ext.c +6 -0
- data/ext/extralite/iterator.c +14 -86
- data/ext/extralite/query.c +171 -264
- data/extralite-bundle.gemspec +1 -1
- data/extralite.gemspec +1 -1
- data/gemspec.rb +10 -11
- data/lib/extralite/version.rb +1 -1
- data/lib/extralite.rb +69 -10
- data/lib/sequel/adapters/extralite.rb +1 -1
- data/test/helper.rb +9 -1
- data/test/perf_argv_transform.rb +74 -0
- data/test/perf_ary.rb +14 -12
- data/test/perf_hash.rb +17 -15
- data/test/perf_hash_prepared.rb +58 -0
- data/test/perf_hash_transform.rb +66 -0
- data/test/perf_polyphony.rb +74 -0
- data/test/test_changeset.rb +161 -0
- data/test/test_database.rb +720 -104
- data/test/test_extralite.rb +2 -2
- data/test/test_iterator.rb +28 -13
- data/test/test_query.rb +352 -110
- data/test/test_sequel.rb +4 -4
- metadata +24 -16
- data/Gemfile.lock +0 -37
- data/test/perf_prepared.rb +0 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 377d86ec4649a083af81ee2958f14f2aa738eec05ae8730502738c090466f120
|
4
|
+
data.tar.gz: 47fad09e3cc2283065bc236ad43a2414bbe9b272173fc8a9e30c5a7ea74b5539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9638d918fb2c909db161757606493463dc5672535bba998db0f53f74b88bdd0f0c2bdd7ca0bfb31b068b6a9d1a3fdf8dda202446aa15ec32bae5b8ceaf9b0e3a
|
7
|
+
data.tar.gz: 1502f0be7681c2bd27b89351c4da138de9043453c2e21ecd1349f0cec9fa0f9d500e84eea6dc341d584a0819b1c11315a758c269138a19de0c342fb2a95aa3aa
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,22 +1,43 @@
|
|
1
|
+
# 2.7 2024-02-09
|
2
|
+
|
3
|
+
- Improve progress handler API, add mode, period, tick options, global progress
|
4
|
+
handler. [#68](https://github.com/digital-fabric/extralite/pull/68)
|
5
|
+
- Rework `Database#initialize` options
|
6
|
+
- Add argv row mode (for passing column values as argv)
|
7
|
+
- Streamline and improve query methods
|
8
|
+
[#67](https://github.com/digital-fabric/extralite/pull/67)
|
9
|
+
- Implement row transforms
|
10
|
+
|
11
|
+
# 2.6 2024-01-23
|
12
|
+
|
13
|
+
- Implement changeset API.
|
14
|
+
[#58](https://github.com/digital-fabric/extralite/issues/58)
|
15
|
+
- Reorganize README, update benchmarks.
|
16
|
+
[#63](https://github.com/digital-fabric/extralite/issues/63)
|
17
|
+
- Implement progress handler API.
|
18
|
+
[#62](https://github.com/digital-fabric/extralite/issues/62)
|
19
|
+
- Implement savepoint methods.
|
20
|
+
|
1
21
|
# 2.5 2024-01-16
|
2
22
|
|
3
|
-
- Update bundled sqlite to version 3.45.0
|
4
|
-
- Implement `Database#batch_query` and related methods
|
23
|
+
- Update bundled sqlite to version 3.45.0.
|
24
|
+
- Implement `Database#batch_query` and related methods.
|
5
25
|
[53](https://github.com/digital-fabric/extralite/issues/53)
|
6
|
-
- Accept more options in `Database#initialize
|
26
|
+
- Accept more options in `Database#initialize`.
|
7
27
|
[48](https://github.com/digital-fabric/extralite/issues/48)
|
8
|
-
- Fix `Database#pragma` to return single value when reading pragma value
|
9
|
-
- Accept database name in `Database#tables` method
|
28
|
+
- Fix `Database#pragma` to return single value when reading pragma value.
|
29
|
+
- Accept database name in `Database#tables` method.
|
10
30
|
- Improve `Database#batch_execute` - now accepts Enumerable and Callable
|
11
|
-
parameters [52](https://github.com/digital-fabric/extralite/issues/52)
|
12
|
-
- Rename `Database#execute_multi` to `Database#batch_execute
|
13
|
-
- Implement Query#clone
|
31
|
+
parameters. [52](https://github.com/digital-fabric/extralite/issues/52)
|
32
|
+
- Rename `Database#execute_multi` to `Database#batch_execute`.
|
33
|
+
- Implement `Query#clone`.
|
14
34
|
[51](https://github.com/digital-fabric/extralite/issues/51)
|
15
|
-
- Add support for GC compaction
|
16
|
-
- Remove support for Ruby 2.7
|
17
|
-
- Implement Query
|
18
|
-
-
|
19
|
-
-
|
35
|
+
- Add support for GC compaction.
|
36
|
+
- Remove support for Ruby 2.7.
|
37
|
+
- Implement `Query#<<`.
|
38
|
+
[49](https://github.com/digital-fabric/extralite/issues/49)
|
39
|
+
- Allow passing parameters in array.
|
40
|
+
- Add support for ractors.
|
20
41
|
[#50](https://github.com/digital-fabric/extralite/issues/50)
|
21
42
|
|
22
43
|
# 2.4 2023-12-24
|
data/Gemfile
CHANGED
data/Gemfile-bundle
CHANGED
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec name: 'extralite'
|
4
4
|
|
5
|
-
gem
|
5
|
+
gem 'extralite-bundle', git: "file://#{File.expand_path(__dir__)}", ref: `git rev-parse --abbrev-ref HEAD`.strip
|