sqlite3 1.5.0-arm-linux
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sqlite3 might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.gemtest +0 -0
- data/API_CHANGES.md +49 -0
- data/CHANGELOG.md +425 -0
- data/CONTRIBUTING.md +24 -0
- data/ChangeLog.cvs +88 -0
- data/Gemfile +3 -0
- data/LICENSE +27 -0
- data/LICENSE-DEPENDENCIES +20 -0
- data/README.md +233 -0
- data/ext/sqlite3/aggregator.c +274 -0
- data/ext/sqlite3/aggregator.h +12 -0
- data/ext/sqlite3/backup.c +168 -0
- data/ext/sqlite3/backup.h +15 -0
- data/ext/sqlite3/database.c +853 -0
- data/ext/sqlite3/database.h +17 -0
- data/ext/sqlite3/exception.c +98 -0
- data/ext/sqlite3/exception.h +8 -0
- data/ext/sqlite3/extconf.rb +252 -0
- data/ext/sqlite3/sqlite3.c +163 -0
- data/ext/sqlite3/sqlite3_ruby.h +48 -0
- data/ext/sqlite3/statement.c +442 -0
- data/ext/sqlite3/statement.h +16 -0
- data/faq/faq.md +431 -0
- data/faq/faq.rb +145 -0
- data/faq/faq.yml +426 -0
- data/lib/sqlite3/2.6/sqlite3_native.so +0 -0
- data/lib/sqlite3/2.7/sqlite3_native.so +0 -0
- data/lib/sqlite3/3.0/sqlite3_native.so +0 -0
- data/lib/sqlite3/3.1/sqlite3_native.so +0 -0
- data/lib/sqlite3/constants.rb +50 -0
- data/lib/sqlite3/database.rb +741 -0
- data/lib/sqlite3/errors.rb +35 -0
- data/lib/sqlite3/pragmas.rb +595 -0
- data/lib/sqlite3/resultset.rb +187 -0
- data/lib/sqlite3/statement.rb +145 -0
- data/lib/sqlite3/translator.rb +118 -0
- data/lib/sqlite3/value.rb +57 -0
- data/lib/sqlite3/version.rb +23 -0
- data/lib/sqlite3.rb +15 -0
- data/test/helper.rb +27 -0
- data/test/test_backup.rb +33 -0
- data/test/test_collation.rb +82 -0
- data/test/test_database.rb +545 -0
- data/test/test_database_flags.rb +95 -0
- data/test/test_database_readonly.rb +36 -0
- data/test/test_database_readwrite.rb +41 -0
- data/test/test_deprecated.rb +44 -0
- data/test/test_encoding.rb +155 -0
- data/test/test_integration.rb +507 -0
- data/test/test_integration_aggregate.rb +336 -0
- data/test/test_integration_open_close.rb +30 -0
- data/test/test_integration_pending.rb +115 -0
- data/test/test_integration_resultset.rb +142 -0
- data/test/test_integration_statement.rb +194 -0
- data/test/test_result_set.rb +37 -0
- data/test/test_sqlite3.rb +30 -0
- data/test/test_statement.rb +263 -0
- data/test/test_statement_execute.rb +35 -0
- metadata +190 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ccec0d1f6cc50aacf2883d6a39017b9e9e9801ac29a0a454978b6a84181de359
|
4
|
+
data.tar.gz: e7a9552a044889f0f024e22ee19033f67a09bb4608c143d9e5613af65af3aa04
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f5f19b9080cf6b80a4c4e35c49e743aa55db6db9f9b2f87be7eb3ba187ffcb01cf37d974974588d5b8f1703c91b402fa73cd4667a052dc869472a84547285d75
|
7
|
+
data.tar.gz: e2f918753558505ec09f7d89fe8c5bf5d287e4f734304e21b31a4efca5d6da5a4355b67832755d06de1d57cfe900b7df14e8a58dea92a10c46fe8ea72be30561
|
data/.gemtest
ADDED
File without changes
|
data/API_CHANGES.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# API Changes
|
2
|
+
|
3
|
+
* SQLite3::Database#execute only accepts an array for bind parameters.
|
4
|
+
|
5
|
+
* SQLite3::ResultSet used to query the database for the first row, regardless
|
6
|
+
of whether the user asked for it or not. I have removed that so that rows
|
7
|
+
will not be returned until the user asks for them. This is a subtle but
|
8
|
+
sometimes important change in behavior.
|
9
|
+
|
10
|
+
83882d2208ed189361617d5ab8532a325aaf729d
|
11
|
+
|
12
|
+
* SQLite3::Database#trace now takes either a block or an object that responds
|
13
|
+
to "call". The previous implementation passed around a VALUE that was cast
|
14
|
+
to a void *. This is dangerous because the value could get garbage collected
|
15
|
+
before the proc was called. If the user wants data passed around with the
|
16
|
+
block, they should use variables available to the closure or create an
|
17
|
+
object.
|
18
|
+
|
19
|
+
* SQLite3::Statement#step automatically converts to ruby types, where before
|
20
|
+
all values were automatically yielded as strings. This will only be a
|
21
|
+
problem for people who were accessing information about the database that
|
22
|
+
wasn't previously passed through the pure ruby conversion code.
|
23
|
+
|
24
|
+
* SQLite3::Database#errmsg no longer takes a parameter to return error
|
25
|
+
messages as UTF-16. Do people even use that? I opt for staying UTF-8 when
|
26
|
+
possible. See test_integration.rb test_errmsg_utf16
|
27
|
+
|
28
|
+
* SQLite3::Database#authorize same changes as trace
|
29
|
+
|
30
|
+
* test/test_tc_database.rb was removed because we no longer use the Driver
|
31
|
+
design pattern.
|
32
|
+
|
33
|
+
# Garbage Collection Strategy
|
34
|
+
|
35
|
+
All statements keep pointers back to their respective database connections.
|
36
|
+
The @connection instance variable on the Statement handle keeps the database
|
37
|
+
connection alive. Memory allocated for a statement handler will be freed in
|
38
|
+
two cases:
|
39
|
+
|
40
|
+
* close is called on the statement
|
41
|
+
* The SQLite3::Database object gets garbage collected
|
42
|
+
|
43
|
+
We can't free the memory for the statement in the garbage collection function
|
44
|
+
for the statement handler. The reason is because there exists a race
|
45
|
+
condition. We cannot guarantee the order in which objects will be garbage
|
46
|
+
collected. So, it is possible that a connection and a statement are up for
|
47
|
+
garbage collection. If the database connection were to be free'd before the
|
48
|
+
statement, then boom. Instead we'll be conservative and free unclosed
|
49
|
+
statements when the connection is terminated.
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,425 @@
|
|
1
|
+
# sqlite3-ruby Changelog
|
2
|
+
|
3
|
+
## 1.5.0 / 2022-09-08
|
4
|
+
|
5
|
+
### Packaging
|
6
|
+
|
7
|
+
#### Faster, more reliable installation
|
8
|
+
|
9
|
+
Native (precompiled) gems are available for Ruby 2.6, 2.7, 3.0, and 3.1 on all these platforms:
|
10
|
+
|
11
|
+
- `aarch64-linux`
|
12
|
+
- `arm-linux`
|
13
|
+
- `arm64-darwin`
|
14
|
+
- `x64-mingw32` and `x64-mingw-ucrt`
|
15
|
+
- `x86-linux`
|
16
|
+
- `x86_64-darwin`
|
17
|
+
- `x86_64-linux`
|
18
|
+
|
19
|
+
If you are using one of these Ruby versions on one of these platforms, the native gem is the recommended way to install sqlite3-ruby.
|
20
|
+
|
21
|
+
See [the README](https://github.com/sparklemotion/sqlite3-ruby#native-gems-recommended) for more information.
|
22
|
+
|
23
|
+
|
24
|
+
#### More consistent developer experience
|
25
|
+
|
26
|
+
Both the native (precompiled) gems and the vanilla "ruby platform" (source) gem include sqlite v3.39.3 by default.
|
27
|
+
|
28
|
+
Defaulting to a consistent version of sqlite across all systems means that your development environment behaves exactly like your production environment, and you have access to the latest and greatest features of sqlite.
|
29
|
+
|
30
|
+
You can opt-out of the packaged version of sqlite (and use your system-installed library as in versions < 1.5.0). See [the README](https://github.com/sparklemotion/sqlite3-ruby#avoiding-the-precompiled-native-gem) for more information.
|
31
|
+
|
32
|
+
[Release notes for this version of sqlite](https://sqlite.org/releaselog/3_39_3.html)
|
33
|
+
|
34
|
+
|
35
|
+
### Rubies and Platforms
|
36
|
+
|
37
|
+
* TruffleRuby is supported.
|
38
|
+
* Apple Silicon is supported (M1, arm64-darwin).
|
39
|
+
* vcpkg system libraries supported. [#332] (Thanks, @MSP-Greg!)
|
40
|
+
|
41
|
+
|
42
|
+
### Added
|
43
|
+
|
44
|
+
* `SQLite3::SQLITE_LOADED_VERSION` contains the version string of the sqlite3 library that is dynamically loaded (compare to `SQLite3::SQLITE_VERSION` which is the version at compile-time).
|
45
|
+
|
46
|
+
|
47
|
+
### Fixed
|
48
|
+
|
49
|
+
* `SQLite3::Database#load_extensions` now raises a `TypeError` unless a String is passed as the file path. Previously it was possible to pass a non-string and cause a segfault. [#339]
|
50
|
+
|
51
|
+
|
52
|
+
## 1.4.4 / 2022-06-14
|
53
|
+
|
54
|
+
### Fixes
|
55
|
+
|
56
|
+
* Compilation no longer fails against SQLite3 versions < 3.29.0. This issue was introduced in v1.4.3. [#324] (Thank you, @r6e!)
|
57
|
+
|
58
|
+
|
59
|
+
## 1.4.3 / 2022-05-25
|
60
|
+
|
61
|
+
### Enhancements
|
62
|
+
|
63
|
+
* Disable non-standard support for double-quoted string literals via the `:strict` option. [#317] (Thank you, @casperisfine!)
|
64
|
+
* Column type names are now explicitly downcased on platforms where they may have been in shoutcaps. [#315] (Thank you, @petergoldstein!)
|
65
|
+
* Support File or Pathname arguments to `Database.new`. [#283] (Thank you, @yb66!)
|
66
|
+
* Support building on MSVC. [#285] (Thank you, @jmarrec!)
|
67
|
+
|
68
|
+
|
69
|
+
## 1.4.2 / 2019-12-18
|
70
|
+
|
71
|
+
* Travis: Drop unused setting "sudo: false"
|
72
|
+
* The taint mechanism will be deprecated in Ruby 2.7
|
73
|
+
* Fix Ruby 2.7 rb_check_safe_obj warnings
|
74
|
+
* Update travis config
|
75
|
+
|
76
|
+
|
77
|
+
## 1.4.1
|
78
|
+
|
79
|
+
* Don't mandate dl functions for the extention build
|
80
|
+
* bumping version
|
81
|
+
|
82
|
+
|
83
|
+
## 1.4.0
|
84
|
+
|
85
|
+
### Enhancements
|
86
|
+
|
87
|
+
* Better aggregator support
|
88
|
+
|
89
|
+
### Bugfixes
|
90
|
+
|
91
|
+
* Various
|
92
|
+
|
93
|
+
|
94
|
+
## 1.3.13
|
95
|
+
|
96
|
+
### Enhancements
|
97
|
+
|
98
|
+
* Support SQLite flags when defining functions
|
99
|
+
* Add definition for SQLITE_DETERMINISTIC flag
|
100
|
+
|
101
|
+
|
102
|
+
## 1.3.12
|
103
|
+
|
104
|
+
### Bugfixes
|
105
|
+
|
106
|
+
* OS X install will default to homebrew if available. Fixes #195
|
107
|
+
|
108
|
+
|
109
|
+
## 1.3.11 / 2015-10-10
|
110
|
+
|
111
|
+
### Enhancements
|
112
|
+
|
113
|
+
* Windows: build against SQLite 3.8.11.1
|
114
|
+
|
115
|
+
### Internal
|
116
|
+
|
117
|
+
* Use rake-compiler-dock to build Windows binaries. Pull #159 [larskanis]
|
118
|
+
* Expand Ruby versions being tested for Travis and AppVeyor
|
119
|
+
|
120
|
+
|
121
|
+
## 1.3.10 / 2014-10-30
|
122
|
+
|
123
|
+
### Enhancements
|
124
|
+
|
125
|
+
* Windows: build against SQLite 3.8.6. Closes #135 [Hubro]
|
126
|
+
|
127
|
+
|
128
|
+
## 1.3.9 / 2014-02-25
|
129
|
+
|
130
|
+
### Bugfixes
|
131
|
+
|
132
|
+
* Reset exception message. Closes #80
|
133
|
+
* Reduce warnings due unused pointers. Closes #89
|
134
|
+
* Add BSD-3 license reference to gemspec. Refs #99 and #106
|
135
|
+
|
136
|
+
|
137
|
+
## 1.3.8 / 2013-08-17
|
138
|
+
|
139
|
+
### Enhancements
|
140
|
+
|
141
|
+
* Windows: build against SQLite 3.7.17
|
142
|
+
|
143
|
+
### Bugfixes
|
144
|
+
|
145
|
+
* Reset exception message. Closes #80
|
146
|
+
* Correctly convert BLOB values to Ruby. Closes #65
|
147
|
+
* Add MIT license reference to gemspec. Closes #99
|
148
|
+
* Remove unused pointer. Closes #89
|
149
|
+
|
150
|
+
### Internal
|
151
|
+
|
152
|
+
* Backport improvements in cross compilation for Windows
|
153
|
+
* Use of Minitest for internal tests
|
154
|
+
* Use Gemfile (generated by Hoe) to deal with dependencies
|
155
|
+
* Cleanup Travis CI
|
156
|
+
|
157
|
+
|
158
|
+
## 1.3.7 / 2013-01-11
|
159
|
+
|
160
|
+
### Bugfixes
|
161
|
+
|
162
|
+
* Closing a bad statement twice will not segv.
|
163
|
+
* Aggregate handlers are initialized on each query. Closes #44
|
164
|
+
|
165
|
+
### Internal
|
166
|
+
|
167
|
+
* Unset environment variables that could affect cross compilation.
|
168
|
+
|
169
|
+
|
170
|
+
## 1.3.6 / 2012-04-16
|
171
|
+
|
172
|
+
### Enhancements
|
173
|
+
|
174
|
+
* Windows: build against SQLite 3.7.11
|
175
|
+
* Added SQLite3::ResultSet#each_hash for fetching each row as a hash.
|
176
|
+
* Added SQLite3::ResultSet#next_hash for fetching one row as a hash.
|
177
|
+
|
178
|
+
### Bugfixes
|
179
|
+
|
180
|
+
* Support both UTF-16LE and UTF-16BE encoding modes on PPC. Closes #63
|
181
|
+
* Protect parameters to custom functions from being garbage collected too
|
182
|
+
soon. Fixes #60. Thanks hirataya!
|
183
|
+
* Fix backwards compatibility with 1.2.5 with bind vars and `query` method.
|
184
|
+
Fixes #35.
|
185
|
+
* Fix double definition error caused by defining sqlite3_int64/uint64.
|
186
|
+
* Fix suspicious version regexp.
|
187
|
+
|
188
|
+
### Deprecations
|
189
|
+
|
190
|
+
* ArrayWithTypesAndFields#types is deprecated and the class will be removed
|
191
|
+
in version 2.0.0. Please use the `types` method on the ResultSet class
|
192
|
+
that created this object.
|
193
|
+
* ArrayWithTypesAndFields#fields is deprecated and the class will be removed
|
194
|
+
in version 2.0.0. Please use the `columns` method on the ResultSet class
|
195
|
+
that created this object.
|
196
|
+
* The ArrayWithTypesAndFields class will be removed in 2.0.0
|
197
|
+
* The ArrayWithTypes class will be removed in 2.0.0
|
198
|
+
* HashWithTypesAndFields#types is deprecated and the class will be removed
|
199
|
+
in version 2.0.0. Please use the `types` method on the ResultSet class
|
200
|
+
that created this object.
|
201
|
+
* HashWithTypesAndFields#fields is deprecated and the class will be removed
|
202
|
+
in version 2.0.0. Please use the `columns` method on the ResultSet class
|
203
|
+
that created this object.
|
204
|
+
|
205
|
+
|
206
|
+
## 1.3.5 / 2011-12-03 - ZOMG Holidays are here Edition!
|
207
|
+
|
208
|
+
### Enhancements
|
209
|
+
|
210
|
+
* Windows: build against SQLite 3.7.9
|
211
|
+
* Static: enable SQLITE_ENABLE_COLUMN_METADATA
|
212
|
+
* Added Statement#clear_bindings! to set bindings back to nil
|
213
|
+
|
214
|
+
### Bugfixes
|
215
|
+
|
216
|
+
* Fixed a segv on Database.new. Fixes #34 (thanks nobu!)
|
217
|
+
* Database error is not reset, so don't check it in Statement#reset!
|
218
|
+
* Remove conditional around Bignum statement bindings.
|
219
|
+
Fixes #52. Fixes #56. Thank you Evgeny Myasishchev.
|
220
|
+
|
221
|
+
### Internal
|
222
|
+
|
223
|
+
* Use proper endianness when testing database connection with UTF-16.
|
224
|
+
Fixes #40. Fixes #51
|
225
|
+
* Use -fPIC for static compilation when host is x86_64.
|
226
|
+
|
227
|
+
|
228
|
+
## 1.3.4 / 2011-07-25
|
229
|
+
|
230
|
+
### Enhancements
|
231
|
+
|
232
|
+
* Windows: build against SQLite 3.7.7.1
|
233
|
+
* Windows: build static binaries that do not depend on sqlite3.dll be
|
234
|
+
installed anymore
|
235
|
+
|
236
|
+
### Bugfixes
|
237
|
+
|
238
|
+
* Backup API is conditionally required so that older libsqlite3 can be used.
|
239
|
+
Thanks Hongli Lai.
|
240
|
+
* Fixed segmentation fault when nil is passed to SQLite3::Statement.new
|
241
|
+
* Fix extconf's hardcoded path that affected installation on certain systems.
|
242
|
+
|
243
|
+
|
244
|
+
## 1.3.3 / 2010-01-16
|
245
|
+
|
246
|
+
### Bugfixes
|
247
|
+
|
248
|
+
* Abort on installation if sqlite3_backup_init is missing. Fixes #19
|
249
|
+
* Gem has been renamed to 'sqlite3'. Please use `gem install sqlite3`
|
250
|
+
|
251
|
+
|
252
|
+
## 1.3.2 / 2010-10-30 / RubyConf Uruguay Edition!
|
253
|
+
|
254
|
+
### Enhancements
|
255
|
+
|
256
|
+
* Windows: build against 3.7.3 version of SQLite3
|
257
|
+
* SQLite3::Database can now be open as readonly
|
258
|
+
|
259
|
+
db = SQLite3::Database.new('my.db', :readonly => true)
|
260
|
+
|
261
|
+
* Added SQLite3::SQLITE_VERSION and SQLite3::SQLITE_VERSION_NUMBER [nurse]
|
262
|
+
|
263
|
+
### Bugfixes
|
264
|
+
|
265
|
+
* type_translation= works along with Database#execute and a block
|
266
|
+
* defined functions are kept in a hash to prevent GC. #7
|
267
|
+
* Removed GCC specific flags from extconf.
|
268
|
+
|
269
|
+
### Deprecations
|
270
|
+
|
271
|
+
* SQLite3::Database#type_translation= will be deprecated in the future with
|
272
|
+
no replacement.
|
273
|
+
* SQlite3::Version will be deprecated in 2.0.0 with SQLite3::VERSION as the
|
274
|
+
replacement.
|
275
|
+
|
276
|
+
|
277
|
+
## 1.3.1 / 2010-07-09
|
278
|
+
|
279
|
+
### Enhancements
|
280
|
+
|
281
|
+
* Custom collations may be defined using SQLite3::Database#collation
|
282
|
+
|
283
|
+
### Bugfixes
|
284
|
+
|
285
|
+
* Statements returning 0 columns are automatically stepped. [RF #28308]
|
286
|
+
* SQLite3::Database#encoding works on 1.8 and 1.9
|
287
|
+
|
288
|
+
|
289
|
+
## 1.3.0 / 2010-06-06
|
290
|
+
|
291
|
+
### Enhancements
|
292
|
+
|
293
|
+
* Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
|
294
|
+
See API_CHANGES document for details.
|
295
|
+
This closes: Bug #27300, Bug #27241, Patch #16020
|
296
|
+
* Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
|
297
|
+
* Added support for type translations [tenderlove]
|
298
|
+
|
299
|
+
@db.translator.add_translator('sometime') do |type, thing|
|
300
|
+
'output' # this will be returned as value for that column
|
301
|
+
end
|
302
|
+
|
303
|
+
### Experimental
|
304
|
+
|
305
|
+
* Added API to access and load extensions. [kashif]
|
306
|
+
These functions maps directly into SQLite3 own enable_load_extension()
|
307
|
+
and load_extension() C-API functions. See SQLite3::Database API documentation for details.
|
308
|
+
This closes: Patches #9178
|
309
|
+
|
310
|
+
### Bugfixes
|
311
|
+
|
312
|
+
* Corrected gem dependencies (runtime and development)
|
313
|
+
* Fixed threaded tests [Alexey Borzenkov]
|
314
|
+
* Removed GitHub gemspec
|
315
|
+
* Fixed "No definition for" warnings from RDoc
|
316
|
+
* Generate zip and tgz files for releases
|
317
|
+
* Added Luis Lavena as gem Author (maintainer)
|
318
|
+
* Prevent mkmf interfere with Mighty Snow Leopard
|
319
|
+
* Allow extension compilation search for common lib paths [kashif]
|
320
|
+
(lookup /usr/local, /opt/local and /usr)
|
321
|
+
* Corrected extension compilation under MSVC [romuloceccon]
|
322
|
+
* Define load_extension functionality based on availability [tenderlove]
|
323
|
+
* Deprecation notices for Database#query. Fixes RF #28192
|
324
|
+
|
325
|
+
|
326
|
+
## 1.3.0.beta.2 / 2010-05-15
|
327
|
+
|
328
|
+
### Enhancements
|
329
|
+
|
330
|
+
* Added support for type translations [tenderlove]
|
331
|
+
|
332
|
+
@db.translator.add_translator('sometime') do |type, thing|
|
333
|
+
'output' # this will be returned as value for that column
|
334
|
+
end
|
335
|
+
|
336
|
+
### Bugfixes
|
337
|
+
|
338
|
+
* Allow extension compilation search for common lib paths [kashif]
|
339
|
+
(lookup /usr/local, /opt/local and /usr)
|
340
|
+
* Corrected extension compilation under MSVC [romuloceccon]
|
341
|
+
* Define load_extension functionality based on availability [tenderlove]
|
342
|
+
* Deprecation notices for Database#query. Fixes RF #28192
|
343
|
+
|
344
|
+
|
345
|
+
## 1.3.0.beta.1 / 2010-05-10
|
346
|
+
|
347
|
+
### Enhancements
|
348
|
+
|
349
|
+
* Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
|
350
|
+
See API_CHANGES document for details.
|
351
|
+
This closes: Bug #27300, Bug #27241, Patch #16020
|
352
|
+
* Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
|
353
|
+
|
354
|
+
### Experimental
|
355
|
+
|
356
|
+
* Added API to access and load extensions. [kashif]
|
357
|
+
These functions maps directly into SQLite3 own enable_load_extension()
|
358
|
+
and load_extension() C-API functions. See SQLite3::Database API documentation for details.
|
359
|
+
This closes: Patches #9178
|
360
|
+
|
361
|
+
### Bugfixes
|
362
|
+
|
363
|
+
* Corrected gem dependencies (runtime and development)
|
364
|
+
* Fixed threaded tests [Alexey Borzenkov]
|
365
|
+
* Removed GitHub gemspec
|
366
|
+
* Fixed "No definition for" warnings from RDoc
|
367
|
+
* Generate zip and tgz files for releases
|
368
|
+
* Added Luis Lavena as gem Author (maintainer)
|
369
|
+
* Prevent mkmf interfere with Mighty Snow Leopard
|
370
|
+
|
371
|
+
|
372
|
+
## 1.2.5 / 2009-07-25
|
373
|
+
|
374
|
+
* Check for illegal nil before executing SQL [Erik Veenstra]
|
375
|
+
* Switch to Hoe for gem task management and packaging.
|
376
|
+
* Advertise rake-compiler as development dependency.
|
377
|
+
* Build gem binaries for Windows.
|
378
|
+
* Improved Ruby 1.9 support compatibility.
|
379
|
+
* Taint returned values. Patch #20325.
|
380
|
+
* Database.open and Database.new now take an optional block [Gerrit Kaiser]
|
381
|
+
|
382
|
+
|
383
|
+
## 1.2.4.1 (internal) / 2009-07-05
|
384
|
+
|
385
|
+
* Check for illegal nil before executing SQL [Erik Veenstra]
|
386
|
+
* Switch to Hoe for gem task management and packaging.
|
387
|
+
* Advertise rake-compiler as development dependency.
|
388
|
+
* Build gem binaries for Windows.
|
389
|
+
* Improved Ruby 1.9 support compatibility.
|
390
|
+
|
391
|
+
|
392
|
+
## 1.2.4 / 2008-08-27
|
393
|
+
|
394
|
+
* Package the updated C file for source builds. [Jamis Buck]
|
395
|
+
|
396
|
+
|
397
|
+
## 1.2.3 / 2008-08-26
|
398
|
+
|
399
|
+
* Fix incorrect permissions on database.rb and translator.rb [Various]
|
400
|
+
* Avoid using Object#extend for greater speedups [Erik Veenstra]
|
401
|
+
* Ruby 1.9 compatibility tweaks for Array#zip [jimmy88@gmail.com]
|
402
|
+
* Fix linking against Ruby 1.8.5 [Rob Holland <rob@inversepath.com>]
|
403
|
+
|
404
|
+
|
405
|
+
## 1.2.2 / 2008-05-31
|
406
|
+
|
407
|
+
* Make the table_info method adjust the returned default value for the rows
|
408
|
+
so that the sqlite3 change in 3.3.8 and greater can be handled
|
409
|
+
transparently [Jamis Buck <jamis@37signals.com>]
|
410
|
+
* Ruby 1.9 compatibility tweaks [Roman Le Negrate <roman2k@free.fr>]
|
411
|
+
* Various performance enhancements [thanks Erik Veenstra]
|
412
|
+
* Correct busy_handler documentation [Rob Holland <rob@inversepath.com>]
|
413
|
+
* Use int_bind64 on Fixnum values larger than a 32bit C int can take. [Rob Holland <rob@inversepath.com>]
|
414
|
+
* Work around a quirk in SQLite's error reporting by calling sqlite3_reset
|
415
|
+
to produce a more informative error code upon a failure from
|
416
|
+
sqlite3_step. [Rob Holland <rob@inversepath.com>]
|
417
|
+
* Various documentation, test, and style tweaks [Rob Holland <rob@inversepath.com>]
|
418
|
+
* Be more granular with time/data translation [Rob Holland <rob@inversepath.com>]
|
419
|
+
* Use Date directly for parsing rather than going via Time [Rob Holland <rob@inversepath.com>]
|
420
|
+
* Check for the rt library and fdatasync so we link against that when
|
421
|
+
needed [Rob Holland <rob@inversepath.com>]
|
422
|
+
* Rename data structures to avoid collision on win32. based on patch
|
423
|
+
by: Luis Lavena [Rob Holland <rob@inversepath.com>]
|
424
|
+
* Add test for defaults [Daniel Rodríguez Troitiño]
|
425
|
+
* Correctly unquote double-quoted pragma defaults [Łukasz Dargiewicz <lukasz.dargiewicz@gmail.com>]
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Contributing to sqlite3-ruby
|
2
|
+
|
3
|
+
**This document is a work-in-progress.**
|
4
|
+
|
5
|
+
This doc is a short introduction on how to modify and maintain the sqlite3-ruby gem.
|
6
|
+
|
7
|
+
|
8
|
+
## Building gems
|
9
|
+
|
10
|
+
As a prerequisite please make sure you have `docker` correctly installed, so that you're able to cross-compile the native gems.
|
11
|
+
|
12
|
+
Run `bin/build-gems` which will package gems for all supported platforms, and run some basic sanity tests on those packages using `bin/test-gem-set` and `bin/test-gem-file-contents`.
|
13
|
+
|
14
|
+
|
15
|
+
## Making a release
|
16
|
+
|
17
|
+
A quick checklist:
|
18
|
+
|
19
|
+
- [ ] make sure CI is green!
|
20
|
+
- [ ] update `CHANGELOG.md` and `lib/sqlite3/version.rb` including `VersionProxy::{MINOR,TINY}`
|
21
|
+
- [ ] create a git tag using a format that matches the pattern `v\d+\.\d+\.\d+`, e.g. `v1.3.13`
|
22
|
+
- [ ] run `bin/build-gems` and make sure it completes and all the tests pass
|
23
|
+
- [ ] `for g in gems/*.gem ; do gem push $g ; done`
|
24
|
+
- [ ] create a release at https://github.com/sparklemotion/sqlite3-ruby/releases and include sha2 checksums
|
data/ChangeLog.cvs
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
2005-01-05 09:40 minam
|
2
|
+
|
3
|
+
* Rakefile, sqlite3-ruby-win32.gemspec, sqlite3-ruby.gemspec: Added
|
4
|
+
win32 gem.
|
5
|
+
|
6
|
+
2005-01-05 07:31 minam
|
7
|
+
|
8
|
+
* Rakefile, test/tc_integration.rb, test/tests.rb: Added
|
9
|
+
native-vs-dl benchmark to Rakefile. Added SQLITE3_DRIVERS
|
10
|
+
environment variable to integration test to specify which
|
11
|
+
driver(s) should be tested (defaults to "Native").
|
12
|
+
|
13
|
+
2005-01-04 14:26 minam
|
14
|
+
|
15
|
+
* ext/sqlite3_api/sqlite3_api.i, lib/sqlite3/database.rb,
|
16
|
+
lib/sqlite3/driver/native/driver.rb, test/tc_database.rb,
|
17
|
+
test/tc_integration.rb, test/tests.rb: Unit tests: done. Bugs:
|
18
|
+
fixed.
|
19
|
+
|
20
|
+
2005-01-03 23:13 minam
|
21
|
+
|
22
|
+
* ext/sqlite3_api/sqlite3_api.i, lib/sqlite3/database.rb,
|
23
|
+
lib/sqlite3/driver/dl/driver.rb,
|
24
|
+
lib/sqlite3/driver/native/driver.rb, test/tc_integration.rb:
|
25
|
+
Custom functions (aggregate and otherwise) are supported by the
|
26
|
+
native driver now. Test cases for the same.
|
27
|
+
|
28
|
+
2005-01-03 13:51 minam
|
29
|
+
|
30
|
+
* ext/sqlite3_api/MANIFEST, ext/sqlite3_api/extconf.rb,
|
31
|
+
ext/sqlite3_api/post-clean.rb, ext/sqlite3_api/post-distclean.rb,
|
32
|
+
ext/sqlite3_api/sqlite3_api.i, lib/sqlite3/database.rb,
|
33
|
+
lib/sqlite3/resultset.rb, lib/sqlite3/version.rb,
|
34
|
+
lib/sqlite3/driver/dl/driver.rb,
|
35
|
+
lib/sqlite3/driver/native/driver.rb, test/native-vs-dl.rb,
|
36
|
+
test/tc_integration.rb: Added preliminary implementation of
|
37
|
+
native driver (swig-based), and integration tests.
|
38
|
+
|
39
|
+
2004-12-29 19:37 minam
|
40
|
+
|
41
|
+
* lib/sqlite3/driver/dl/driver.rb: Some fixes to allow the DL
|
42
|
+
driver to work with Ruby 1.8.1.
|
43
|
+
|
44
|
+
2004-12-29 14:52 minam
|
45
|
+
|
46
|
+
* lib/sqlite3/: database.rb, version.rb: Made #quote a class method
|
47
|
+
(again). Bumped version to 0.6.
|
48
|
+
|
49
|
+
2004-12-25 22:59 minam
|
50
|
+
|
51
|
+
* lib/sqlite3/driver/dl/api.rb: Added check for darwin in supported
|
52
|
+
platforms (thanks to bitsweat).
|
53
|
+
|
54
|
+
2004-12-22 12:38 minam
|
55
|
+
|
56
|
+
* Rakefile: Rakefile wasn't packaging the README file.
|
57
|
+
|
58
|
+
2004-12-21 22:28 minam
|
59
|
+
|
60
|
+
* Rakefile, sqlite3-ruby.gemspec, test/bm.rb: Packaging now works.
|
61
|
+
Added benchmarks.
|
62
|
+
|
63
|
+
2004-12-21 21:45 minam
|
64
|
+
|
65
|
+
* LICENSE, README, Rakefile, setup.rb, sqlite3-ruby.gemspec,
|
66
|
+
doc/faq/faq.rb, doc/faq/faq.yml, lib/sqlite3.rb,
|
67
|
+
lib/sqlite3/statement.rb, lib/sqlite3/constants.rb,
|
68
|
+
lib/sqlite3/database.rb, lib/sqlite3/resultset.rb,
|
69
|
+
lib/sqlite3/translator.rb, lib/sqlite3/value.rb,
|
70
|
+
lib/sqlite3/version.rb, lib/sqlite3/errors.rb,
|
71
|
+
lib/sqlite3/pragmas.rb, lib/sqlite3/driver/dl/api.rb,
|
72
|
+
lib/sqlite3/driver/dl/driver.rb, test/mocks.rb,
|
73
|
+
test/tc_database.rb, test/tests.rb, test/driver/dl/tc_driver.rb:
|
74
|
+
Initial import
|
75
|
+
|
76
|
+
2004-12-21 21:45 minam
|
77
|
+
|
78
|
+
* LICENSE, README, Rakefile, setup.rb, sqlite3-ruby.gemspec,
|
79
|
+
doc/faq/faq.rb, doc/faq/faq.yml, lib/sqlite3.rb,
|
80
|
+
lib/sqlite3/statement.rb, lib/sqlite3/constants.rb,
|
81
|
+
lib/sqlite3/database.rb, lib/sqlite3/resultset.rb,
|
82
|
+
lib/sqlite3/translator.rb, lib/sqlite3/value.rb,
|
83
|
+
lib/sqlite3/version.rb, lib/sqlite3/errors.rb,
|
84
|
+
lib/sqlite3/pragmas.rb, lib/sqlite3/driver/dl/api.rb,
|
85
|
+
lib/sqlite3/driver/dl/driver.rb, test/mocks.rb,
|
86
|
+
test/tc_database.rb, test/tests.rb, test/driver/dl/tc_driver.rb:
|
87
|
+
Initial revision
|
88
|
+
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
Copyright (c) 2004, Jamis Buck (jamis@jamisbuck.org)
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
* Redistributions of source code must retain the above copyright notice,
|
8
|
+
this list of conditions and the following disclaimer.
|
9
|
+
|
10
|
+
* Redistributions in binary form must reproduce the above copyright
|
11
|
+
notice, this list of conditions and the following disclaimer in the
|
12
|
+
documentation and/or other materials provided with the distribution.
|
13
|
+
|
14
|
+
* The names of its contributors may not be used to endorse or promote
|
15
|
+
products derived from this software without specific prior written
|
16
|
+
permission.
|
17
|
+
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
22
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
23
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
24
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
25
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
26
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Vendored Dependency Licenses
|
2
|
+
|
3
|
+
The library `sqlite3-ruby` (which lives at https://github.com/sparklemotion/sqlite3-ruby) may include the source code for `sqlite` (which lives at https://www.sqlite.org/)
|
4
|
+
|
5
|
+
`sqlite` source code is licensed under the public domain:
|
6
|
+
|
7
|
+
> https://www.sqlite.org/copyright.html
|
8
|
+
|
9
|
+
The license terms shipped with `sqlite` are included here for your convenience:
|
10
|
+
|
11
|
+
```
|
12
|
+
The author disclaims copyright to this source code. In place of
|
13
|
+
a legal notice, here is a blessing:
|
14
|
+
|
15
|
+
May you do good and not evil.
|
16
|
+
May you find forgiveness for yourself and forgive others.
|
17
|
+
May you share freely, never taking more than you give.
|
18
|
+
```
|
19
|
+
|
20
|
+
Note that these license terms do not apply to the `sqlite3-ruby` library itself.
|