sqlite3 1.3.12-x64-mingw32 → 1.5.0.rc2-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +5 -5
  2. data/.gemtest +0 -0
  3. data/{API_CHANGES.rdoc → API_CHANGES.md} +3 -4
  4. data/CHANGELOG.md +425 -0
  5. data/CONTRIBUTING.md +24 -0
  6. data/Gemfile +2 -14
  7. data/LICENSE-DEPENDENCIES +20 -0
  8. data/README.md +233 -0
  9. data/ext/sqlite3/aggregator.c +273 -0
  10. data/ext/sqlite3/aggregator.h +12 -0
  11. data/ext/sqlite3/database.c +171 -206
  12. data/ext/sqlite3/database.h +2 -0
  13. data/ext/sqlite3/exception.c +6 -2
  14. data/ext/sqlite3/extconf.rb +236 -55
  15. data/ext/sqlite3/sqlite3.c +12 -1
  16. data/ext/sqlite3/sqlite3_ruby.h +3 -7
  17. data/ext/sqlite3/statement.c +15 -20
  18. data/faq/faq.md +431 -0
  19. data/faq/faq.yml +1 -1
  20. data/lib/sqlite3/2.6/sqlite3_native.so +0 -0
  21. data/lib/sqlite3/2.7/sqlite3_native.so +0 -0
  22. data/lib/sqlite3/3.0/sqlite3_native.so +0 -0
  23. data/lib/sqlite3/constants.rb +2 -1
  24. data/lib/sqlite3/database.rb +202 -52
  25. data/lib/sqlite3/errors.rb +1 -10
  26. data/lib/sqlite3/pragmas.rb +17 -19
  27. data/lib/sqlite3/resultset.rb +2 -10
  28. data/lib/sqlite3/statement.rb +2 -1
  29. data/lib/sqlite3/translator.rb +1 -1
  30. data/lib/sqlite3/version.rb +4 -4
  31. data/test/helper.rb +9 -0
  32. data/test/test_database.rb +127 -11
  33. data/test/test_database_flags.rb +95 -0
  34. data/test/test_database_readwrite.rb +41 -0
  35. data/test/test_integration.rb +12 -81
  36. data/test/test_integration_aggregate.rb +336 -0
  37. data/test/test_integration_resultset.rb +0 -17
  38. data/test/test_sqlite3.rb +9 -0
  39. data/test/test_statement.rb +12 -9
  40. metadata +55 -85
  41. data/CHANGELOG.rdoc +0 -292
  42. data/Manifest.txt +0 -52
  43. data/README.rdoc +0 -118
  44. data/Rakefile +0 -10
  45. data/lib/sqlite3/2.0/sqlite3_native.so +0 -0
  46. data/lib/sqlite3/2.1/sqlite3_native.so +0 -0
  47. data/lib/sqlite3/2.2/sqlite3_native.so +0 -0
  48. data/lib/sqlite3/2.3/sqlite3_native.so +0 -0
  49. data/setup.rb +0 -1333
  50. data/tasks/faq.rake +0 -9
  51. data/tasks/gem.rake +0 -38
  52. data/tasks/native.rake +0 -52
  53. data/tasks/vendor_sqlite3.rake +0 -97
