amalgalite 1.1.2-x86-mingw32 → 1.4.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CONTRIBUTING.md +49 -0
- data/{HISTORY.rdoc → HISTORY.md} +102 -73
- data/LICENSE +2 -2
- data/Manifest.txt +104 -0
- data/README.md +73 -0
- data/Rakefile +25 -0
- data/TODO.md +49 -0
- data/ext/amalgalite/{amalgalite3.c → c/amalgalite.c} +12 -12
- data/ext/amalgalite/{amalgalite3.h → c/amalgalite.h} +5 -5
- data/ext/amalgalite/{amalgalite3_blob.c → c/amalgalite_blob.c} +2 -2
- data/ext/amalgalite/{amalgalite3_constants.c → c/amalgalite_constants.c} +2 -2
- data/ext/amalgalite/{amalgalite3_database.c → c/amalgalite_database.c} +49 -21
- data/ext/amalgalite/{amalgalite3_requires_bootstrap.c → c/amalgalite_requires_bootstrap.c} +131 -58
- data/ext/amalgalite/{amalgalite3_statement.c → c/amalgalite_statement.c} +2 -2
- data/ext/amalgalite/{extconf.rb → c/extconf.rb} +6 -5
- data/ext/amalgalite/{gen_constants.rb → c/gen_constants.rb} +3 -3
- data/ext/amalgalite/c/notes.txt +134 -0
- data/ext/amalgalite/{sqlite3.c → c/sqlite3.c} +111793 -83396
- data/ext/amalgalite/{sqlite3.h → c/sqlite3.h} +1597 -383
- data/ext/amalgalite/{sqlite3_options.h → c/sqlite3_options.h} +0 -0
- data/ext/amalgalite/{sqlite3ext.h → c/sqlite3ext.h} +114 -17
- data/lib/amalgalite.rb +13 -6
- data/lib/amalgalite/1.9/amalgalite.so +0 -0
- data/lib/amalgalite/2.0/amalgalite.so +0 -0
- data/lib/amalgalite/2.1/amalgalite.so +0 -0
- data/lib/amalgalite/column.rb +7 -5
- data/lib/amalgalite/database.rb +18 -10
- data/lib/amalgalite/packer.rb +5 -2
- data/lib/amalgalite/requires.rb +47 -16
- data/lib/amalgalite/schema.rb +63 -36
- data/lib/amalgalite/sqlite3/version.rb +0 -1
- data/lib/amalgalite/statement.rb +7 -5
- data/lib/amalgalite/table.rb +9 -8
- data/lib/amalgalite/type_maps/default_map.rb +0 -1
- data/lib/amalgalite/type_maps/storage_map.rb +0 -2
- data/lib/amalgalite/type_maps/text_map.rb +0 -1
- data/lib/amalgalite/version.rb +3 -32
- data/spec/aggregate_spec.rb +1 -1
- data/spec/amalgalite_spec.rb +1 -1
- data/spec/blob_spec.rb +1 -1
- data/spec/boolean_spec.rb +2 -1
- data/spec/busy_handler.rb +1 -1
- data/spec/database_spec.rb +18 -13
- data/spec/default_map_spec.rb +1 -1
- data/spec/function_spec.rb +1 -1
- data/spec/integeration_spec.rb +2 -1
- data/spec/packer_spec.rb +4 -4
- data/spec/paths_spec.rb +1 -1
- data/spec/progress_handler_spec.rb +4 -5
- data/spec/requires_spec.rb +36 -2
- data/spec/rtree_spec.rb +6 -5
- data/spec/schema_spec.rb +28 -20
- data/spec/spec_helper.rb +7 -7
- data/spec/sqlite3/constants_spec.rb +1 -1
- data/spec/sqlite3/database_status_spec.rb +4 -4
- data/spec/sqlite3/status_spec.rb +5 -5
- data/spec/sqlite3/version_spec.rb +12 -12
- data/spec/sqlite3_spec.rb +3 -3
- data/spec/statement_spec.rb +3 -4
- data/spec/storage_map_spec.rb +1 -1
- data/spec/tap_spec.rb +4 -4
- data/spec/text_map_spec.rb +1 -1
- data/spec/type_map_spec.rb +1 -1
- data/spec/version_spec.rb +3 -10
- data/tasks/custom.rake +102 -0
- data/tasks/default.rake +247 -0
- data/tasks/extension.rake +28 -202
- data/tasks/this.rb +206 -0
- metadata +194 -236
- data/README.rdoc +0 -54
- data/gemspec.rb +0 -63
- data/lib/amalgalite/1.8/amalgalite3.so +0 -0
- data/lib/amalgalite/1.9/amalgalite3.so +0 -0
- data/tasks/announce.rake +0 -44
- data/tasks/config.rb +0 -107
- data/tasks/distribution.rake +0 -77
- data/tasks/documentation.rake +0 -36
- data/tasks/rspec.rake +0 -30
- data/tasks/utils.rb +0 -80
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Hi there!
|
2
|
+
|
3
|
+
I see you are interested in contributing. That is wonderful. I love
|
4
|
+
contributions.
|
5
|
+
|
6
|
+
I guarantee that there are bugs in this software. And I guarantee that there is
|
7
|
+
a feature you want that is not in here yet. As such, any and all bugs reports
|
8
|
+
are gratefully accepted, bugfixes even more so. Helping out with bugs is the
|
9
|
+
easiest way to contribute.
|
10
|
+
|
11
|
+
|
12
|
+
## The Quick Version
|
13
|
+
|
14
|
+
* Have a [GitHub Account][].
|
15
|
+
* Search the [GitHub Issues][] and see if your issue already present. If so
|
16
|
+
add your comments, :thumbsup:, etc.
|
17
|
+
* Issue not there? Not a problem, open up a [new issue][].
|
18
|
+
* **Bug reports** please be as detailed as possible. Include:
|
19
|
+
* full ruby engine and version: `ruby -e 'puts RUBY_DESCRIPTION'`
|
20
|
+
* operating system and version
|
21
|
+
* version of amalgalite `ruby -rubygems -e "require 'amalgalite'; puts Amalgalite::VERSION"`
|
22
|
+
* as much detail about the bug as possible so I can replicate it. Feel free
|
23
|
+
to link in a [gist][]
|
24
|
+
* **New Feature**
|
25
|
+
* What the new feature should do.
|
26
|
+
* What benefit the new feature brings to the project.
|
27
|
+
* Fork the [repo][].
|
28
|
+
* Create a new branch for your issue: `git checkout -b issue/my-issue`
|
29
|
+
* Lovingly craft your contribution:
|
30
|
+
* `rake develop` to get started, or if you prefer bundler `rake develop:using_bundler && bundle`.
|
31
|
+
* `rake test` to run tests
|
32
|
+
* Make sure that `rake test` passes. It's important, I said it twice.
|
33
|
+
* Add yourself to the contributors section below.
|
34
|
+
* Submit your [pull request][].
|
35
|
+
|
36
|
+
# Contributors
|
37
|
+
|
38
|
+
* [Jeremy Hinegardner](https://github.com/copiousfreetime)
|
39
|
+
* [Jos Backus](https://github.com/josb)
|
40
|
+
* [Alex Young](https://github.com/regularfry)
|
41
|
+
* [Michael Granger](https://github.com/ged)
|
42
|
+
* [Alex Young](https://github.com/bmalex)
|
43
|
+
|
44
|
+
[GitHub Account]: https://github.com/signup/free "GitHub Signup"
|
45
|
+
[GitHub Issues]: https://github.com/copiousfreetime/amalgalite/issues "Amalgalite Issues"
|
46
|
+
[new issue]: https://github.com/copiousfreetime/amalgalite/issues/new "New Amalgalite Issue"
|
47
|
+
[gist]: https://gist.github.com/ "New Gist"
|
48
|
+
[repo]: https://github.com/copiousfreetime/amalgalite "Amalgalite Repo"
|
49
|
+
[pull request]: https://help.github.com/articles/using-pull-requests "Using Pull Requests"
|
data/{HISTORY.rdoc → HISTORY.md}
RENAMED
@@ -1,12 +1,41 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# Amalgalite Changelog
|
2
|
+
|
3
|
+
## Version 1.3.1 - 2014-XX-XX
|
4
|
+
|
5
|
+
### Enhancements
|
6
|
+
|
7
|
+
* Update arrayfields dependency to 4.9.2
|
8
|
+
|
9
|
+
## Version 1.3.0 - 2013-03-13
|
10
|
+
|
11
|
+
### Enhancements
|
12
|
+
|
13
|
+
* Update development dependencies to the latest levels
|
14
|
+
* Change up the development process to be inline with other projects
|
15
|
+
* Add Amalgalite::Database#import for mass execution of sql (bmalex 5a42f44f)
|
16
|
+
* Allow :memory: databases to Amalgalite::Requires (bmalex df9f70b8)
|
17
|
+
* Allow bootstrapping from an in-memory sql buffer (bmalex a17fb9cf)
|
18
|
+
* Make Amalgalite 1.9 -w clean
|
19
|
+
* Updates for Ruby 2.0
|
20
|
+
|
21
|
+
### Bug Fixes
|
22
|
+
|
23
|
+
* Fix handling of debug flags in extconf.rb (ged #22)
|
24
|
+
* Remove deprected Config:: (github issue #23)
|
25
|
+
* Correct detection of being loaded in conjunction with 'sqlite3' gem (github issue #15)
|
26
|
+
* Fix incorrect loading/reload of schema [GH #16]
|
27
|
+
* Fix setting of LOADED_FEATRES when requiring from a database (bmalex edb81837)
|
28
|
+
* Fix setting of require_path for files to require that are stored in the * database (bmalex de321b86)
|
29
|
+
|
30
|
+
## Version 1.1.2 - 2011-04-01
|
31
|
+
|
32
|
+
### Bug Fixes
|
3
33
|
|
4
|
-
=== Bug Fixes
|
5
34
|
* Remove example database that was mistakenly packaged with version 1.1.1
|
6
35
|
|
7
|
-
|
36
|
+
## Version 1.1.1 - 2011-03-27
|
8
37
|
|
9
|
-
|
38
|
+
### Enhancements
|
10
39
|
|
11
40
|
* Update to SQLite 3.7.5
|
12
41
|
* Enable SQLite Full Text Search compile time options FTS3 and FTS4 [github issue #10]
|
@@ -14,51 +43,51 @@
|
|
14
43
|
* Enable STAT2 SQLite compile time option to improve ANALYZE command support
|
15
44
|
http://www.sqlite.org/lang_analyze.html
|
16
45
|
|
17
|
-
|
46
|
+
### Bug Fixes
|
18
47
|
|
19
48
|
* The C coded generated by gen_constants.rb was updated to support older
|
20
49
|
compilers [github issue #8] (patch from josb)
|
21
50
|
* Fix 'amalgalite-pack --self' on ruby 1.9
|
22
51
|
|
23
|
-
|
52
|
+
## Version 1.0.0 - 2011-01-16
|
24
53
|
|
25
|
-
|
54
|
+
### Enhancements
|
26
55
|
|
27
56
|
* Update to 1.0.0
|
28
57
|
* Update to SQLite 3.7.4
|
29
58
|
* Update all runtime and development dependencies to the latest version
|
30
59
|
|
31
|
-
|
60
|
+
### Bug Fixes
|
32
61
|
|
33
62
|
* Fix FasterCSV/CSV compatibility issues with ruby 1.8/1.9 [github issue #4]
|
34
63
|
* Fix building issues for Ruby 1.9 [gitHub issue #5]
|
35
64
|
* Fix cross compilation problems when using rvm
|
36
65
|
|
37
|
-
|
66
|
+
## Version 0.15.0 - 2010-10-30
|
38
67
|
|
39
|
-
|
68
|
+
### Enhancements
|
40
69
|
|
41
70
|
* Update to sqlite 3.7.3
|
42
71
|
* Added Database#import_csv_to_table
|
43
72
|
* Added MemoryDatabase class
|
44
73
|
|
45
|
-
|
74
|
+
### Bug Fixes
|
46
75
|
|
47
76
|
* Unable to run specs from gem [GH Issue #3]
|
48
77
|
|
49
|
-
|
78
|
+
## Version 0.12.1 - 2010-02-17
|
50
79
|
|
51
|
-
|
80
|
+
### Enhancements
|
52
81
|
|
53
82
|
* Update to sqlite 3.6.22
|
54
83
|
|
55
|
-
|
84
|
+
## Version 0.12.0 - 2009-10-29
|
56
85
|
|
57
|
-
|
86
|
+
### Enhancements
|
58
87
|
|
59
88
|
* Update to sqlite 3.6.19
|
60
89
|
|
61
|
-
|
90
|
+
### Bug Fixes
|
62
91
|
|
63
92
|
* Improve detection of schema changes
|
64
93
|
* Add missing development dependencies
|
@@ -67,131 +96,131 @@
|
|
67
96
|
* Fix tracking of highwater memory usage
|
68
97
|
* Fix testing interruptability of sqlite3 commands
|
69
98
|
|
70
|
-
|
99
|
+
## Version 0.11.0 - 2009-08-23
|
71
100
|
|
72
|
-
|
101
|
+
### Enhancements
|
73
102
|
|
74
103
|
* Update to SQLite 3.6.17
|
75
104
|
|
76
|
-
|
105
|
+
### Bug Fixes
|
77
106
|
|
78
107
|
* Add compiletime vs. runtime library checking.
|
79
108
|
* Fix missing datatypes to typemap (reported by Jay Godse)
|
80
109
|
|
81
|
-
|
110
|
+
## Version 0.10.2 - 2009-08-10
|
82
111
|
|
83
|
-
|
112
|
+
### Bug Fixes
|
84
113
|
|
85
114
|
* Statement#execute was not expanding an Array passed in to the positional
|
86
115
|
#bind parameters (reported by Steven Harris).
|
87
116
|
|
88
|
-
|
117
|
+
## Version 0.10.1 - 2009-08-01
|
89
118
|
|
90
|
-
|
119
|
+
### Enhancements
|
91
120
|
|
92
121
|
* Add version subdirectory for extension on all platforms for building locally
|
93
122
|
on gem install.
|
94
123
|
* Add gem for x86-ming32 platform
|
95
124
|
* Add specs to validate the R*Tree index is compiled correctly
|
96
125
|
|
97
|
-
|
126
|
+
### Bug Fixes
|
98
127
|
|
99
128
|
* Small documentation change for Amalgalite::Database#new
|
100
129
|
|
101
|
-
|
130
|
+
## Version 0.10.0 - 2009-06-28
|
102
131
|
|
103
|
-
|
132
|
+
### Enhancements
|
104
133
|
|
105
134
|
* windows gem is now a fat binary to support installing into ruby 1.8 and 1.9
|
106
135
|
from the same gem
|
107
136
|
* Update to Sqlite 3.6.16 and fix errors returned by define_aggregate and
|
108
137
|
define_function based upon update
|
109
138
|
|
110
|
-
|
139
|
+
## Version 0.9.0 - 2009-04-05
|
111
140
|
|
112
|
-
|
141
|
+
### Enhancements
|
113
142
|
|
114
143
|
* Ruby 1.9 compatibility
|
115
144
|
* Update to SQLite 3.6.12
|
116
145
|
* Added support for the new SQLite Backup API, see Amalgalite::Database#replicate_to
|
117
146
|
* Added exclusive/immediate/deferred transaction helpers
|
118
147
|
|
119
|
-
|
148
|
+
## Version 0.8.0 - 2009-03-23
|
120
149
|
|
121
|
-
|
150
|
+
### Enhancements
|
122
151
|
|
123
152
|
* Add in support for obtaining limited schema information on temporary tables
|
124
153
|
and indexes
|
125
154
|
* Add support for returning the primary key columns of a table
|
126
155
|
* Other miscellaneous items to support the ActiveRecord adapter
|
127
156
|
|
128
|
-
|
157
|
+
## Version 0.7.7 - 2009-03-03
|
129
158
|
|
130
|
-
|
159
|
+
### Bug Fixes
|
131
160
|
|
132
161
|
* roll back to SQLite 3.6.10 because of substr() bug in 3.6.11
|
133
162
|
|
134
|
-
|
163
|
+
## Version 0.7.6 - 2009-03-02
|
135
164
|
|
136
|
-
|
165
|
+
### Enhancements
|
137
166
|
|
138
167
|
* Update to SQLite 3.6.11
|
139
168
|
|
140
|
-
|
169
|
+
### Bug Fixes
|
141
170
|
|
142
171
|
* fix issues with the wrong error message appearing in statement closing
|
143
172
|
* incorrectly raise an exception if a transaction is started when rescuing an
|
144
173
|
exception [reported by James Edwared Gray II]
|
145
174
|
|
146
|
-
|
175
|
+
## Version 0.7.5 - 2009-02-12
|
147
176
|
|
148
|
-
|
177
|
+
### Bug Fixes
|
149
178
|
|
150
179
|
* another ruby -w pass to clear up warnings
|
151
180
|
* force all tests to run with -w turned on
|
152
181
|
|
153
|
-
|
182
|
+
## Version 0.7.4 - 2009-02-08
|
154
183
|
|
155
|
-
|
184
|
+
### Bug Fixes
|
156
185
|
|
157
186
|
* fix Database#first_row_from not behaving the same as Database#execute() when
|
158
187
|
there are no results. [reported by James Edward Gray II]
|
159
188
|
|
160
|
-
|
189
|
+
## Version 0.7.3 - 2009-02-08
|
161
190
|
|
162
|
-
|
191
|
+
### Enhancements
|
163
192
|
|
164
193
|
* added Database#first_row_from
|
165
194
|
* added Database#first_value_from
|
166
195
|
|
167
|
-
|
196
|
+
### Bug Fixes
|
168
197
|
|
169
198
|
* clean up ruby warnings when run with -w
|
170
199
|
* fix documenation on Database#execute
|
171
200
|
|
172
|
-
|
173
|
-
|
201
|
+
## Version 0.7.2 - 2009-01-24
|
202
|
+
### Enhancements
|
174
203
|
|
175
204
|
* added quoting and escaping of text support, used for database drivers
|
176
205
|
* added ability to access columns of the schame in original definition order
|
177
206
|
|
178
|
-
|
207
|
+
## Version 0.7.1 - 2009-01-18
|
179
208
|
|
180
|
-
|
209
|
+
### Enhancements
|
181
210
|
|
182
211
|
* added support for sqlite's nexted transactions which appeared in sqlite
|
183
212
|
* update to SQLite version 3.6.10
|
184
213
|
* added ability to set the SQLite temporary directory
|
185
214
|
* added amalgalite-pack --require-order
|
186
215
|
|
187
|
-
|
216
|
+
### Bug Fixes
|
188
217
|
|
189
218
|
* fix exception when accessing the special 'rowid' column
|
190
219
|
* fix internal require order list for use in packing
|
191
220
|
|
192
|
-
|
221
|
+
## Version 0.6.0 - 2009-01-10
|
193
222
|
|
194
|
-
|
223
|
+
### Enhancements
|
195
224
|
|
196
225
|
* Added ability to define custom SQL functions implemented in Ruby
|
197
226
|
* Added ability to define custom SQL aggregates implemented in Ruby
|
@@ -200,37 +229,37 @@
|
|
200
229
|
* Added support for Ruby progress handlers
|
201
230
|
* update to SQLite version 3.6.7
|
202
231
|
|
203
|
-
|
232
|
+
## Version 0.5.1 - 2008-11-30
|
204
233
|
|
205
|
-
|
234
|
+
### Enhancements
|
206
235
|
|
207
236
|
* update to SQLite version 3.6.6.2
|
208
237
|
|
209
|
-
|
238
|
+
## Version 0.5.0 - 2008-11-16
|
210
239
|
|
211
|
-
|
240
|
+
### Enhancements
|
212
241
|
|
213
242
|
* amalgalite-pack-into-db has been reworked into amalgalite-pack
|
214
243
|
* ruby code that is packed into a database for later requiring can now be
|
215
244
|
compressed
|
216
245
|
* update to SQLite version 3.6.5
|
217
246
|
|
218
|
-
|
247
|
+
## Version 0.4.2 - 2008-10-12
|
219
248
|
|
220
|
-
|
249
|
+
### Enhancements
|
221
250
|
|
222
251
|
* release of windows gem
|
223
252
|
|
224
|
-
|
253
|
+
## Version 0.4.1 - 2008-09-28
|
225
254
|
|
226
|
-
|
255
|
+
### Enhancements
|
227
256
|
|
228
257
|
* update to SQLite3 version 3.6.3
|
229
258
|
* change rdoc template to darkfish
|
230
259
|
|
231
|
-
|
260
|
+
## Version 0.4.0 - 2008-09-14
|
232
261
|
|
233
|
-
|
262
|
+
### Enhancements
|
234
263
|
* update to SQLite3 version 3.6.2 and enable the RTree option by default
|
235
264
|
* Amalgalite::Requires module allowing ruby code to be 'required' from columns in an SQLite database
|
236
265
|
* Amagalite::Requires::Bootstrap extension module enabling low level boot
|
@@ -238,7 +267,7 @@
|
|
238
267
|
* more indepth information about indexes is available via the Index class
|
239
268
|
* add support for sqlite3_status and sqlite3_db_status information
|
240
269
|
|
241
|
-
|
270
|
+
### Bugfixes
|
242
271
|
|
243
272
|
* fix nil exception when using a declared_data_type on primary key column that
|
244
273
|
has no declared_data_type
|
@@ -250,43 +279,43 @@
|
|
250
279
|
* raise LoadError if required in the same program as sqlite3-ruby. These
|
251
280
|
libraries conflict with each other.
|
252
281
|
|
253
|
-
|
282
|
+
## Version 0.2.4 - 2008-07-13
|
254
283
|
|
255
|
-
|
284
|
+
### Bugfixes
|
256
285
|
* fix compilation when ruby is compiled without pthreads using
|
257
286
|
|
258
|
-
|
287
|
+
## Version 0.2.3 - 2008-07-12
|
259
288
|
|
260
|
-
|
289
|
+
### Bugfixes
|
261
290
|
* make sure file permissions are all read before shipping gem
|
262
291
|
|
263
|
-
|
292
|
+
## Version 0.2.2 - 2008-07-12
|
264
293
|
|
265
|
-
|
294
|
+
### Bugfixes
|
266
295
|
* Database#pragma should accept a block just like Database#execute does
|
267
296
|
* convert to using extconf.rb instead of mkrf to enable compilation as a
|
268
297
|
direct ruby extension in the ruby source tree
|
269
298
|
|
270
|
-
|
299
|
+
## Version 0.2.1 - 2008-07-05
|
271
300
|
|
272
|
-
|
301
|
+
### Bugfixes
|
273
302
|
* make sure that the pthread support in sqlite3 matches that of ruby
|
274
303
|
* fix schema reloading in the example scripts
|
275
304
|
|
276
|
-
|
305
|
+
## Version 0.2.0 - 2008-07-04
|
277
306
|
|
278
|
-
|
307
|
+
### Enhancements
|
279
308
|
* blob support, both incremental access and normal access
|
280
309
|
* added examples/gem_db.rb script demonstrating taps and prepared statements
|
281
310
|
* added examples/schema-info.rb script demonstrating meta information
|
282
311
|
* added examples/blob.rb demonstrating incremental blob IO
|
283
312
|
* added access to the SQLite3 errcode and errmsg api
|
284
313
|
|
285
|
-
|
314
|
+
### Bugfixes
|
286
315
|
* added taps.rb for requiring
|
287
316
|
* fixed prepared statement reset
|
288
317
|
* caught an error in executing prepared statements earlier in the process so the correct error is reported
|
289
318
|
|
290
|
-
|
319
|
+
## Version 0.1.0 - 2008-06-21
|
291
320
|
|
292
321
|
* Initial public release
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2008
|
1
|
+
Copyright (c) 2008-2012 Jeremy Hinegardner
|
2
2
|
|
3
3
|
All rights reserved.
|
4
4
|
|
@@ -11,7 +11,7 @@ modification, are permitted provided that the following conditions are met:
|
|
11
11
|
* Redistributions in binary form must reproduce the above copyright notice,
|
12
12
|
this list of conditions and the following disclaimer in the documentation
|
13
13
|
and/or other materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
* Neither the name of Jeremy Hinegardner nor the names of its contributors
|
16
16
|
may be used to endorse or promote products derived from this software without
|
17
17
|
specific prior written permission.
|