sqlite3-ffi 0.1.4 → 0.1.5

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: dbbaa5e5e143c05707d0a5862d7a18b795bbd862d0e1a2fd952ac116b1abc614
4
- data.tar.gz: 1b0a5244008fb363938d6db3367085b9df6024400f0bf99d94dc70f42be446e1
3
+ metadata.gz: 18966e30363b64785e729d7083ee0595f4041adf38ef397c1ab537d3df2f4915
4
+ data.tar.gz: 5dcbab4cf2535a6b8b562eeaa91179728a147f38ef2309e028a508189afcbb0f
5
5
  SHA512:
6
- metadata.gz: 15ea673d89d9087f71dfaca5e17684f8b8298c5d5f24c7ca08d3bfe40bdb345bb13ad3576d35a8f5895b5e0a77ff6ba256f77944db4327fad234100a7ca1965a
7
- data.tar.gz: 9473c68f8da638de6c04d93476564583a28e885dafcea23c4349c9eb2170be8b15f335b3729ecb4d2f27887d0e6c4bbe0e147f12f7959a641a518d115634a9c2
6
+ metadata.gz: 2e91e7e66411e91ccc35c6b1d2525f0f766bf7893200db4db9b6ea8ed9647c22a39756649abf9f429e0c4d13dd3b717d4d733b46c5ef3ac24062174717a5452b
7
+ data.tar.gz: bb42912806d022e3e5ffcc7b11c0ef18a81d2545191da9cd30e90ad05e46f697c9d2c8e915419911b4a42264cd801866a2be74ed55f68dadec06a6c900733181
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.5 (2026-01-02)
2
+
3
+ - Synced with sqlite3-ruby 2.9.0
4
+
1
5
  ## 0.1.4 (2025-06-09)
2
6
 
3
7
  - Synced with sqlite3-ruby 2.7.0
@@ -19,7 +19,7 @@ module SQLite3
19
19
  inst_ptr = CApi.sqlite3_aggregate_context(ctx, 8)
20
20
 
21
21
  if inst_ptr.null?
22
- fatal "SQLite is out-of-merory"
22
+ fatal "SQLite is out-of-memory"
23
23
  end
24
24
 
25
25
  if inst_ptr.read_pointer.null?
@@ -141,6 +141,7 @@ module SQLite3
141
141
  attach_function :sqlite3_bind_null, [:pointer, :int], :int
142
142
  attach_function :sqlite3_bind_parameter_count, [:pointer], :int
143
143
  attach_function :sqlite3_bind_parameter_index, [:pointer, :string], :int
144
+ attach_function :sqlite3_bind_parameter_name, [:pointer, :int], :string
144
145
  attach_function :sqlite3_bind_text, [:pointer, :int, :string, :int, :pointer], :int
145
146
  attach_function :sqlite3_bind_text16, [:pointer, :int, :pointer, :int, :pointer], :int
146
147
  attach_function :sqlite3_busy_handler, [:pointer, :pointer, :pointer], :int
@@ -178,6 +178,23 @@ module SQLite3
178
178
  FFI::CApi.sqlite3_bind_parameter_count(@stmt)
179
179
  end
180
180
 
181
+ def named_params
182
+ require_live_db
183
+ require_open_stmt
184
+
185
+ param_count = FFI::CApi.sqlite3_bind_parameter_count(@stmt)
186
+ params = []
187
+
188
+ 1.upto(param_count) do |i|
189
+ name = FFI::CApi.sqlite3_bind_parameter_name(@stmt, i)
190
+ if name && name[0] != "?"
191
+ param = FFI.interned_utf8_cstr(name[1..])
192
+ params << param
193
+ end
194
+ end
195
+ params.freeze
196
+ end
197
+
181
198
  STMT_STAT_SYMBOLS = {
182
199
  fullscan_steps: FFI::CApi::SQLITE_STMTSTATUS_FULLSCAN_STEP,
183
200
  sorts: FFI::CApi::SQLITE_STMTSTATUS_SORT,
@@ -1,5 +1,5 @@
1
1
  module SQLite3
2
2
  module FFI
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
1
  module SQLite3
2
2
  # (String) the version of the sqlite3 gem, e.g. "2.1.1"
3
- VERSION = "2.7.0"
3
+ VERSION = "2.9.0"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlite3-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubygems_version: 3.6.7
80
+ rubygems_version: 4.0.3
81
81
  specification_version: 4
82
82
  summary: A drop-in replacement for the sqlite3 gem for JRuby
83
83
  test_files: []