data/CHANGELOG.rdoc DELETED
@@ -1,292 +0,0 @@
1
- === 1.3.12
2
-
3
- * Bugfixes:
4
- * OS X install will default to homebrew if available. Fixes #195
5
-
6
- === 1.3.11 / 2015-10-10
7
-
8
- * Enhancements:
9
- * Windows: build against SQLite 3.8.11.1
10
-
11
- * Internal:
12
- * Use rake-compiler-dock to build Windows binaries. Pull #159 [larskanis]
13
- * Expand Ruby versions being tested for Travis and AppVeyor
14
-
15
- === 1.3.10 / 2014-10-30
16
-
17
- * Enhancements:
18
- * Windows: build against SQLite 3.8.6. Closes #135 [Hubro]
19
-
20
- === 1.3.9 / 2014-02-25
21
-
22
- * Bugfixes:
23
- * Reset exception message. Closes #80
24
- * Reduce warnings due unused pointers. Closes #89
25
- * Add BSD-3 license reference to gemspec. Refs #99 and #106
26
-
27
- === 1.3.8 / 2013-08-17
28
-
29
- * Enhancements:
30
- * Windows: build against SQLite 3.7.17
31
-
32
- * Bugfixes:
33
- * Reset exception message. Closes #80
34
- * Correctly convert BLOB values to Ruby. Closes #65
35
- * Add MIT license reference to gemspec. Closes #99
36
- * Remove unused pointer. Closes #89
37
-
38
- * Internal:
39
- * Backport improvements in cross compilation for Windows
40
- * Use of Minitest for internal tests
41
- * Use Gemfile (generated by Hoe) to deal with dependencies
42
- * Cleanup Travis CI
43
-
44
- === 1.3.7 / 2013-01-11
45
-
46
- * Bugfixes
47
- * Closing a bad statement twice will not segv.
48
- * Aggregate handlers are initialized on each query. Closes #44
49
-
50
- * Internal
51
- * Unset environment variables that could affect cross compilation.
52
-
53
- === 1.3.6 / 2012-04-16
54
-
55
- * Enhancements
56
- * Windows: build against SQLite 3.7.11
57
- * Added SQLite3::ResultSet#each_hash for fetching each row as a hash.
58
- * Added SQLite3::ResultSet#next_hash for fetching one row as a hash.
59
-
60
- * Bugfixes
61
- * Support both UTF-16LE and UTF-16BE encoding modes on PPC. Closes #63
62
- * Protect parameters to custom functions from being garbage collected too
63
- soon. Fixes #60. Thanks hirataya!
64
- * Fix backwards compatibility with 1.2.5 with bind vars and `query` method.
65
- Fixes #35.
66
- * Fix double definition error caused by defining sqlite3_int64/uint64.
67
- * Fix suspicious version regexp.
68
-
69
- * Deprecations
70
- * ArrayWithTypesAndFields#types is deprecated and the class will be removed
71
- in version 2.0.0. Please use the `types` method on the ResultSet class
72
- that created this object.
73
- * ArrayWithTypesAndFields#fields is deprecated and the class will be removed
74
- in version 2.0.0. Please use the `columns` method on the ResultSet class
75
- that created this object.
76
- * The ArrayWithTypesAndFields class will be removed in 2.0.0
77
- * The ArrayWithTypes class will be removed in 2.0.0
78
- * HashWithTypesAndFields#types is deprecated and the class will be removed
79
- in version 2.0.0. Please use the `types` method on the ResultSet class
80
- that created this object.
81
- * HashWithTypesAndFields#fields is deprecated and the class will be removed
82
- in version 2.0.0. Please use the `columns` method on the ResultSet class
83
- that created this object.
84
-
85
- === 1.3.5 / 2011-12-03 - ZOMG Holidays are here Edition!
86
-
87
- * Enhancements
88
- * Windows: build against SQLite 3.7.9
89
- * Static: enable SQLITE_ENABLE_COLUMN_METADATA
90
- * Added Statement#clear_bindings! to set bindings back to nil
91
-
92
- * Bugfixes
93
- * Fixed a segv on Database.new. Fixes #34 (thanks nobu!)
94
- * Database error is not reset, so don't check it in Statement#reset!
95
- * Remove conditional around Bignum statement bindings.
96
- Fixes #52. Fixes #56. Thank you Evgeny Myasishchev.
97
-
98
- * Internal
99
- * Use proper endianness when testing database connection with UTF-16.
100
- Fixes #40. Fixes #51
101
- * Use -fPIC for static compilation when host is x86_64.
102
-
103
- === 1.3.4 / 2011-07-25
104
-
105
- * Enhancements:
106
- * Windows: build against SQLite 3.7.7.1
107
- * Windows: build static binaries that do not depend on sqlite3.dll be
108
- installed anymore
109
-
110
- * Bugfixes
111
- * Backup API is conditionaly required so that older libsqlite3 can be used.
112
- Thanks Hongli Lai.
113
- * Fixed segmentation fault when nil is passed to SQLite3::Statement.new
114
- * Fix extconf's hardcoded path that affected installation on certain systems.
115
-
116
- === 1.3.3 / 2010-01-16
117
-
118
- * Bugfixes
119
- * Abort on installation if sqlite3_backup_init is missing. Fixes #19
120
- * Gem has been renamed to 'sqlite3'. Please use `gem install sqlite3`
121
-
122
- === 1.3.2 / 2010-10-30 / RubyConf Uruguay Edition!
123
-
124
- * Enhancements:
125
- * Windows: build against 3.7.3 version of SQLite3
126
- * SQLite3::Database can now be open as readonly
127
-
128
- db = SQLite3::Database.new('my.db', :readonly => true)
129
-
130
- * Added SQLite3::SQLITE_VERSION and SQLite3::SQLITE_VERSION_NUMBER [nurse]
131
-
132
- * Bugfixes
133
- * type_translation= works along with Database#execute and a block
134
- * defined functions are kept in a hash to prevent GC. #7
135
- * Removed GCC specific flags from extconf.
136
-
137
- * DEPRECATIONS
138
- * SQLite3::Database#type_translation= will be deprecated in the future with
139
- no replacement.
140
- * SQlite3::Version will be deprecated in 2.0.0 with SQLite3::VERSION as the
141
- replacement.
142
-
143
- === 1.3.1 / 2010-07-09
144
-
145
- * Enhancements
146
- * Custom collations may be defined using SQLite3::Database#collation
147
-
148
- * Bugfixes
149
- * Statements returning 0 columns are automatically stepped. [RF #28308]
150
- * SQLite3::Database#encoding works on 1.8 and 1.9
151
-
152
- === 1.3.0 / 2010-06-06
153
-
154
- * Enhancements
155
- * Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
156
- See API_CHANGES document for details.
157
- This closes: Bug #27300, Bug #27241, Patch #16020
158
- * Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
159
- * Added support for type translations [tenderlove]
160
-
161
- @db.translator.add_translator('sometime') do |type, thing|
162
- 'output' # this will be returned as value for that column
163
- end
164
-
165
- * Experimental
166
- * Added API to access and load extensions. [kashif]
167
- These functions maps directly into SQLite3 own enable_load_extension()
168
- and load_extension() C-API functions. See SQLite3::Database API documentation for details.
169
- This closes: Patches #9178
170
-
171
- * Bugfixes
172
- * Corrected gem dependencies (runtime and development)
173
- * Fixed threaded tests [Alexey Borzenkov]
174
- * Removed GitHub gemspec
175
- * Fixed "No definition for" warnings from RDoc
176
- * Generate zip and tgz files for releases
177
- * Added Luis Lavena as gem Author (maintainer)
178
- * Prevent mkmf interfere with Mighty Snow Leopard
179
- * Allow extension compilation search for common lib paths [kashif]
180
- (lookup /usr/local, /opt/local and /usr)
181
- * Corrected extension compilation under MSVC [romuloceccon]
182
- * Define load_extension functionality based on availability [tenderlove]
183
- * Deprecation notices for Database#query. Fixes RF #28192
184
-
185
- === 1.3.0.beta.2 / 2010-05-15
186
-
187
- * Enhancements
188
- * Added support for type translations [tenderlove]
189
-
190
- @db.translator.add_translator('sometime') do |type, thing|
191
- 'output' # this will be returned as value for that column
192
- end
193
-
194
- * Bugfixes
195
- * Allow extension compilation search for common lib paths [kashif]
196
- (lookup /usr/local, /opt/local and /usr)
197
- * Corrected extension compilation under MSVC [romuloceccon]
198
- * Define load_extension functionality based on availability [tenderlove]
199
- * Deprecation notices for Database#query. Fixes RF #28192
200
-
201
- === 1.3.0.beta.1 / 2010-05-10
202
-
203
- * Enhancements
204
- * Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
205
- See API_CHANGES document for details.
206
- This closes: Bug #27300, Bug #27241, Patch #16020
207
- * Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
208
-
209
- * Experimental
210
- * Added API to access and load extensions. [kashif]
211
- These functions maps directly into SQLite3 own enable_load_extension()
212
- and load_extension() C-API functions. See SQLite3::Database API documentation for details.
213
- This closes: Patches #9178
214
-
215
- * Bugfixes
216
- * Corrected gem dependencies (runtime and development)
217
- * Fixed threaded tests [Alexey Borzenkov]
218
- * Removed GitHub gemspec
219
- * Fixed "No definition for" warnings from RDoc
220
- * Generate zip and tgz files for releases
221
- * Added Luis Lavena as gem Author (maintainer)
222
- * Prevent mkmf interfere with Mighty Snow Leopard
223
-
224
- === 1.2.5 / 25 Jul 2009
225
-
226
- * Check for illegal nil before executing SQL [Erik Veenstra]
227
- * Switch to Hoe for gem task management and packaging.
228
- * Advertise rake-compiler as development dependency.
229
- * Build gem binaries for Windows.
230
- * Improved Ruby 1.9 support compatibility.
231
- * Taint returned values. Patch #20325.
232
- * Database.open and Database.new now take an optional block [Gerrit Kaiser]
233
-
234
-
235
- === 1.2.4.1 (internal) / 5 Jul 2009
236
-
237
- * Check for illegal nil before executing SQL [Erik Veenstra]
238
- * Switch to Hoe for gem task management and packaging.
239
- * Advertise rake-compiler as development dependency.
240
- * Build gem binaries for Windows.
241
- * Improved Ruby 1.9 support compatibility.
242
-
243
-
244
- === 1.2.4 / 27 Aug 2008
245
-
246
- * Package the updated C file for source builds. [Jamis Buck]
247
-
248
-
249
- === 1.2.3 / 26 Aug 2008
250
-
251
- * Fix incorrect permissions on database.rb and translator.rb [Various]
252
-
253
- * Avoid using Object#extend for greater speedups [Erik Veenstra]
254
-
255
- * Ruby 1.9 compatibility tweaks for Array#zip [jimmy88@gmail.com]
256
-
257
- * Fix linking against Ruby 1.8.5 [Rob Holland <rob@inversepath.com>]
258
-
259
-
260
- === 1.2.2 / 31 May 2008
261
-
262
- * Make the table_info method adjust the returned default value for the rows
263
- so that the sqlite3 change in 3.3.8 and greater can be handled
264
- transparently [Jamis Buck <jamis@37signals.com>]
265
-
266
- * Ruby 1.9 compatibility tweaks [Roman Le Negrate <roman2k@free.fr>]
267
-
268
- * Various performance enhancements [thanks Erik Veenstra]
269
-
270
- * Correct busy_handler documentation [Rob Holland <rob@inversepath.com>]
271
-
272
- * Use int_bind64 on Fixnum values larger than a 32bit C int can take. [Rob Holland <rob@inversepath.com>]
273
-
274
- * Work around a quirk in SQLite's error reporting by calling sqlite3_reset
275
- to produce a more informative error code upon a failure from
276
- sqlite3_step. [Rob Holland <rob@inversepath.com>]
277
-
278
- * Various documentation, test, and style tweaks [Rob Holland <rob@inversepath.com>]
279
-
280
- * Be more granular with time/data translation [Rob Holland <rob@inversepath.com>]
281
-
282
- * Use Date directly for parsing rather than going via Time [Rob Holland <rob@inversepath.com>]
283
-
284
- * Check for the rt library and fdatasync so we link against that when
285
- needed [Rob Holland <rob@inversepath.com>]
286
-
287
- * Rename data structures to avoid collision on win32. based on patch
288
- by: Luis Lavena [Rob Holland <rob@inversepath.com>]
289
-
290
- * Add test for defaults [Daniel Rodríguez Troitiño]
291
-
292
- * Correctly unquote double-quoted pragma defaults [Łukasz Dargiewicz <lukasz.dargiewicz@gmail.com>]
data/Manifest.txt DELETED
@@ -1,52 +0,0 @@
1
- API_CHANGES.rdoc
2
- CHANGELOG.rdoc
3
- ChangeLog.cvs
4
- Gemfile
5
- LICENSE
6
- Manifest.txt
7
- README.rdoc
8
- Rakefile
9
- ext/sqlite3/backup.c
10
- ext/sqlite3/backup.h
11
- ext/sqlite3/database.c
12
- ext/sqlite3/database.h
13
- ext/sqlite3/exception.c
14
- ext/sqlite3/exception.h
15
- ext/sqlite3/extconf.rb
16
- ext/sqlite3/sqlite3.c
17
- ext/sqlite3/sqlite3_ruby.h
18
- ext/sqlite3/statement.c
19
- ext/sqlite3/statement.h
20
- faq/faq.rb
21
- faq/faq.yml
22
- lib/sqlite3.rb
23
- lib/sqlite3/constants.rb
24
- lib/sqlite3/database.rb
25
- lib/sqlite3/errors.rb
26
- lib/sqlite3/pragmas.rb
27
- lib/sqlite3/resultset.rb
28
- lib/sqlite3/statement.rb
29
- lib/sqlite3/translator.rb
30
- lib/sqlite3/value.rb
31
- lib/sqlite3/version.rb
32
- setup.rb
33
- tasks/faq.rake
34
- tasks/gem.rake
35
- tasks/native.rake
36
- tasks/vendor_sqlite3.rake
37
- test/helper.rb
38
- test/test_backup.rb
39
- test/test_collation.rb
40
- test/test_database.rb
41
- test/test_database_readonly.rb
42
- test/test_deprecated.rb
43
- test/test_encoding.rb
44
- test/test_integration.rb
45
- test/test_integration_open_close.rb
46
- test/test_integration_pending.rb
47
- test/test_integration_resultset.rb
48
- test/test_integration_statement.rb
49
- test/test_result_set.rb
50
- test/test_sqlite3.rb
51
- test/test_statement.rb
52
- test/test_statement_execute.rb
data/README.rdoc DELETED
@@ -1,118 +0,0 @@
1
- = SQLite3/Ruby Interface
2
-
3
- * https://github.com/sparklemotion/sqlite3-ruby
4
- * http://groups.google.com/group/sqlite3-ruby
5
- * http://rubygems.org/gems/sqlite3
6
- * http://www.rubydoc.info/gems/sqlite3/frames
7
-
8
- {<img src="https://travis-ci.org/sparklemotion/sqlite3-ruby.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/sparklemotion/sqlite3-ruby]
9
-
10
- == DESCRIPTION
11
-
12
- This module allows Ruby programs to interface with the SQLite3
13
- database engine (http://www.sqlite.org). You must have the
14
- SQLite engine installed in order to build this module.
15
-
16
- Note that this module is only compatible with SQLite 3.6.16 or newer.
17
-
18
- == SYNOPSIS
19
-
20
- require "sqlite3"
21
-
22
- # Open a database
23
- db = SQLite3::Database.new "test.db"
24
-
25
- # Create a table
26
- rows = db.execute <<-SQL
27
- create table numbers (
28
- name varchar(30),
29
- val int
30
- );
31
- SQL
32
-
33
- # Execute a few inserts
34
- {
35
- "one" => 1,
36
- "two" => 2,
37
- }.each do |pair|
38
- db.execute "insert into numbers values ( ?, ? )", pair
39
- end
40
-
41
- # Find a few rows
42
- db.execute( "select * from numbers" ) do |row|
43
- p row
44
- end
45
-
46
- # Create another table with multiple columns
47
-
48
- db.execute <<-SQL
49
- create table students (
50
- name varchar(50),
51
- email varchar(50),
52
- grade varchar(5),
53
- blog varchar(50)
54
- );
55
- SQL
56
-
57
- # Execute inserts with parameter markers
58
- db.execute("INSERT INTO students (name, email, grade, blog)
59
- VALUES (?, ?, ?, ?)", ["Jane", "me@janedoe.com", "A", "http://blog.janedoe.com"])
60
-
61
- db.execute( "select * from students" ) do |row|
62
- p row
63
- end
64
-
65
-
66
- == Compilation and Installation
67
-
68
- Install SQLite3, enabling the option SQLITE_ENABLE_COLUMN_METADATA (see
69
- www.sqlite.org/compile.html for details).
70
-
71
- Then do the following:
72
-
73
- ruby setup.rb config
74
- ruby setup.rb setup
75
- ruby setup.rb install
76
-
77
- Alternatively, you can download and install the RubyGem package for
78
- SQLite3/Ruby (you must have RubyGems and SQLite3 installed, first):
79
-
80
- gem install sqlite3
81
-
82
- If you have sqlite3 installed in a non-standard location, you can specify the location of the include and lib files by doing:
83
-
84
- gem install sqlite3 -- --with-sqlite3-include=/opt/local/include \
85
- --with-sqlite3-lib=/opt/local/lib
86
-
87
- = SUPPORT!!!
88
-
89
- == OMG! Something has gone wrong! Where do I get help?
90
-
91
- The best place to get help is from the
92
- {sqlite3-ruby mailing list}[http://groups.google.com/group/sqlite3-ruby] which
93
- can be found here:
94
-
95
- * http://groups.google.com/group/sqlite3-ruby
96
-
97
- == I've found a bug! Where do I file it?
98
-
99
- Uh oh. After contacting the mailing list, you've found that you've actually
100
- discovered a bug. You can file the bug at the
101
- {github issues page}[https://github.com/sparklemotion/sqlite3-ruby/issues]
102
- which can be found here:
103
-
104
- * https://github.com/sparklemotion/sqlite3-ruby/issues
105
-
106
- == Usage
107
-
108
- For help figuring out the SQLite3/Ruby interface, check out the
109
- SYNOPSIS as well as the RDoc. It includes examples of
110
- usage. If you have any questions that you feel should be address in the
111
- FAQ, please send them to {the mailing list}[http://groups.google.com/group/sqlite3-ruby]
112
-
113
- == Source Code
114
-
115
- The source repository is accessible via git:
116
-
117
- git clone git://github.com/sparklemotion/sqlite3-ruby.git
118
-
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- #
2
- # NOTE: Keep this file clean.
3
- # Add your customizations inside tasks directory.
4
- # Thank You.
5
- #
6
-
7
- # load rakefile extensions (tasks)
8
- Dir['tasks/*.rake'].sort.each { |f| load f }
9
-
10
- # vim: syntax=ruby
Binary file
Binary file
Binary file
Binary file