amalgalite 1.4.1-x86-mingw32 → 1.7.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +5 -5
  2. data/CONTRIBUTING.md +11 -0
  3. data/HISTORY.md +45 -0
  4. data/LICENSE +2 -0
  5. data/Manifest.txt +2 -1
  6. data/README.md +10 -14
  7. data/Rakefile +5 -5
  8. data/examples/fts5.rb +152 -0
  9. data/ext/amalgalite/c/amalgalite.c +26 -0
  10. data/ext/amalgalite/c/amalgalite_constants.c +1110 -56
  11. data/ext/amalgalite/c/amalgalite_database.c +80 -70
  12. data/ext/amalgalite/c/extconf.rb +31 -4
  13. data/ext/amalgalite/c/gen_constants.rb +313 -153
  14. data/ext/amalgalite/c/sqlite3.c +103967 -33836
  15. data/ext/amalgalite/c/sqlite3.h +5438 -1061
  16. data/ext/amalgalite/c/sqlite3ext.h +148 -12
  17. data/lib/amalgalite/2.2/amalgalite.so +0 -0
  18. data/lib/amalgalite/2.3/amalgalite.so +0 -0
  19. data/lib/amalgalite/2.4/amalgalite.so +0 -0
  20. data/lib/amalgalite/2.5/amalgalite.so +0 -0
  21. data/lib/amalgalite/2.6/amalgalite.so +0 -0
  22. data/lib/amalgalite/aggregate.rb +6 -0
  23. data/lib/amalgalite/csv_table_importer.rb +1 -1
  24. data/lib/amalgalite/database.rb +2 -53
  25. data/lib/amalgalite/profile_tap.rb +2 -2
  26. data/lib/amalgalite/statement.rb +5 -2
  27. data/lib/amalgalite/taps/io.rb +5 -2
  28. data/lib/amalgalite/trace_tap.rb +1 -1
  29. data/lib/amalgalite/type_maps/default_map.rb +2 -2
  30. data/lib/amalgalite/type_maps/storage_map.rb +1 -1
  31. data/lib/amalgalite/version.rb +1 -1
  32. data/spec/aggregate_spec.rb +4 -0
  33. data/spec/database_spec.rb +12 -15
  34. data/spec/default_map_spec.rb +1 -1
  35. data/spec/integeration_spec.rb +2 -2
  36. data/spec/json_spec.rb +24 -0
  37. data/spec/sqlite3/version_spec.rb +15 -9
  38. data/spec/storage_map_spec.rb +1 -1
  39. data/tasks/default.rake +3 -10
  40. data/tasks/extension.rake +4 -4
  41. data/tasks/this.rb +7 -5
  42. metadata +33 -25
  43. data/examples/fts3.rb +0 -144
  44. data/lib/amalgalite/1.8/amalgalite.so +0 -0
  45. data/lib/amalgalite/1.9/amalgalite.so +0 -0
  46. data/lib/amalgalite/2.0/amalgalite.so +0 -0
  47. data/lib/amalgalite/2.1/amalgalite.so +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0d44f0fbc6657bd70997a3e4dc9f311abda5ad79
4
- data.tar.gz: ebb1291022da4094e6d08d624c572c718a28ae89
2
+ SHA256:
3
+ metadata.gz: 6860e818e8bcbc729061035834f7cd52eb8f29c12cd522705ab9a382102c73bd
4
+ data.tar.gz: cbbb6ec1498fe7ddadd8aa7d96beb5b86c70686e0745b3ecd05da0e2b53bd3bd
5
5
  SHA512:
6
- metadata.gz: 3e6989c8f5522cc2f41fa82713a66dbc845d51fa8db4f8f6f767e675637b95542ea6976ef5729ef417883b98ff6c89bac4a506e01043ea1461268f069ea36ef8
7
- data.tar.gz: 04f18489a97cf10e5b6f7d18d536e19d88fbd7501f91dee8a23192cf70f8ca837372b3c91bbe4ef60e5e9ed4ded73243ac3fd61584e1ab11e4806cde441089b8
6
+ metadata.gz: 12b6eedca1401172614802ee99d6306be4eed63767d43e81500c0499a4e6436105be869994beec5c22498613f6cef07fabae265948dc5ca035dd3a1145a9e02e
7
+ data.tar.gz: eb5b0584dff7e11c3eaea89d61f32e06d09a8eda46dd6d9e2e613ac867b430398104e994fde804063301e631e50fe37674597981b76c3b2f586800224d517a8a
@@ -33,6 +33,17 @@ easiest way to contribute.
33
33
  * Add yourself to the contributors section below.
34
34
  * Submit your [pull request][].
35
35
 
36
+ ## Building Windows Binaries
37
+
38
+ This is done using https://github.com/rake-compiler/rake-compiler-dock
39
+
40
+ 1. have VirtualBox installed
41
+ 2. have Docker Machine installed (https://docs.docker.com/engine/installation/)
42
+ 3. `gem install rake-compiler-dock`
43
+ 4. `rake-compiler-dock` (this could take a while)
44
+ 5. `bundle`
45
+ 6. `rake cross native gem`
46
+
36
47
  # Contributors
37
48
 
38
49
  * [Jeremy Hinegardner](https://github.com/copiousfreetime)
data/HISTORY.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # Amalgalite Changelog
2
2
 
3
+ ## Version 1.7.0 - 2021-01-13
4
+
5
+ * Update to SQLite to 3.34.0
6
+ * enable new compile time options
7
+ * SQLITE_ENABLE_BYTECODE_VGAB
8
+ * SQLITE_ENABLE_DESERIALIZE
9
+ * SQLITE_ENABLE_EXPLAIN_COMMENTS
10
+ * SQLITE_ENABLE_NULL_TRIM
11
+ * SQLITE_ENABLE_QPSG
12
+ * SQLITE_ENABLE_SNAPSHOT
13
+ * resolve ruby deprecations for ruby 2.7.2
14
+ * rework the aggregator interface to handle issue with ruby warnings.
15
+
16
+ ## Version 1.6.3 - 2019-01-19
17
+
18
+ * Update to SQLite 3.26.0
19
+ * enable new compile time options
20
+ * SQLITE_ENABLE_GEOPOLY
21
+
22
+ ## Version 1.6.2 - 2018-11-10
23
+
24
+ * Update to SQLite 3.25.3
25
+
26
+ ## Version 1.6.1 - 2018-01-02
27
+
28
+ * Fix bug when using the `json` extension
29
+
30
+ ## Version 1.6.0 - 2017-12-13
31
+
32
+ * Update to SQLite 3.21.0
33
+ * source id access methods
34
+ * Amalgalite::SQLite3::Version.compiled_source_id
35
+ * Amalgalite::SQLite3::Version.runtime_source_id
36
+ * enable new compile time options
37
+ * SQLITE_ENABLE_DBPAGE_VTAB
38
+ * SQLITE_ENABLE_MEMORY_MANAGEMENT
39
+ * SQLITE_ENABLE_PREUPDATE_HOOK
40
+ * SQLITE_ENABLE_SESSION
41
+ * SQLITE_ENABLE_STMTVTAB
42
+
43
+ ## Version 1.5.0 - 2015-12-06
44
+
45
+ * Update to SQLite 3.9.2
46
+ * Enable new SQLite features FTS5, JSON1
47
+
3
48
  ## Version 1.4.1 - 2015-09-13
4
49
 
5
50
  * Update to SQLite 3.8.11.1
data/LICENSE CHANGED
@@ -1,3 +1,5 @@
1
+ BSD License - https://opensource.org/licenses/BSD-3-Clause
2
+
1
3
  Copyright (c) 2008-2012 Jeremy Hinegardner
2
4
 
3
5
  All rights reserved.
@@ -11,7 +11,7 @@ examples/blob.rb
11
11
  examples/bootstrap.rb
12
12
  examples/define_aggregate.rb
13
13
  examples/define_function.rb
14
- examples/fts3.rb
14
+ examples/fts5.rb
15
15
  examples/gem-db.rb
16
16
  examples/require_me.rb
17
17
  examples/requires.rb
@@ -80,6 +80,7 @@ spec/default_map_spec.rb
80
80
  spec/function_spec.rb
81
81
  spec/integeration_spec.rb
82
82
  spec/iso_3166_database.rb
83
+ spec/json_spec.rb
83
84
  spec/packer_spec.rb
84
85
  spec/paths_spec.rb
85
86
  spec/progress_handler_spec.rb
data/README.md CHANGED
@@ -16,8 +16,8 @@
16
16
 
17
17
  ## DESCRIPTION
18
18
 
19
- Amalgalite embeds the SQLite database engine in a ruby extension. There is no
20
- need to install SQLite separately.
19
+ Amalgalite embeds the SQLite database engine in a ruby extension. There is no
20
+ need to install SQLite separately.
21
21
 
22
22
  Look in the examples/ directory to see
23
23
 
@@ -35,18 +35,14 @@ overview of the API.
35
35
  Amalgalite adds in the following additional non-default SQLite extensions:
36
36
 
37
37
  * [R*Tree index extension](http://sqlite.org/rtree.html)
38
- * [Full Text Search](http://sqlite.org/fts3.html)
39
-
40
- ## BUILDING FOR WINDOWS
41
-
42
- This is done using https://github.com/rake-compiler/rake-compiler-dock
43
-
44
- 1. have VirtualBox installed
45
- 2. Install boot2docker `brew install boot2docker`
46
- 3. `gem install rake-compiler-dock`
47
- 4. `rake-compiler-dock`
48
- 5. `bundle`
49
- 6 `rake cross native gem`
38
+ * [Full Text Search](http://sqlite.org/fts5.html) - both fts3 and fts5
39
+ * [Geopoly Interface to R*Tree](https://www.sqlite.org/geopoly.html)
40
+ * [JSON Extension](https://www.sqlite.org/json1.html)
41
+
42
+ Other extensions are add that might not be usable/visible by users of the gem.
43
+ The full list of extensions added is in
44
+ [extconf.rb](ext/amalgalite/c/extconf.rb). And those may be cross referenced
45
+ against the [compile options from SQLite](https://www.sqlite.org/compile.html)
50
46
 
51
47
  ## CREDITS
52
48
 
data/Rakefile CHANGED
@@ -10,11 +10,11 @@ This.ruby_gemspec do |spec|
10
10
  spec.add_dependency( 'arrayfields', '~> 4.9' )
11
11
 
12
12
  spec.add_development_dependency( 'rspec' , '~> 3.0' )
13
- spec.add_development_dependency( 'rake' , '~> 10.0')
14
- spec.add_development_dependency( 'rake-compiler', '~> 0.9' )
15
- spec.add_development_dependency( 'rake-compiler-dock', '~> 0.4' )
16
- spec.add_development_dependency( 'rdoc' , '~> 4.0' )
17
- spec.add_development_dependency( 'simplecov' , '~> 0.9' )
13
+ spec.add_development_dependency( 'rake' , '~> 13.0')
14
+ spec.add_development_dependency( 'rake-compiler', '~> 1.0' )
15
+ spec.add_development_dependency( 'rake-compiler-dock', '~> 0.6' )
16
+ spec.add_development_dependency( 'rdoc' , '~> 6.0' )
17
+ spec.add_development_dependency( 'simplecov' , '~> 0.14' )
18
18
  spec.add_development_dependency( 'zip' , '~> 2.0' )
19
19
 
20
20
  spec.extensions.concat This.extension_conf_files
@@ -0,0 +1,152 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'amalgalite'
4
+ require 'benchmark'
5
+ require 'pathname'
6
+
7
+ begin
8
+ require 'json'
9
+ rescue LoadError
10
+ abort "'gem install json' to run this example"
11
+ end
12
+
13
+
14
+ README = <<_
15
+ This example program assumes that you have available the 'fortune' BSD command dataset.
16
+
17
+ execute `fortune -f` to see if you have this command available.
18
+ _
19
+
20
+ fortune_dir = %x[ fortune -f 2>&1 ].split("\n").first.split.last
21
+ abort README unless fortune_dir and File.directory?( fortune_dir )
22
+
23
+ fortune_path = Pathname.new(fortune_dir)
24
+
25
+ #
26
+ # Lets create a database that utilizes FTS5 http://www.sqlite.org/fts5.html
27
+ #
28
+ #
29
+
30
+ #
31
+ # Create a database, this will create the DB if it doesn't exist
32
+ #
33
+ puts "Opening database (version #{Amalgalite::VERSION})"
34
+ db = Amalgalite::Database.new("fts5.db")
35
+
36
+ #
37
+ # Create the schema unless it already exists in the table. The meta information
38
+ # about the database schema is available as the result of the db.schema method
39
+ #
40
+ schema = db.schema
41
+ unless schema.tables['search']
42
+ puts "Create schema"
43
+ db.execute_batch <<-SQL
44
+ CREATE VIRTUAL TABLE search USING fts5(
45
+ filename,
46
+ content
47
+ );
48
+
49
+ CREATE TABLE plain (
50
+ filename VARCHAR(128),
51
+ content TEXT
52
+ );
53
+ SQL
54
+ db.reload_schema!
55
+ end
56
+
57
+ def each_fortune(path,&block)
58
+ fortune = []
59
+ path.each_line do |line|
60
+ line.strip!
61
+ if line == "%" then
62
+ yield fortune.join("\n")
63
+ fortune.clear
64
+ else
65
+ fortune << line
66
+ end
67
+ end
68
+ end
69
+
70
+ #
71
+ # Only load the data if the db is empty
72
+ #
73
+ if db.first_value_from( "SELECT count(*) from search" ) == 0 then
74
+ before = Time.now
75
+ idx = 0
76
+
77
+ # Inserting bulk rows as a transaction is good practice with SQLite, it is
78
+ # MUCH faster.
79
+ db.transaction do |db_in_transaction|
80
+ # Iterate over the files in the fortunes dir and split on the fortunes, then
81
+
82
+ fortune_path.each_child do |fortune_file|
83
+ next if fortune_file.directory?
84
+ next if fortune_file.extname == ".dat"
85
+ $stdout.puts "Loading #{fortune_file}"
86
+
87
+ each_fortune(fortune_file) do |fortune|
88
+ insert_data = {
89
+ ':fname' => fortune_file.to_s,
90
+ ':content' => fortune
91
+ }
92
+
93
+ # insert into the FTS5 table
94
+ db_in_transaction.prepare("INSERT INTO search( filename, content ) VALUES( :fname, :content );") do |stmt|
95
+ stmt.execute( insert_data )
96
+ end
97
+
98
+ # insert into the normal table for comparison
99
+ db_in_transaction.prepare("INSERT INTO plain( filename, content ) VALUES( :fname, :content );") do |stmt|
100
+ stmt.execute( insert_data )
101
+ end
102
+
103
+ idx += 1
104
+ print "Processed #{idx}\r"
105
+ $stdout.flush
106
+ end
107
+ puts "\nFinalizing..."
108
+ end
109
+ end
110
+ puts "Took #{Time.now - before} seconds to insert #{idx} fortunes"
111
+ puts "Done Inserting"
112
+ end
113
+
114
+ doc_count = db.first_value_from( "SELECT count(*) from search" )
115
+
116
+ #
117
+ # Now lets do some searching for some various words
118
+ #
119
+
120
+ %w[ president salmon thanks ].each do |word|
121
+
122
+ count = 100
123
+ puts
124
+ puts "Searching for '#{word}' #{count} times across #{doc_count} fortunes"
125
+ puts "=" * 60
126
+
127
+ Benchmark.bm( 15 ) do |x|
128
+
129
+ #
130
+ # search using the fts search to get the cont of tweets with the given word
131
+ #
132
+ x.report('fts5: ') do
133
+ db.prepare( "SELECT count(filename) FROM search WHERE search MATCH 'content:#{word}'" ) do |stmt|
134
+ count.times do
135
+ stmt.execute
136
+ end
137
+ end
138
+ end
139
+
140
+ #
141
+ # search using basic string matching in sqlite.
142
+ #
143
+ x.report('plain: ') do
144
+ db.prepare( "SELECT count(filename) FROM plain WHERE content LIKE '% #{word} %'" ) do |stmt|
145
+ count.times do
146
+ stmt.execute
147
+ end
148
+ end
149
+ end
150
+ end
151
+ end
152
+
@@ -234,6 +234,18 @@ VALUE am_sqlite3_runtime_version_number(VALUE self)
234
234
  return INT2FIX(sqlite3_libversion_number());
235
235
  }
236
236
 
237
+ /*
238
+ * call-seq:
239
+ * Amalgalite::SQLite3::Version.runtime_source_id -> String
240
+ *
241
+ * Return the SQLite C library source id as a string
242
+ *
243
+ */
244
+ VALUE am_sqlite3_runtime_source_id(VALUE self)
245
+ {
246
+ return rb_str_new2(sqlite3_sourceid());
247
+ }
248
+
237
249
  /*
238
250
  * call-seq:
239
251
  * Amalgalite::SQLite::Version.compiled_version -> String
@@ -259,6 +271,18 @@ VALUE am_sqlite3_compiled_version_number( VALUE self )
259
271
  return INT2FIX( SQLITE_VERSION_NUMBER );
260
272
  }
261
273
 
274
+ /*
275
+ * call-seq:
276
+ * Amalgalite::SQLite3::Version.compiled_source_id -> String
277
+ *
278
+ * Return the compiled SQLite C library source id as a string
279
+ *
280
+ */
281
+ VALUE am_sqlite3_compiled_source_id(VALUE self)
282
+ {
283
+ return rb_str_new2( SQLITE_SOURCE_ID );
284
+ }
285
+
262
286
  /**
263
287
  * Document-class: Amalgalite::SQLite3
264
288
  *
@@ -306,6 +330,8 @@ void Init_amalgalite()
306
330
  rb_define_module_function(mASV, "runtime_version_number", am_sqlite3_runtime_version_number, 0); /* in amalgalite.c */
307
331
  rb_define_module_function(mASV, "compiled_version", am_sqlite3_compiled_version, 0 ); /* in amalgalite.c */
308
332
  rb_define_module_function(mASV, "compiled_version_number", am_sqlite3_compiled_version_number, 0 ); /* in amalgalite.c */
333
+ rb_define_module_function(mASV, "runtime_source_id", am_sqlite3_runtime_source_id, 0); /* in amalgalite.c */
334
+ rb_define_module_function(mASV, "compiled_source_id", am_sqlite3_compiled_source_id, 0); /* in amalgalite.c */
309
335
 
310
336
  /*
311
337
  * Initialize the rest of the module
@@ -16,11 +16,46 @@ void Init_amalgalite_constants( )
16
16
  * module encapsulating all the SQLite C extension constants
17
17
  */
18
18
  VALUE mC = rb_define_module_under( mas, "Constants");
19
+ /**
20
+ * module encapsulating the SQLite3 C extension constants for Access
21
+ */
22
+ VALUE mC_Access = rb_define_module_under(mC, "Access");
23
+
24
+ /**
25
+ * module encapsulating the SQLite3 C extension constants for Authorizer
26
+ */
27
+ VALUE mC_Authorizer = rb_define_module_under(mC, "Authorizer");
28
+
29
+ /**
30
+ * module encapsulating the SQLite3 C extension constants for Changeset
31
+ */
32
+ VALUE mC_Changeset = rb_define_module_under(mC, "Changeset");
33
+
34
+ /**
35
+ * module encapsulating the SQLite3 C extension constants for ChangesetApply
36
+ */
37
+ VALUE mC_ChangesetApply = rb_define_module_under(mC, "ChangesetApply");
38
+
39
+ /**
40
+ * module encapsulating the SQLite3 C extension constants for ChangesetStart
41
+ */
42
+ VALUE mC_ChangesetStart = rb_define_module_under(mC, "ChangesetStart");
43
+
44
+ /**
45
+ * module encapsulating the SQLite3 C extension constants for Checkpoint
46
+ */
47
+ VALUE mC_Checkpoint = rb_define_module_under(mC, "Checkpoint");
48
+
19
49
  /**
20
50
  * module encapsulating the SQLite3 C extension constants for Config
21
51
  */
22
52
  VALUE mC_Config = rb_define_module_under(mC, "Config");
23
53
 
54
+ /**
55
+ * module encapsulating the SQLite3 C extension constants for DBConfig
56
+ */
57
+ VALUE mC_DBConfig = rb_define_module_under(mC, "DBConfig");
58
+
24
59
  /**
25
60
  * module encapsulating the SQLite3 C extension constants for DBStatus
26
61
  */
@@ -31,189 +66,1010 @@ void Init_amalgalite_constants( )
31
66
  */
32
67
  VALUE mC_DataType = rb_define_module_under(mC, "DataType");
33
68
 
69
+ /**
70
+ * module encapsulating the SQLite3 C extension constants for Deserialize
71
+ */
72
+ VALUE mC_Deserialize = rb_define_module_under(mC, "Deserialize");
73
+
74
+ /**
75
+ * module encapsulating the SQLite3 C extension constants for FTS5
76
+ */
77
+ VALUE mC_FTS5 = rb_define_module_under(mC, "FTS5");
78
+
79
+ /**
80
+ * module encapsulating the SQLite3 C extension constants for Fcntl
81
+ */
82
+ VALUE mC_Fcntl = rb_define_module_under(mC, "Fcntl");
83
+
84
+ /**
85
+ * module encapsulating the SQLite3 C extension constants for IOCap
86
+ */
87
+ VALUE mC_IOCap = rb_define_module_under(mC, "IOCap");
88
+
89
+ /**
90
+ * module encapsulating the SQLite3 C extension constants for Index
91
+ */
92
+ VALUE mC_Index = rb_define_module_under(mC, "Index");
93
+
94
+ /**
95
+ * module encapsulating the SQLite3 C extension constants for Limit
96
+ */
97
+ VALUE mC_Limit = rb_define_module_under(mC, "Limit");
98
+
99
+ /**
100
+ * module encapsulating the SQLite3 C extension constants for Lock
101
+ */
102
+ VALUE mC_Lock = rb_define_module_under(mC, "Lock");
103
+
104
+ /**
105
+ * module encapsulating the SQLite3 C extension constants for Mutex
106
+ */
107
+ VALUE mC_Mutex = rb_define_module_under(mC, "Mutex");
108
+
34
109
  /**
35
110
  * module encapsulating the SQLite3 C extension constants for Open
36
111
  */
37
112
  VALUE mC_Open = rb_define_module_under(mC, "Open");
38
113
 
114
+ /**
115
+ * module encapsulating the SQLite3 C extension constants for Prepare
116
+ */
117
+ VALUE mC_Prepare = rb_define_module_under(mC, "Prepare");
118
+
119
+ /**
120
+ * module encapsulating the SQLite3 C extension constants for RTree
121
+ */
122
+ VALUE mC_RTree = rb_define_module_under(mC, "RTree");
123
+
39
124
  /**
40
125
  * module encapsulating the SQLite3 C extension constants for ResultCode
41
126
  */
42
127
  VALUE mC_ResultCode = rb_define_module_under(mC, "ResultCode");
43
128
 
44
- /**
45
- * module encapsulating the SQLite3 C extension constants for StatementStatus
46
- */
47
- VALUE mC_StatementStatus = rb_define_module_under(mC, "StatementStatus");
129
+ /**
130
+ * module encapsulating the SQLite3 C extension constants for SHM
131
+ */
132
+ VALUE mC_SHM = rb_define_module_under(mC, "SHM");
133
+
134
+ /**
135
+ * module encapsulating the SQLite3 C extension constants for ScanStat
136
+ */
137
+ VALUE mC_ScanStat = rb_define_module_under(mC, "ScanStat");
138
+
139
+ /**
140
+ * module encapsulating the SQLite3 C extension constants for Serialize
141
+ */
142
+ VALUE mC_Serialize = rb_define_module_under(mC, "Serialize");
143
+
144
+ /**
145
+ * module encapsulating the SQLite3 C extension constants for Session
146
+ */
147
+ VALUE mC_Session = rb_define_module_under(mC, "Session");
148
+
149
+ /**
150
+ * module encapsulating the SQLite3 C extension constants for StatementStatus
151
+ */
152
+ VALUE mC_StatementStatus = rb_define_module_under(mC, "StatementStatus");
153
+
154
+ /**
155
+ * module encapsulating the SQLite3 C extension constants for Status
156
+ */
157
+ VALUE mC_Status = rb_define_module_under(mC, "Status");
158
+
159
+ /**
160
+ * module encapsulating the SQLite3 C extension constants for Sync
161
+ */
162
+ VALUE mC_Sync = rb_define_module_under(mC, "Sync");
163
+
164
+ /**
165
+ * module encapsulating the SQLite3 C extension constants for TextEncoding
166
+ */
167
+ VALUE mC_TextEncoding = rb_define_module_under(mC, "TextEncoding");
168
+
169
+ /**
170
+ * module encapsulating the SQLite3 C extension constants for Trace
171
+ */
172
+ VALUE mC_Trace = rb_define_module_under(mC, "Trace");
173
+
174
+ /**
175
+ * module encapsulating the SQLite3 C extension constants for Transaction
176
+ */
177
+ VALUE mC_Transaction = rb_define_module_under(mC, "Transaction");
178
+
179
+ /**
180
+ * module encapsulating the SQLite3 C extension constants for Win32
181
+ */
182
+ VALUE mC_Win32 = rb_define_module_under(mC, "Win32");
183
+
184
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
185
+ rb_define_const(mC_Access, "EXISTS", INT2FIX(SQLITE_ACCESS_EXISTS));
186
+
187
+ /* 2 -- Unused */
188
+ rb_define_const(mC_Access, "READ", INT2FIX(SQLITE_ACCESS_READ));
189
+
190
+ /* 1 -- Used by PRAGMA temp_store_directory */
191
+ rb_define_const(mC_Access, "READWRITE", INT2FIX(SQLITE_ACCESS_READWRITE));
192
+
193
+ /* 26 -- Database Name Table Name */
194
+ rb_define_const(mC_Authorizer, "ALTER_TABLE", INT2FIX(SQLITE_ALTER_TABLE));
195
+
196
+ /* 28 -- Table Name NULL */
197
+ rb_define_const(mC_Authorizer, "ANALYZE", INT2FIX(SQLITE_ANALYZE));
198
+
199
+ /* 24 -- Filename NULL */
200
+ rb_define_const(mC_Authorizer, "ATTACH", INT2FIX(SQLITE_ATTACH));
201
+
202
+ /* 0 -- No longer used */
203
+ rb_define_const(mC_Authorizer, "COPY", INT2FIX(SQLITE_COPY));
204
+
205
+ /* 1 -- Index Name Table Name */
206
+ rb_define_const(mC_Authorizer, "CREATE_INDEX", INT2FIX(SQLITE_CREATE_INDEX));
207
+
208
+ /* 2 -- Table Name NULL */
209
+ rb_define_const(mC_Authorizer, "CREATE_TABLE", INT2FIX(SQLITE_CREATE_TABLE));
210
+
211
+ /* 3 -- Index Name Table Name */
212
+ rb_define_const(mC_Authorizer, "CREATE_TEMP_INDEX", INT2FIX(SQLITE_CREATE_TEMP_INDEX));
213
+
214
+ /* 4 -- Table Name NULL */
215
+ rb_define_const(mC_Authorizer, "CREATE_TEMP_TABLE", INT2FIX(SQLITE_CREATE_TEMP_TABLE));
216
+
217
+ /* 5 -- Trigger Name Table Name */
218
+ rb_define_const(mC_Authorizer, "CREATE_TEMP_TRIGGER", INT2FIX(SQLITE_CREATE_TEMP_TRIGGER));
219
+
220
+ /* 6 -- View Name NULL */
221
+ rb_define_const(mC_Authorizer, "CREATE_TEMP_VIEW", INT2FIX(SQLITE_CREATE_TEMP_VIEW));
222
+
223
+ /* 7 -- Trigger Name Table Name */
224
+ rb_define_const(mC_Authorizer, "CREATE_TRIGGER", INT2FIX(SQLITE_CREATE_TRIGGER));
225
+
226
+ /* 8 -- View Name NULL */
227
+ rb_define_const(mC_Authorizer, "CREATE_VIEW", INT2FIX(SQLITE_CREATE_VIEW));
228
+
229
+ /* 29 -- Table Name Module Name */
230
+ rb_define_const(mC_Authorizer, "CREATE_VTABLE", INT2FIX(SQLITE_CREATE_VTABLE));
231
+
232
+ /* 9 -- Table Name NULL */
233
+ rb_define_const(mC_Authorizer, "DELETE", INT2FIX(SQLITE_DELETE));
234
+
235
+ /* 1 -- Abort the SQL statement with an error */
236
+ rb_define_const(mC_Authorizer, "DENY", INT2FIX(SQLITE_DENY));
237
+
238
+ /* 25 -- Database Name NULL */
239
+ rb_define_const(mC_Authorizer, "DETACH", INT2FIX(SQLITE_DETACH));
240
+
241
+ /* 10 -- Index Name Table Name */
242
+ rb_define_const(mC_Authorizer, "DROP_INDEX", INT2FIX(SQLITE_DROP_INDEX));
243
+
244
+ /* 11 -- Table Name NULL */
245
+ rb_define_const(mC_Authorizer, "DROP_TABLE", INT2FIX(SQLITE_DROP_TABLE));
246
+
247
+ /* 12 -- Index Name Table Name */
248
+ rb_define_const(mC_Authorizer, "DROP_TEMP_INDEX", INT2FIX(SQLITE_DROP_TEMP_INDEX));
249
+
250
+ /* 13 -- Table Name NULL */
251
+ rb_define_const(mC_Authorizer, "DROP_TEMP_TABLE", INT2FIX(SQLITE_DROP_TEMP_TABLE));
252
+
253
+ /* 14 -- Trigger Name Table Name */
254
+ rb_define_const(mC_Authorizer, "DROP_TEMP_TRIGGER", INT2FIX(SQLITE_DROP_TEMP_TRIGGER));
255
+
256
+ /* 15 -- View Name NULL */
257
+ rb_define_const(mC_Authorizer, "DROP_TEMP_VIEW", INT2FIX(SQLITE_DROP_TEMP_VIEW));
258
+
259
+ /* 16 -- Trigger Name Table Name */
260
+ rb_define_const(mC_Authorizer, "DROP_TRIGGER", INT2FIX(SQLITE_DROP_TRIGGER));
261
+
262
+ /* 17 -- View Name NULL */
263
+ rb_define_const(mC_Authorizer, "DROP_VIEW", INT2FIX(SQLITE_DROP_VIEW));
264
+
265
+ /* 30 -- Table Name Module Name */
266
+ rb_define_const(mC_Authorizer, "DROP_VTABLE", INT2FIX(SQLITE_DROP_VTABLE));
267
+
268
+ /* 31 -- NULL Function Name */
269
+ rb_define_const(mC_Authorizer, "FUNCTION", INT2FIX(SQLITE_FUNCTION));
270
+
271
+ /* 2 -- Don't allow access, but don't generate an error */
272
+ rb_define_const(mC_Authorizer, "IGNORE", INT2FIX(SQLITE_IGNORE));
273
+
274
+ /* 18 -- Table Name NULL */
275
+ rb_define_const(mC_Authorizer, "INSERT", INT2FIX(SQLITE_INSERT));
276
+
277
+ /* 19 -- Pragma Name 1st arg or NULL */
278
+ rb_define_const(mC_Authorizer, "PRAGMA", INT2FIX(SQLITE_PRAGMA));
279
+
280
+ /* 20 -- Table Name Column Name */
281
+ rb_define_const(mC_Authorizer, "READ", INT2FIX(SQLITE_READ));
282
+
283
+ /* 33 -- NULL NULL */
284
+ rb_define_const(mC_Authorizer, "RECURSIVE", INT2FIX(SQLITE_RECURSIVE));
285
+
286
+ /* 27 -- Index Name NULL */
287
+ rb_define_const(mC_Authorizer, "REINDEX", INT2FIX(SQLITE_REINDEX));
288
+
289
+ /* 32 -- Operation Savepoint Name */
290
+ rb_define_const(mC_Authorizer, "SAVEPOINT", INT2FIX(SQLITE_SAVEPOINT));
291
+
292
+ /* 21 -- NULL NULL */
293
+ rb_define_const(mC_Authorizer, "SELECT", INT2FIX(SQLITE_SELECT));
294
+
295
+ /* 22 -- Operation NULL */
296
+ rb_define_const(mC_Authorizer, "TRANSACTION", INT2FIX(SQLITE_TRANSACTION));
297
+
298
+ /* 23 -- Table Name Column Name */
299
+ rb_define_const(mC_Authorizer, "UPDATE", INT2FIX(SQLITE_UPDATE));
300
+
301
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
302
+ rb_define_const(mC_Changeset, "ABORT", INT2FIX(SQLITE_CHANGESET_ABORT));
303
+
304
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
305
+ rb_define_const(mC_Changeset, "CONFLICT", INT2FIX(SQLITE_CHANGESET_CONFLICT));
306
+
307
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
308
+ rb_define_const(mC_Changeset, "CONSTRAINT", INT2FIX(SQLITE_CHANGESET_CONSTRAINT));
309
+
310
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
311
+ rb_define_const(mC_Changeset, "DATA", INT2FIX(SQLITE_CHANGESET_DATA));
312
+
313
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
314
+ rb_define_const(mC_Changeset, "FOREIGN_KEY", INT2FIX(SQLITE_CHANGESET_FOREIGN_KEY));
315
+
316
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
317
+ rb_define_const(mC_Changeset, "NOTFOUND", INT2FIX(SQLITE_CHANGESET_NOTFOUND));
318
+
319
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
320
+ rb_define_const(mC_Changeset, "OMIT", INT2FIX(SQLITE_CHANGESET_OMIT));
321
+
322
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
323
+ rb_define_const(mC_Changeset, "REPLACE", INT2FIX(SQLITE_CHANGESET_REPLACE));
324
+
325
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
326
+ rb_define_const(mC_ChangesetApply, "INVERT", INT2FIX(SQLITE_CHANGESETAPPLY_INVERT));
327
+
328
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
329
+ rb_define_const(mC_ChangesetApply, "NOSAVEPOINT", INT2FIX(SQLITE_CHANGESETAPPLY_NOSAVEPOINT));
330
+
331
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
332
+ rb_define_const(mC_ChangesetStart, "INVERT", INT2FIX(SQLITE_CHANGESETSTART_INVERT));
333
+
334
+ /* 1 -- Wait for writers, then checkpoint */
335
+ rb_define_const(mC_Checkpoint, "FULL", INT2FIX(SQLITE_CHECKPOINT_FULL));
336
+
337
+ /* 0 -- Do as much as possible w/o blocking */
338
+ rb_define_const(mC_Checkpoint, "PASSIVE", INT2FIX(SQLITE_CHECKPOINT_PASSIVE));
339
+
340
+ /* 2 -- Like FULL but wait for for readers */
341
+ rb_define_const(mC_Checkpoint, "RESTART", INT2FIX(SQLITE_CHECKPOINT_RESTART));
342
+
343
+ /* 3 -- Like RESTART but also truncate WAL */
344
+ rb_define_const(mC_Checkpoint, "TRUNCATE", INT2FIX(SQLITE_CHECKPOINT_TRUNCATE));
345
+
346
+ /* 20 -- int */
347
+ rb_define_const(mC_Config, "COVERING_INDEX_SCAN", INT2FIX(SQLITE_CONFIG_COVERING_INDEX_SCAN));
348
+
349
+ /* 5 -- sqlite3_mem_methods* */
350
+ rb_define_const(mC_Config, "GETMALLOC", INT2FIX(SQLITE_CONFIG_GETMALLOC));
351
+
352
+ /* 11 -- sqlite3_mutex_methods* */
353
+ rb_define_const(mC_Config, "GETMUTEX", INT2FIX(SQLITE_CONFIG_GETMUTEX));
354
+
355
+ /* 15 -- no-op */
356
+ rb_define_const(mC_Config, "GETPCACHE", INT2FIX(SQLITE_CONFIG_GETPCACHE));
357
+
358
+ /* 19 -- sqlite3_pcache_methods2* */
359
+ rb_define_const(mC_Config, "GETPCACHE2", INT2FIX(SQLITE_CONFIG_GETPCACHE2));
360
+
361
+ /* 8 -- void*, int nByte, int min */
362
+ rb_define_const(mC_Config, "HEAP", INT2FIX(SQLITE_CONFIG_HEAP));
363
+
364
+ /* 16 -- xFunc, void* */
365
+ rb_define_const(mC_Config, "LOG", INT2FIX(SQLITE_CONFIG_LOG));
366
+
367
+ /* 13 -- int int */
368
+ rb_define_const(mC_Config, "LOOKASIDE", INT2FIX(SQLITE_CONFIG_LOOKASIDE));
369
+
370
+ /* 4 -- sqlite3_mem_methods* */
371
+ rb_define_const(mC_Config, "MALLOC", INT2FIX(SQLITE_CONFIG_MALLOC));
372
+
373
+ /* 29 -- sqlite3_int64 */
374
+ rb_define_const(mC_Config, "MEMDB_MAXSIZE", INT2FIX(SQLITE_CONFIG_MEMDB_MAXSIZE));
375
+
376
+ /* 9 -- boolean */
377
+ rb_define_const(mC_Config, "MEMSTATUS", INT2FIX(SQLITE_CONFIG_MEMSTATUS));
378
+
379
+ /* 22 -- sqlite3_int64, sqlite3_int64 */
380
+ rb_define_const(mC_Config, "MMAP_SIZE", INT2FIX(SQLITE_CONFIG_MMAP_SIZE));
381
+
382
+ /* 2 -- nil */
383
+ rb_define_const(mC_Config, "MULTITHREAD", INT2FIX(SQLITE_CONFIG_MULTITHREAD));
384
+
385
+ /* 10 -- sqlite3_mutex_methods* */
386
+ rb_define_const(mC_Config, "MUTEX", INT2FIX(SQLITE_CONFIG_MUTEX));
387
+
388
+ /* 7 -- void*, int sz, int N */
389
+ rb_define_const(mC_Config, "PAGECACHE", INT2FIX(SQLITE_CONFIG_PAGECACHE));
390
+
391
+ /* 14 -- no-op */
392
+ rb_define_const(mC_Config, "PCACHE", INT2FIX(SQLITE_CONFIG_PCACHE));
393
+
394
+ /* 18 -- sqlite3_pcache_methods2* */
395
+ rb_define_const(mC_Config, "PCACHE2", INT2FIX(SQLITE_CONFIG_PCACHE2));
396
+
397
+ /* 24 -- int *psz */
398
+ rb_define_const(mC_Config, "PCACHE_HDRSZ", INT2FIX(SQLITE_CONFIG_PCACHE_HDRSZ));
399
+
400
+ /* 25 -- unsigned int szPma */
401
+ rb_define_const(mC_Config, "PMASZ", INT2FIX(SQLITE_CONFIG_PMASZ));
402
+
403
+ /* 6 -- No longer used */
404
+ rb_define_const(mC_Config, "SCRATCH", INT2FIX(SQLITE_CONFIG_SCRATCH));
405
+
406
+ /* 3 -- nil */
407
+ rb_define_const(mC_Config, "SERIALIZED", INT2FIX(SQLITE_CONFIG_SERIALIZED));
408
+
409
+ /* 1 -- nil */
410
+ rb_define_const(mC_Config, "SINGLETHREAD", INT2FIX(SQLITE_CONFIG_SINGLETHREAD));
411
+
412
+ /* 27 -- boolean */
413
+ rb_define_const(mC_Config, "SMALL_MALLOC", INT2FIX(SQLITE_CONFIG_SMALL_MALLOC));
414
+
415
+ /* 28 -- int nByte */
416
+ rb_define_const(mC_Config, "SORTERREF_SIZE", INT2FIX(SQLITE_CONFIG_SORTERREF_SIZE));
417
+
418
+ /* 21 -- xSqllog, void* */
419
+ rb_define_const(mC_Config, "SQLLOG", INT2FIX(SQLITE_CONFIG_SQLLOG));
420
+
421
+ /* 26 -- int nByte */
422
+ rb_define_const(mC_Config, "STMTJRNL_SPILL", INT2FIX(SQLITE_CONFIG_STMTJRNL_SPILL));
423
+
424
+ /* 17 -- int */
425
+ rb_define_const(mC_Config, "URI", INT2FIX(SQLITE_CONFIG_URI));
426
+
427
+ /* 23 -- int nByte */
428
+ rb_define_const(mC_Config, "WIN32_HEAPSIZE", INT2FIX(SQLITE_CONFIG_WIN32_HEAPSIZE));
429
+
430
+ /* 1010 -- int int* */
431
+ rb_define_const(mC_DBConfig, "DEFENSIVE", INT2FIX(SQLITE_DBCONFIG_DEFENSIVE));
432
+
433
+ /* 1014 -- int int* */
434
+ rb_define_const(mC_DBConfig, "DQS_DDL", INT2FIX(SQLITE_DBCONFIG_DQS_DDL));
435
+
436
+ /* 1013 -- int int* */
437
+ rb_define_const(mC_DBConfig, "DQS_DML", INT2FIX(SQLITE_DBCONFIG_DQS_DML));
438
+
439
+ /* 1002 -- int int* */
440
+ rb_define_const(mC_DBConfig, "ENABLE_FKEY", INT2FIX(SQLITE_DBCONFIG_ENABLE_FKEY));
441
+
442
+ /* 1004 -- int int* */
443
+ rb_define_const(mC_DBConfig, "ENABLE_FTS3_TOKENIZER", INT2FIX(SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER));
444
+
445
+ /* 1005 -- int int* */
446
+ rb_define_const(mC_DBConfig, "ENABLE_LOAD_EXTENSION", INT2FIX(SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION));
447
+
448
+ /* 1007 -- int int* */
449
+ rb_define_const(mC_DBConfig, "ENABLE_QPSG", INT2FIX(SQLITE_DBCONFIG_ENABLE_QPSG));
450
+
451
+ /* 1003 -- int int* */
452
+ rb_define_const(mC_DBConfig, "ENABLE_TRIGGER", INT2FIX(SQLITE_DBCONFIG_ENABLE_TRIGGER));
453
+
454
+ /* 1015 -- int int* */
455
+ rb_define_const(mC_DBConfig, "ENABLE_VIEW", INT2FIX(SQLITE_DBCONFIG_ENABLE_VIEW));
456
+
457
+ /* 1012 -- int int* */
458
+ rb_define_const(mC_DBConfig, "LEGACY_ALTER_TABLE", INT2FIX(SQLITE_DBCONFIG_LEGACY_ALTER_TABLE));
459
+
460
+ /* 1016 -- int int* */
461
+ rb_define_const(mC_DBConfig, "LEGACY_FILE_FORMAT", INT2FIX(SQLITE_DBCONFIG_LEGACY_FILE_FORMAT));
462
+
463
+ /* 1001 -- void* int int */
464
+ rb_define_const(mC_DBConfig, "LOOKASIDE", INT2FIX(SQLITE_DBCONFIG_LOOKASIDE));
465
+
466
+ /* 1000 -- const char* */
467
+ rb_define_const(mC_DBConfig, "MAINDBNAME", INT2FIX(SQLITE_DBCONFIG_MAINDBNAME));
468
+
469
+ /* 1017 -- Largest DBCONFIG */
470
+ rb_define_const(mC_DBConfig, "MAX", INT2FIX(SQLITE_DBCONFIG_MAX));
471
+
472
+ /* 1006 -- int int* */
473
+ rb_define_const(mC_DBConfig, "NO_CKPT_ON_CLOSE", INT2FIX(SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE));
474
+
475
+ /* 1009 -- int int* */
476
+ rb_define_const(mC_DBConfig, "RESET_DATABASE", INT2FIX(SQLITE_DBCONFIG_RESET_DATABASE));
477
+
478
+ /* 1008 -- int int* */
479
+ rb_define_const(mC_DBConfig, "TRIGGER_EQP", INT2FIX(SQLITE_DBCONFIG_TRIGGER_EQP));
480
+
481
+ /* 1017 -- int int* */
482
+ rb_define_const(mC_DBConfig, "TRUSTED_SCHEMA", INT2FIX(SQLITE_DBCONFIG_TRUSTED_SCHEMA));
483
+
484
+ /* 1011 -- int int* */
485
+ rb_define_const(mC_DBConfig, "WRITABLE_SCHEMA", INT2FIX(SQLITE_DBCONFIG_WRITABLE_SCHEMA));
486
+
487
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
488
+ rb_define_const(mC_DBStatus, "CACHE_HIT", INT2FIX(SQLITE_DBSTATUS_CACHE_HIT));
489
+
490
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
491
+ rb_define_const(mC_DBStatus, "CACHE_MISS", INT2FIX(SQLITE_DBSTATUS_CACHE_MISS));
492
+
493
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
494
+ rb_define_const(mC_DBStatus, "CACHE_SPILL", INT2FIX(SQLITE_DBSTATUS_CACHE_SPILL));
495
+
496
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
497
+ rb_define_const(mC_DBStatus, "CACHE_USED", INT2FIX(SQLITE_DBSTATUS_CACHE_USED));
498
+
499
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
500
+ rb_define_const(mC_DBStatus, "CACHE_USED_SHARED", INT2FIX(SQLITE_DBSTATUS_CACHE_USED_SHARED));
501
+
502
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
503
+ rb_define_const(mC_DBStatus, "CACHE_WRITE", INT2FIX(SQLITE_DBSTATUS_CACHE_WRITE));
504
+
505
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
506
+ rb_define_const(mC_DBStatus, "DEFERRED_FKS", INT2FIX(SQLITE_DBSTATUS_DEFERRED_FKS));
507
+
508
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
509
+ rb_define_const(mC_DBStatus, "LOOKASIDE_HIT", INT2FIX(SQLITE_DBSTATUS_LOOKASIDE_HIT));
510
+
511
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
512
+ rb_define_const(mC_DBStatus, "LOOKASIDE_MISS_FULL", INT2FIX(SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL));
513
+
514
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
515
+ rb_define_const(mC_DBStatus, "LOOKASIDE_MISS_SIZE", INT2FIX(SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE));
516
+
517
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
518
+ rb_define_const(mC_DBStatus, "LOOKASIDE_USED", INT2FIX(SQLITE_DBSTATUS_LOOKASIDE_USED));
519
+
520
+ /* 12 -- Largest defined DBSTATUS */
521
+ rb_define_const(mC_DBStatus, "MAX", INT2FIX(SQLITE_DBSTATUS_MAX));
522
+
523
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
524
+ rb_define_const(mC_DBStatus, "SCHEMA_USED", INT2FIX(SQLITE_DBSTATUS_SCHEMA_USED));
525
+
526
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
527
+ rb_define_const(mC_DBStatus, "STMT_USED", INT2FIX(SQLITE_DBSTATUS_STMT_USED));
528
+
529
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
530
+ rb_define_const(mC_DataType, "TEXT", INT2FIX(SQLITE3_TEXT));
531
+
532
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
533
+ rb_define_const(mC_DataType, "BLOB", INT2FIX(SQLITE_BLOB));
534
+
535
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
536
+ rb_define_const(mC_DataType, "FLOAT", INT2FIX(SQLITE_FLOAT));
537
+
538
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
539
+ rb_define_const(mC_DataType, "INTEGER", INT2FIX(SQLITE_INTEGER));
540
+
541
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
542
+ rb_define_const(mC_DataType, "NULL", INT2FIX(SQLITE_NULL));
543
+
544
+ /* 1 -- Call sqlite3_free() on close */
545
+ rb_define_const(mC_Deserialize, "FREEONCLOSE", INT2FIX(SQLITE_DESERIALIZE_FREEONCLOSE));
546
+
547
+ /* 4 -- Database is read-only */
548
+ rb_define_const(mC_Deserialize, "READONLY", INT2FIX(SQLITE_DESERIALIZE_READONLY));
549
+
550
+ /* 2 -- Resize using sqlite3_realloc64() */
551
+ rb_define_const(mC_Deserialize, "RESIZEABLE", INT2FIX(SQLITE_DESERIALIZE_RESIZEABLE));
552
+
553
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
554
+ rb_define_const(mC_FTS5, "TOKENIZE_AUX", INT2FIX(FTS5_TOKENIZE_AUX));
555
+
556
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
557
+ rb_define_const(mC_FTS5, "TOKENIZE_DOCUMENT", INT2FIX(FTS5_TOKENIZE_DOCUMENT));
558
+
559
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
560
+ rb_define_const(mC_FTS5, "TOKENIZE_PREFIX", INT2FIX(FTS5_TOKENIZE_PREFIX));
561
+
562
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
563
+ rb_define_const(mC_FTS5, "TOKENIZE_QUERY", INT2FIX(FTS5_TOKENIZE_QUERY));
564
+
565
+ /* 0x0001 -- Same position as prev. token */
566
+ rb_define_const(mC_FTS5, "TOKEN_COLOCATED", INT2FIX(FTS5_TOKEN_COLOCATED));
567
+
568
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
569
+ rb_define_const(mC_Fcntl, "BEGIN_ATOMIC_WRITE", INT2FIX(SQLITE_FCNTL_BEGIN_ATOMIC_WRITE));
570
+
571
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
572
+ rb_define_const(mC_Fcntl, "BUSYHANDLER", INT2FIX(SQLITE_FCNTL_BUSYHANDLER));
573
+
574
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
575
+ rb_define_const(mC_Fcntl, "CHUNK_SIZE", INT2FIX(SQLITE_FCNTL_CHUNK_SIZE));
576
+
577
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
578
+ rb_define_const(mC_Fcntl, "CKPT_DONE", INT2FIX(SQLITE_FCNTL_CKPT_DONE));
579
+
580
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
581
+ rb_define_const(mC_Fcntl, "CKPT_START", INT2FIX(SQLITE_FCNTL_CKPT_START));
582
+
583
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
584
+ rb_define_const(mC_Fcntl, "COMMIT_ATOMIC_WRITE", INT2FIX(SQLITE_FCNTL_COMMIT_ATOMIC_WRITE));
585
+
586
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
587
+ rb_define_const(mC_Fcntl, "COMMIT_PHASETWO", INT2FIX(SQLITE_FCNTL_COMMIT_PHASETWO));
588
+
589
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
590
+ rb_define_const(mC_Fcntl, "DATA_VERSION", INT2FIX(SQLITE_FCNTL_DATA_VERSION));
591
+
592
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
593
+ rb_define_const(mC_Fcntl, "FILE_POINTER", INT2FIX(SQLITE_FCNTL_FILE_POINTER));
594
+
595
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
596
+ rb_define_const(mC_Fcntl, "GET_LOCKPROXYFILE", INT2FIX(SQLITE_FCNTL_GET_LOCKPROXYFILE));
597
+
598
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
599
+ rb_define_const(mC_Fcntl, "HAS_MOVED", INT2FIX(SQLITE_FCNTL_HAS_MOVED));
600
+
601
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
602
+ rb_define_const(mC_Fcntl, "JOURNAL_POINTER", INT2FIX(SQLITE_FCNTL_JOURNAL_POINTER));
603
+
604
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
605
+ rb_define_const(mC_Fcntl, "LAST_ERRNO", INT2FIX(SQLITE_FCNTL_LAST_ERRNO));
606
+
607
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
608
+ rb_define_const(mC_Fcntl, "LOCKSTATE", INT2FIX(SQLITE_FCNTL_LOCKSTATE));
609
+
610
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
611
+ rb_define_const(mC_Fcntl, "LOCK_TIMEOUT", INT2FIX(SQLITE_FCNTL_LOCK_TIMEOUT));
612
+
613
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
614
+ rb_define_const(mC_Fcntl, "MMAP_SIZE", INT2FIX(SQLITE_FCNTL_MMAP_SIZE));
615
+
616
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
617
+ rb_define_const(mC_Fcntl, "OVERWRITE", INT2FIX(SQLITE_FCNTL_OVERWRITE));
618
+
619
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
620
+ rb_define_const(mC_Fcntl, "PDB", INT2FIX(SQLITE_FCNTL_PDB));
621
+
622
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
623
+ rb_define_const(mC_Fcntl, "PERSIST_WAL", INT2FIX(SQLITE_FCNTL_PERSIST_WAL));
624
+
625
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
626
+ rb_define_const(mC_Fcntl, "POWERSAFE_OVERWRITE", INT2FIX(SQLITE_FCNTL_POWERSAFE_OVERWRITE));
627
+
628
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
629
+ rb_define_const(mC_Fcntl, "PRAGMA", INT2FIX(SQLITE_FCNTL_PRAGMA));
630
+
631
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
632
+ rb_define_const(mC_Fcntl, "RBU", INT2FIX(SQLITE_FCNTL_RBU));
633
+
634
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
635
+ rb_define_const(mC_Fcntl, "RESERVE_BYTES", INT2FIX(SQLITE_FCNTL_RESERVE_BYTES));
636
+
637
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
638
+ rb_define_const(mC_Fcntl, "ROLLBACK_ATOMIC_WRITE", INT2FIX(SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE));
639
+
640
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
641
+ rb_define_const(mC_Fcntl, "SET_LOCKPROXYFILE", INT2FIX(SQLITE_FCNTL_SET_LOCKPROXYFILE));
642
+
643
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
644
+ rb_define_const(mC_Fcntl, "SIZE_HINT", INT2FIX(SQLITE_FCNTL_SIZE_HINT));
645
+
646
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
647
+ rb_define_const(mC_Fcntl, "SIZE_LIMIT", INT2FIX(SQLITE_FCNTL_SIZE_LIMIT));
648
+
649
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
650
+ rb_define_const(mC_Fcntl, "SYNC", INT2FIX(SQLITE_FCNTL_SYNC));
651
+
652
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
653
+ rb_define_const(mC_Fcntl, "SYNC_OMITTED", INT2FIX(SQLITE_FCNTL_SYNC_OMITTED));
654
+
655
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
656
+ rb_define_const(mC_Fcntl, "TEMPFILENAME", INT2FIX(SQLITE_FCNTL_TEMPFILENAME));
657
+
658
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
659
+ rb_define_const(mC_Fcntl, "TRACE", INT2FIX(SQLITE_FCNTL_TRACE));
660
+
661
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
662
+ rb_define_const(mC_Fcntl, "VFSNAME", INT2FIX(SQLITE_FCNTL_VFSNAME));
663
+
664
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
665
+ rb_define_const(mC_Fcntl, "VFS_POINTER", INT2FIX(SQLITE_FCNTL_VFS_POINTER));
666
+
667
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
668
+ rb_define_const(mC_Fcntl, "WAL_BLOCK", INT2FIX(SQLITE_FCNTL_WAL_BLOCK));
669
+
670
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
671
+ rb_define_const(mC_Fcntl, "WIN32_AV_RETRY", INT2FIX(SQLITE_FCNTL_WIN32_AV_RETRY));
672
+
673
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
674
+ rb_define_const(mC_Fcntl, "WIN32_GET_HANDLE", INT2FIX(SQLITE_FCNTL_WIN32_GET_HANDLE));
675
+
676
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
677
+ rb_define_const(mC_Fcntl, "WIN32_SET_HANDLE", INT2FIX(SQLITE_FCNTL_WIN32_SET_HANDLE));
678
+
679
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
680
+ rb_define_const(mC_Fcntl, "ZIPVFS", INT2FIX(SQLITE_FCNTL_ZIPVFS));
681
+
682
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
683
+ rb_define_const(mC_IOCap, "ATOMIC", INT2FIX(SQLITE_IOCAP_ATOMIC));
684
+
685
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
686
+ rb_define_const(mC_IOCap, "ATOMIC16K", INT2FIX(SQLITE_IOCAP_ATOMIC16K));
687
+
688
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
689
+ rb_define_const(mC_IOCap, "ATOMIC1K", INT2FIX(SQLITE_IOCAP_ATOMIC1K));
690
+
691
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
692
+ rb_define_const(mC_IOCap, "ATOMIC2K", INT2FIX(SQLITE_IOCAP_ATOMIC2K));
693
+
694
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
695
+ rb_define_const(mC_IOCap, "ATOMIC32K", INT2FIX(SQLITE_IOCAP_ATOMIC32K));
696
+
697
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
698
+ rb_define_const(mC_IOCap, "ATOMIC4K", INT2FIX(SQLITE_IOCAP_ATOMIC4K));
699
+
700
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
701
+ rb_define_const(mC_IOCap, "ATOMIC512", INT2FIX(SQLITE_IOCAP_ATOMIC512));
702
+
703
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
704
+ rb_define_const(mC_IOCap, "ATOMIC64K", INT2FIX(SQLITE_IOCAP_ATOMIC64K));
705
+
706
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
707
+ rb_define_const(mC_IOCap, "ATOMIC8K", INT2FIX(SQLITE_IOCAP_ATOMIC8K));
708
+
709
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
710
+ rb_define_const(mC_IOCap, "BATCH_ATOMIC", INT2FIX(SQLITE_IOCAP_BATCH_ATOMIC));
711
+
712
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
713
+ rb_define_const(mC_IOCap, "IMMUTABLE", INT2FIX(SQLITE_IOCAP_IMMUTABLE));
714
+
715
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
716
+ rb_define_const(mC_IOCap, "POWERSAFE_OVERWRITE", INT2FIX(SQLITE_IOCAP_POWERSAFE_OVERWRITE));
717
+
718
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
719
+ rb_define_const(mC_IOCap, "SAFE_APPEND", INT2FIX(SQLITE_IOCAP_SAFE_APPEND));
720
+
721
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
722
+ rb_define_const(mC_IOCap, "SEQUENTIAL", INT2FIX(SQLITE_IOCAP_SEQUENTIAL));
723
+
724
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
725
+ rb_define_const(mC_IOCap, "UNDELETABLE_WHEN_OPEN", INT2FIX(SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN));
726
+
727
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
728
+ rb_define_const(mC_Index, "CONSTRAINT_EQ", INT2FIX(SQLITE_INDEX_CONSTRAINT_EQ));
729
+
730
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
731
+ rb_define_const(mC_Index, "CONSTRAINT_FUNCTION", INT2FIX(SQLITE_INDEX_CONSTRAINT_FUNCTION));
732
+
733
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
734
+ rb_define_const(mC_Index, "CONSTRAINT_GE", INT2FIX(SQLITE_INDEX_CONSTRAINT_GE));
735
+
736
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
737
+ rb_define_const(mC_Index, "CONSTRAINT_GLOB", INT2FIX(SQLITE_INDEX_CONSTRAINT_GLOB));
738
+
739
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
740
+ rb_define_const(mC_Index, "CONSTRAINT_GT", INT2FIX(SQLITE_INDEX_CONSTRAINT_GT));
741
+
742
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
743
+ rb_define_const(mC_Index, "CONSTRAINT_IS", INT2FIX(SQLITE_INDEX_CONSTRAINT_IS));
744
+
745
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
746
+ rb_define_const(mC_Index, "CONSTRAINT_ISNOT", INT2FIX(SQLITE_INDEX_CONSTRAINT_ISNOT));
747
+
748
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
749
+ rb_define_const(mC_Index, "CONSTRAINT_ISNOTNULL", INT2FIX(SQLITE_INDEX_CONSTRAINT_ISNOTNULL));
750
+
751
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
752
+ rb_define_const(mC_Index, "CONSTRAINT_ISNULL", INT2FIX(SQLITE_INDEX_CONSTRAINT_ISNULL));
48
753
 
49
- /**
50
- * module encapsulating the SQLite3 C extension constants for Status
51
- */
52
- VALUE mC_Status = rb_define_module_under(mC, "Status");
754
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
755
+ rb_define_const(mC_Index, "CONSTRAINT_LE", INT2FIX(SQLITE_INDEX_CONSTRAINT_LE));
53
756
 
54
757
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
55
- rb_define_const(mC_Config, "GETMALLOC", INT2FIX(SQLITE_CONFIG_GETMALLOC));
758
+ rb_define_const(mC_Index, "CONSTRAINT_LIKE", INT2FIX(SQLITE_INDEX_CONSTRAINT_LIKE));
56
759
 
57
760
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
58
- rb_define_const(mC_Config, "GETMUTEX", INT2FIX(SQLITE_CONFIG_GETMUTEX));
761
+ rb_define_const(mC_Index, "CONSTRAINT_LT", INT2FIX(SQLITE_INDEX_CONSTRAINT_LT));
59
762
 
60
763
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
61
- rb_define_const(mC_Config, "GETPCACHE", INT2FIX(SQLITE_CONFIG_GETPCACHE));
764
+ rb_define_const(mC_Index, "CONSTRAINT_MATCH", INT2FIX(SQLITE_INDEX_CONSTRAINT_MATCH));
62
765
 
63
766
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
64
- rb_define_const(mC_Config, "HEAP", INT2FIX(SQLITE_CONFIG_HEAP));
767
+ rb_define_const(mC_Index, "CONSTRAINT_NE", INT2FIX(SQLITE_INDEX_CONSTRAINT_NE));
65
768
 
66
769
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
67
- rb_define_const(mC_Config, "LOG", INT2FIX(SQLITE_CONFIG_LOG));
770
+ rb_define_const(mC_Index, "CONSTRAINT_REGEXP", INT2FIX(SQLITE_INDEX_CONSTRAINT_REGEXP));
771
+
772
+ /* 1 -- Scan visits at most 1 row */
773
+ rb_define_const(mC_Index, "SCAN_UNIQUE", INT2FIX(SQLITE_INDEX_SCAN_UNIQUE));
68
774
 
69
775
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
70
- rb_define_const(mC_Config, "LOOKASIDE", INT2FIX(SQLITE_CONFIG_LOOKASIDE));
776
+ rb_define_const(mC_Limit, "ATTACHED", INT2FIX(SQLITE_LIMIT_ATTACHED));
71
777
 
72
778
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
73
- rb_define_const(mC_Config, "MALLOC", INT2FIX(SQLITE_CONFIG_MALLOC));
779
+ rb_define_const(mC_Limit, "COLUMN", INT2FIX(SQLITE_LIMIT_COLUMN));
74
780
 
75
781
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
76
- rb_define_const(mC_Config, "MEMSTATUS", INT2FIX(SQLITE_CONFIG_MEMSTATUS));
782
+ rb_define_const(mC_Limit, "COMPOUND_SELECT", INT2FIX(SQLITE_LIMIT_COMPOUND_SELECT));
77
783
 
78
784
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
79
- rb_define_const(mC_Config, "MULTITHREAD", INT2FIX(SQLITE_CONFIG_MULTITHREAD));
785
+ rb_define_const(mC_Limit, "EXPR_DEPTH", INT2FIX(SQLITE_LIMIT_EXPR_DEPTH));
80
786
 
81
787
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
82
- rb_define_const(mC_Config, "MUTEX", INT2FIX(SQLITE_CONFIG_MUTEX));
788
+ rb_define_const(mC_Limit, "FUNCTION_ARG", INT2FIX(SQLITE_LIMIT_FUNCTION_ARG));
83
789
 
84
790
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
85
- rb_define_const(mC_Config, "PAGECACHE", INT2FIX(SQLITE_CONFIG_PAGECACHE));
791
+ rb_define_const(mC_Limit, "LENGTH", INT2FIX(SQLITE_LIMIT_LENGTH));
86
792
 
87
793
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
88
- rb_define_const(mC_Config, "PCACHE", INT2FIX(SQLITE_CONFIG_PCACHE));
794
+ rb_define_const(mC_Limit, "LIKE_PATTERN_LENGTH", INT2FIX(SQLITE_LIMIT_LIKE_PATTERN_LENGTH));
89
795
 
90
796
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
91
- rb_define_const(mC_Config, "SCRATCH", INT2FIX(SQLITE_CONFIG_SCRATCH));
797
+ rb_define_const(mC_Limit, "SQL_LENGTH", INT2FIX(SQLITE_LIMIT_SQL_LENGTH));
92
798
 
93
799
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
94
- rb_define_const(mC_Config, "SERIALIZED", INT2FIX(SQLITE_CONFIG_SERIALIZED));
800
+ rb_define_const(mC_Limit, "TRIGGER_DEPTH", INT2FIX(SQLITE_LIMIT_TRIGGER_DEPTH));
95
801
 
96
802
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
97
- rb_define_const(mC_Config, "SINGLETHREAD", INT2FIX(SQLITE_CONFIG_SINGLETHREAD));
803
+ rb_define_const(mC_Limit, "VARIABLE_NUMBER", INT2FIX(SQLITE_LIMIT_VARIABLE_NUMBER));
98
804
 
99
805
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
100
- rb_define_const(mC_DBStatus, "CACHE_USED", INT2FIX(SQLITE_DBSTATUS_CACHE_USED));
806
+ rb_define_const(mC_Limit, "VDBE_OP", INT2FIX(SQLITE_LIMIT_VDBE_OP));
101
807
 
102
808
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
103
- rb_define_const(mC_DBStatus, "LOOKASIDE_USED", INT2FIX(SQLITE_DBSTATUS_LOOKASIDE_USED));
809
+ rb_define_const(mC_Limit, "WORKER_THREADS", INT2FIX(SQLITE_LIMIT_WORKER_THREADS));
104
810
 
105
811
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
106
- rb_define_const(mC_DBStatus, "MAX", INT2FIX(SQLITE_DBSTATUS_MAX));
812
+ rb_define_const(mC_Lock, "EXCLUSIVE", INT2FIX(SQLITE_LOCK_EXCLUSIVE));
107
813
 
108
814
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
109
- rb_define_const(mC_DBStatus, "SCHEMA_USED", INT2FIX(SQLITE_DBSTATUS_SCHEMA_USED));
815
+ rb_define_const(mC_Lock, "NONE", INT2FIX(SQLITE_LOCK_NONE));
110
816
 
111
817
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
112
- rb_define_const(mC_DBStatus, "STMT_USED", INT2FIX(SQLITE_DBSTATUS_STMT_USED));
818
+ rb_define_const(mC_Lock, "PENDING", INT2FIX(SQLITE_LOCK_PENDING));
113
819
 
114
820
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
115
- rb_define_const(mC_DataType, "BLOB", INT2FIX(SQLITE_BLOB));
821
+ rb_define_const(mC_Lock, "RESERVED", INT2FIX(SQLITE_LOCK_RESERVED));
116
822
 
117
823
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
118
- rb_define_const(mC_DataType, "FLOAT", INT2FIX(SQLITE_FLOAT));
824
+ rb_define_const(mC_Lock, "SHARED", INT2FIX(SQLITE_LOCK_SHARED));
119
825
 
120
826
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
121
- rb_define_const(mC_DataType, "INTEGER", INT2FIX(SQLITE_INTEGER));
827
+ rb_define_const(mC_Mutex, "FAST", INT2FIX(SQLITE_MUTEX_FAST));
122
828
 
123
829
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
124
- rb_define_const(mC_DataType, "NULL", INT2FIX(SQLITE_NULL));
830
+ rb_define_const(mC_Mutex, "RECURSIVE", INT2FIX(SQLITE_MUTEX_RECURSIVE));
831
+
832
+ /* 8 -- For use by application */
833
+ rb_define_const(mC_Mutex, "STATIC_APP1", INT2FIX(SQLITE_MUTEX_STATIC_APP1));
834
+
835
+ /* 9 -- For use by application */
836
+ rb_define_const(mC_Mutex, "STATIC_APP2", INT2FIX(SQLITE_MUTEX_STATIC_APP2));
837
+
838
+ /* 10 -- For use by application */
839
+ rb_define_const(mC_Mutex, "STATIC_APP3", INT2FIX(SQLITE_MUTEX_STATIC_APP3));
840
+
841
+ /* 6 -- lru page list */
842
+ rb_define_const(mC_Mutex, "STATIC_LRU", INT2FIX(SQLITE_MUTEX_STATIC_LRU));
843
+
844
+ /* 7 -- NOT USED */
845
+ rb_define_const(mC_Mutex, "STATIC_LRU2", INT2FIX(SQLITE_MUTEX_STATIC_LRU2));
125
846
 
126
847
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
127
- rb_define_const(mC_DataType, "TEXT", INT2FIX(SQLITE_TEXT));
848
+ rb_define_const(mC_Mutex, "STATIC_MAIN", INT2FIX(SQLITE_MUTEX_STATIC_MAIN));
128
849
 
129
850
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
851
+ rb_define_const(mC_Mutex, "STATIC_MASTER", INT2FIX(SQLITE_MUTEX_STATIC_MASTER));
852
+
853
+ /* 3 -- sqlite3_malloc() */
854
+ rb_define_const(mC_Mutex, "STATIC_MEM", INT2FIX(SQLITE_MUTEX_STATIC_MEM));
855
+
856
+ /* 4 -- NOT USED */
857
+ rb_define_const(mC_Mutex, "STATIC_MEM2", INT2FIX(SQLITE_MUTEX_STATIC_MEM2));
858
+
859
+ /* 4 -- sqlite3BtreeOpen() */
860
+ rb_define_const(mC_Mutex, "STATIC_OPEN", INT2FIX(SQLITE_MUTEX_STATIC_OPEN));
861
+
862
+ /* 7 -- sqlite3PageMalloc() */
863
+ rb_define_const(mC_Mutex, "STATIC_PMEM", INT2FIX(SQLITE_MUTEX_STATIC_PMEM));
864
+
865
+ /* 5 -- sqlite3_randomness() */
866
+ rb_define_const(mC_Mutex, "STATIC_PRNG", INT2FIX(SQLITE_MUTEX_STATIC_PRNG));
867
+
868
+ /* 11 -- For use by built-in VFS */
869
+ rb_define_const(mC_Mutex, "STATIC_VFS1", INT2FIX(SQLITE_MUTEX_STATIC_VFS1));
870
+
871
+ /* 12 -- For use by extension VFS */
872
+ rb_define_const(mC_Mutex, "STATIC_VFS2", INT2FIX(SQLITE_MUTEX_STATIC_VFS2));
873
+
874
+ /* 13 -- For use by application VFS */
875
+ rb_define_const(mC_Mutex, "STATIC_VFS3", INT2FIX(SQLITE_MUTEX_STATIC_VFS3));
876
+
877
+ /* 0x00000020 -- VFS only */
130
878
  rb_define_const(mC_Open, "AUTOPROXY", INT2FIX(SQLITE_OPEN_AUTOPROXY));
131
879
 
132
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
880
+ /* 0x00000004 -- Ok for sqlite3_open_v2() */
133
881
  rb_define_const(mC_Open, "CREATE", INT2FIX(SQLITE_OPEN_CREATE));
134
882
 
135
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
883
+ /* 0x00000008 -- VFS only */
136
884
  rb_define_const(mC_Open, "DELETEONCLOSE", INT2FIX(SQLITE_OPEN_DELETEONCLOSE));
137
885
 
138
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
886
+ /* 0x00000010 -- VFS only */
139
887
  rb_define_const(mC_Open, "EXCLUSIVE", INT2FIX(SQLITE_OPEN_EXCLUSIVE));
140
888
 
141
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
889
+ /* 0x00010000 -- Ok for sqlite3_open_v2() */
142
890
  rb_define_const(mC_Open, "FULLMUTEX", INT2FIX(SQLITE_OPEN_FULLMUTEX));
143
891
 
144
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
892
+ /* 0x00000100 -- VFS only */
145
893
  rb_define_const(mC_Open, "MAIN_DB", INT2FIX(SQLITE_OPEN_MAIN_DB));
146
894
 
147
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
895
+ /* 0x00000800 -- VFS only */
148
896
  rb_define_const(mC_Open, "MAIN_JOURNAL", INT2FIX(SQLITE_OPEN_MAIN_JOURNAL));
149
897
 
150
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
898
+ /* 0x00004000 -- VFS only */
151
899
  rb_define_const(mC_Open, "MASTER_JOURNAL", INT2FIX(SQLITE_OPEN_MASTER_JOURNAL));
152
900
 
153
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
901
+ /* 0x00000080 -- Ok for sqlite3_open_v2() */
902
+ rb_define_const(mC_Open, "MEMORY", INT2FIX(SQLITE_OPEN_MEMORY));
903
+
904
+ /* 0x01000000 -- Ok for sqlite3_open_v2() */
905
+ rb_define_const(mC_Open, "NOFOLLOW", INT2FIX(SQLITE_OPEN_NOFOLLOW));
906
+
907
+ /* 0x00008000 -- Ok for sqlite3_open_v2() */
154
908
  rb_define_const(mC_Open, "NOMUTEX", INT2FIX(SQLITE_OPEN_NOMUTEX));
155
909
 
156
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
910
+ /* 0x00040000 -- Ok for sqlite3_open_v2() */
157
911
  rb_define_const(mC_Open, "PRIVATECACHE", INT2FIX(SQLITE_OPEN_PRIVATECACHE));
158
912
 
159
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
913
+ /* 0x00000001 -- Ok for sqlite3_open_v2() */
160
914
  rb_define_const(mC_Open, "READONLY", INT2FIX(SQLITE_OPEN_READONLY));
161
915
 
162
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
916
+ /* 0x00000002 -- Ok for sqlite3_open_v2() */
163
917
  rb_define_const(mC_Open, "READWRITE", INT2FIX(SQLITE_OPEN_READWRITE));
164
918
 
165
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
919
+ /* 0x00020000 -- Ok for sqlite3_open_v2() */
166
920
  rb_define_const(mC_Open, "SHAREDCACHE", INT2FIX(SQLITE_OPEN_SHAREDCACHE));
167
921
 
168
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
922
+ /* 0x00002000 -- VFS only */
169
923
  rb_define_const(mC_Open, "SUBJOURNAL", INT2FIX(SQLITE_OPEN_SUBJOURNAL));
170
924
 
171
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
925
+ /* 0x00004000 -- VFS only */
926
+ rb_define_const(mC_Open, "SUPER_JOURNAL", INT2FIX(SQLITE_OPEN_SUPER_JOURNAL));
927
+
928
+ /* 0x00000200 -- VFS only */
172
929
  rb_define_const(mC_Open, "TEMP_DB", INT2FIX(SQLITE_OPEN_TEMP_DB));
173
930
 
174
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
931
+ /* 0x00001000 -- VFS only */
175
932
  rb_define_const(mC_Open, "TEMP_JOURNAL", INT2FIX(SQLITE_OPEN_TEMP_JOURNAL));
176
933
 
177
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
934
+ /* 0x00000400 -- VFS only */
178
935
  rb_define_const(mC_Open, "TRANSIENT_DB", INT2FIX(SQLITE_OPEN_TRANSIENT_DB));
179
936
 
180
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
937
+ /* 0x00000040 -- Ok for sqlite3_open_v2() */
938
+ rb_define_const(mC_Open, "URI", INT2FIX(SQLITE_OPEN_URI));
939
+
940
+ /* 0x00080000 -- VFS only */
181
941
  rb_define_const(mC_Open, "WAL", INT2FIX(SQLITE_OPEN_WAL));
182
942
 
943
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
944
+ rb_define_const(mC_Prepare, "NORMALIZE", INT2FIX(SQLITE_PREPARE_NORMALIZE));
945
+
946
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
947
+ rb_define_const(mC_Prepare, "NO_VTAB", INT2FIX(SQLITE_PREPARE_NO_VTAB));
948
+
949
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
950
+ rb_define_const(mC_Prepare, "PERSISTENT", INT2FIX(SQLITE_PREPARE_PERSISTENT));
951
+
952
+ /* 2 -- Object fully contained within query region */
953
+ rb_define_const(mC_RTree, "FULLY_WITHIN", INT2FIX(FULLY_WITHIN));
954
+
955
+ /* 0 -- Object completely outside of query region */
956
+ rb_define_const(mC_RTree, "NOT_WITHIN", INT2FIX(NOT_WITHIN));
957
+
958
+ /* 1 -- Object partially overlaps query region */
959
+ rb_define_const(mC_RTree, "PARTLY_WITHIN", INT2FIX(PARTLY_WITHIN));
960
+
183
961
  /* 4 -- Callback routine requested an abort */
184
962
  rb_define_const(mC_ResultCode, "ABORT", INT2FIX(SQLITE_ABORT));
185
963
 
964
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
965
+ rb_define_const(mC_ResultCode, "ABORT_ROLLBACK", INT2FIX(SQLITE_ABORT_ROLLBACK));
966
+
186
967
  /* 23 -- Authorization denied */
187
968
  rb_define_const(mC_ResultCode, "AUTH", INT2FIX(SQLITE_AUTH));
188
969
 
970
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
971
+ rb_define_const(mC_ResultCode, "AUTH_USER", INT2FIX(SQLITE_AUTH_USER));
972
+
189
973
  /* 5 -- The database file is locked */
190
974
  rb_define_const(mC_ResultCode, "BUSY", INT2FIX(SQLITE_BUSY));
191
975
 
192
976
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
193
977
  rb_define_const(mC_ResultCode, "BUSY_RECOVERY", INT2FIX(SQLITE_BUSY_RECOVERY));
194
978
 
979
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
980
+ rb_define_const(mC_ResultCode, "BUSY_SNAPSHOT", INT2FIX(SQLITE_BUSY_SNAPSHOT));
981
+
982
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
983
+ rb_define_const(mC_ResultCode, "BUSY_TIMEOUT", INT2FIX(SQLITE_BUSY_TIMEOUT));
984
+
195
985
  /* 14 -- Unable to open the database file */
196
986
  rb_define_const(mC_ResultCode, "CANTOPEN", INT2FIX(SQLITE_CANTOPEN));
197
987
 
988
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
989
+ rb_define_const(mC_ResultCode, "CANTOPEN_CONVPATH", INT2FIX(SQLITE_CANTOPEN_CONVPATH));
990
+
991
+ /* (SQLITE_CANTOPEN | (5<<8)) -- Not Used */
992
+ rb_define_const(mC_ResultCode, "CANTOPEN_DIRTYWAL", INT2FIX(SQLITE_CANTOPEN_DIRTYWAL));
993
+
994
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
995
+ rb_define_const(mC_ResultCode, "CANTOPEN_FULLPATH", INT2FIX(SQLITE_CANTOPEN_FULLPATH));
996
+
997
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
998
+ rb_define_const(mC_ResultCode, "CANTOPEN_ISDIR", INT2FIX(SQLITE_CANTOPEN_ISDIR));
999
+
198
1000
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
199
1001
  rb_define_const(mC_ResultCode, "CANTOPEN_NOTEMPDIR", INT2FIX(SQLITE_CANTOPEN_NOTEMPDIR));
200
1002
 
1003
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1004
+ rb_define_const(mC_ResultCode, "CANTOPEN_SYMLINK", INT2FIX(SQLITE_CANTOPEN_SYMLINK));
1005
+
201
1006
  /* 19 -- Abort due to constraint violation */
202
1007
  rb_define_const(mC_ResultCode, "CONSTRAINT", INT2FIX(SQLITE_CONSTRAINT));
203
1008
 
1009
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1010
+ rb_define_const(mC_ResultCode, "CONSTRAINT_CHECK", INT2FIX(SQLITE_CONSTRAINT_CHECK));
1011
+
1012
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1013
+ rb_define_const(mC_ResultCode, "CONSTRAINT_COMMITHOOK", INT2FIX(SQLITE_CONSTRAINT_COMMITHOOK));
1014
+
1015
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1016
+ rb_define_const(mC_ResultCode, "CONSTRAINT_FOREIGNKEY", INT2FIX(SQLITE_CONSTRAINT_FOREIGNKEY));
1017
+
1018
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1019
+ rb_define_const(mC_ResultCode, "CONSTRAINT_FUNCTION", INT2FIX(SQLITE_CONSTRAINT_FUNCTION));
1020
+
1021
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1022
+ rb_define_const(mC_ResultCode, "CONSTRAINT_NOTNULL", INT2FIX(SQLITE_CONSTRAINT_NOTNULL));
1023
+
1024
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1025
+ rb_define_const(mC_ResultCode, "CONSTRAINT_PINNED", INT2FIX(SQLITE_CONSTRAINT_PINNED));
1026
+
1027
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1028
+ rb_define_const(mC_ResultCode, "CONSTRAINT_PRIMARYKEY", INT2FIX(SQLITE_CONSTRAINT_PRIMARYKEY));
1029
+
1030
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1031
+ rb_define_const(mC_ResultCode, "CONSTRAINT_ROWID", INT2FIX(SQLITE_CONSTRAINT_ROWID));
1032
+
1033
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1034
+ rb_define_const(mC_ResultCode, "CONSTRAINT_TRIGGER", INT2FIX(SQLITE_CONSTRAINT_TRIGGER));
1035
+
1036
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1037
+ rb_define_const(mC_ResultCode, "CONSTRAINT_UNIQUE", INT2FIX(SQLITE_CONSTRAINT_UNIQUE));
1038
+
1039
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1040
+ rb_define_const(mC_ResultCode, "CONSTRAINT_VTAB", INT2FIX(SQLITE_CONSTRAINT_VTAB));
1041
+
204
1042
  /* 11 -- The database disk image is malformed */
205
1043
  rb_define_const(mC_ResultCode, "CORRUPT", INT2FIX(SQLITE_CORRUPT));
206
1044
 
1045
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1046
+ rb_define_const(mC_ResultCode, "CORRUPT_INDEX", INT2FIX(SQLITE_CORRUPT_INDEX));
1047
+
1048
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1049
+ rb_define_const(mC_ResultCode, "CORRUPT_SEQUENCE", INT2FIX(SQLITE_CORRUPT_SEQUENCE));
1050
+
1051
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1052
+ rb_define_const(mC_ResultCode, "CORRUPT_VTAB", INT2FIX(SQLITE_CORRUPT_VTAB));
1053
+
207
1054
  /* 101 -- sqlite3_step() has finished executing */
208
1055
  rb_define_const(mC_ResultCode, "DONE", INT2FIX(SQLITE_DONE));
209
1056
 
210
- /* 16 -- Database is empty */
1057
+ /* 16 -- Internal use only */
211
1058
  rb_define_const(mC_ResultCode, "EMPTY", INT2FIX(SQLITE_EMPTY));
212
1059
 
213
- /* 1 -- SQL error or missing database */
1060
+ /* 1 -- Generic error */
214
1061
  rb_define_const(mC_ResultCode, "ERROR", INT2FIX(SQLITE_ERROR));
215
1062
 
216
- /* 24 -- Auxiliary database format error */
1063
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1064
+ rb_define_const(mC_ResultCode, "ERROR_MISSING_COLLSEQ", INT2FIX(SQLITE_ERROR_MISSING_COLLSEQ));
1065
+
1066
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1067
+ rb_define_const(mC_ResultCode, "ERROR_RETRY", INT2FIX(SQLITE_ERROR_RETRY));
1068
+
1069
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1070
+ rb_define_const(mC_ResultCode, "ERROR_SNAPSHOT", INT2FIX(SQLITE_ERROR_SNAPSHOT));
1071
+
1072
+ /* 24 -- Not used */
217
1073
  rb_define_const(mC_ResultCode, "FORMAT", INT2FIX(SQLITE_FORMAT));
218
1074
 
219
1075
  /* 13 -- Insertion failed because database is full */
@@ -231,6 +1087,12 @@ void Init_amalgalite_constants( )
231
1087
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
232
1088
  rb_define_const(mC_ResultCode, "IOERR_ACCESS", INT2FIX(SQLITE_IOERR_ACCESS));
233
1089
 
1090
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1091
+ rb_define_const(mC_ResultCode, "IOERR_AUTH", INT2FIX(SQLITE_IOERR_AUTH));
1092
+
1093
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1094
+ rb_define_const(mC_ResultCode, "IOERR_BEGIN_ATOMIC", INT2FIX(SQLITE_IOERR_BEGIN_ATOMIC));
1095
+
234
1096
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
235
1097
  rb_define_const(mC_ResultCode, "IOERR_BLOCKED", INT2FIX(SQLITE_IOERR_BLOCKED));
236
1098
 
@@ -240,9 +1102,24 @@ void Init_amalgalite_constants( )
240
1102
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
241
1103
  rb_define_const(mC_ResultCode, "IOERR_CLOSE", INT2FIX(SQLITE_IOERR_CLOSE));
242
1104
 
1105
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1106
+ rb_define_const(mC_ResultCode, "IOERR_COMMIT_ATOMIC", INT2FIX(SQLITE_IOERR_COMMIT_ATOMIC));
1107
+
1108
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1109
+ rb_define_const(mC_ResultCode, "IOERR_CONVPATH", INT2FIX(SQLITE_IOERR_CONVPATH));
1110
+
1111
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1112
+ rb_define_const(mC_ResultCode, "IOERR_CORRUPTFS", INT2FIX(SQLITE_IOERR_CORRUPTFS));
1113
+
1114
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1115
+ rb_define_const(mC_ResultCode, "IOERR_DATA", INT2FIX(SQLITE_IOERR_DATA));
1116
+
243
1117
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
244
1118
  rb_define_const(mC_ResultCode, "IOERR_DELETE", INT2FIX(SQLITE_IOERR_DELETE));
245
1119
 
1120
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1121
+ rb_define_const(mC_ResultCode, "IOERR_DELETE_NOENT", INT2FIX(SQLITE_IOERR_DELETE_NOENT));
1122
+
246
1123
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
247
1124
  rb_define_const(mC_ResultCode, "IOERR_DIR_CLOSE", INT2FIX(SQLITE_IOERR_DIR_CLOSE));
248
1125
 
@@ -255,9 +1132,15 @@ void Init_amalgalite_constants( )
255
1132
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
256
1133
  rb_define_const(mC_ResultCode, "IOERR_FSYNC", INT2FIX(SQLITE_IOERR_FSYNC));
257
1134
 
1135
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1136
+ rb_define_const(mC_ResultCode, "IOERR_GETTEMPPATH", INT2FIX(SQLITE_IOERR_GETTEMPPATH));
1137
+
258
1138
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
259
1139
  rb_define_const(mC_ResultCode, "IOERR_LOCK", INT2FIX(SQLITE_IOERR_LOCK));
260
1140
 
1141
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1142
+ rb_define_const(mC_ResultCode, "IOERR_MMAP", INT2FIX(SQLITE_IOERR_MMAP));
1143
+
261
1144
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
262
1145
  rb_define_const(mC_ResultCode, "IOERR_NOMEM", INT2FIX(SQLITE_IOERR_NOMEM));
263
1146
 
@@ -267,9 +1150,18 @@ void Init_amalgalite_constants( )
267
1150
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
268
1151
  rb_define_const(mC_ResultCode, "IOERR_READ", INT2FIX(SQLITE_IOERR_READ));
269
1152
 
1153
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1154
+ rb_define_const(mC_ResultCode, "IOERR_ROLLBACK_ATOMIC", INT2FIX(SQLITE_IOERR_ROLLBACK_ATOMIC));
1155
+
1156
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1157
+ rb_define_const(mC_ResultCode, "IOERR_SEEK", INT2FIX(SQLITE_IOERR_SEEK));
1158
+
270
1159
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
271
1160
  rb_define_const(mC_ResultCode, "IOERR_SHMLOCK", INT2FIX(SQLITE_IOERR_SHMLOCK));
272
1161
 
1162
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1163
+ rb_define_const(mC_ResultCode, "IOERR_SHMMAP", INT2FIX(SQLITE_IOERR_SHMMAP));
1164
+
273
1165
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
274
1166
  rb_define_const(mC_ResultCode, "IOERR_SHMOPEN", INT2FIX(SQLITE_IOERR_SHMOPEN));
275
1167
 
@@ -285,6 +1177,9 @@ void Init_amalgalite_constants( )
285
1177
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
286
1178
  rb_define_const(mC_ResultCode, "IOERR_UNLOCK", INT2FIX(SQLITE_IOERR_UNLOCK));
287
1179
 
1180
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1181
+ rb_define_const(mC_ResultCode, "IOERR_VNODE", INT2FIX(SQLITE_IOERR_VNODE));
1182
+
288
1183
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
289
1184
  rb_define_const(mC_ResultCode, "IOERR_WRITE", INT2FIX(SQLITE_IOERR_WRITE));
290
1185
 
@@ -294,6 +1189,9 @@ void Init_amalgalite_constants( )
294
1189
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
295
1190
  rb_define_const(mC_ResultCode, "LOCKED_SHAREDCACHE", INT2FIX(SQLITE_LOCKED_SHAREDCACHE));
296
1191
 
1192
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1193
+ rb_define_const(mC_ResultCode, "LOCKED_VTAB", INT2FIX(SQLITE_LOCKED_VTAB));
1194
+
297
1195
  /* 20 -- Data type mismatch */
298
1196
  rb_define_const(mC_ResultCode, "MISMATCH", INT2FIX(SQLITE_MISMATCH));
299
1197
 
@@ -312,9 +1210,24 @@ void Init_amalgalite_constants( )
312
1210
  /* 12 -- Unknown opcode in sqlite3_file_control() */
313
1211
  rb_define_const(mC_ResultCode, "NOTFOUND", INT2FIX(SQLITE_NOTFOUND));
314
1212
 
1213
+ /* 27 -- Notifications from sqlite3_log() */
1214
+ rb_define_const(mC_ResultCode, "NOTICE", INT2FIX(SQLITE_NOTICE));
1215
+
315
1216
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1217
+ rb_define_const(mC_ResultCode, "NOTICE_RECOVER_ROLLBACK", INT2FIX(SQLITE_NOTICE_RECOVER_ROLLBACK));
1218
+
1219
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1220
+ rb_define_const(mC_ResultCode, "NOTICE_RECOVER_WAL", INT2FIX(SQLITE_NOTICE_RECOVER_WAL));
1221
+
1222
+ /* 0 -- Successful result */
316
1223
  rb_define_const(mC_ResultCode, "OK", INT2FIX(SQLITE_OK));
317
1224
 
1225
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1226
+ rb_define_const(mC_ResultCode, "OK_LOAD_PERMANENTLY", INT2FIX(SQLITE_OK_LOAD_PERMANENTLY));
1227
+
1228
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1229
+ rb_define_const(mC_ResultCode, "OK_SYMLINK", INT2FIX(SQLITE_OK_SYMLINK));
1230
+
318
1231
  /* 3 -- Access permission denied */
319
1232
  rb_define_const(mC_ResultCode, "PERM", INT2FIX(SQLITE_PERM));
320
1233
 
@@ -327,6 +1240,24 @@ void Init_amalgalite_constants( )
327
1240
  /* 8 -- Attempt to write a readonly database */
328
1241
  rb_define_const(mC_ResultCode, "READONLY", INT2FIX(SQLITE_READONLY));
329
1242
 
1243
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1244
+ rb_define_const(mC_ResultCode, "READONLY_CANTINIT", INT2FIX(SQLITE_READONLY_CANTINIT));
1245
+
1246
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1247
+ rb_define_const(mC_ResultCode, "READONLY_CANTLOCK", INT2FIX(SQLITE_READONLY_CANTLOCK));
1248
+
1249
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1250
+ rb_define_const(mC_ResultCode, "READONLY_DBMOVED", INT2FIX(SQLITE_READONLY_DBMOVED));
1251
+
1252
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1253
+ rb_define_const(mC_ResultCode, "READONLY_DIRECTORY", INT2FIX(SQLITE_READONLY_DIRECTORY));
1254
+
1255
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1256
+ rb_define_const(mC_ResultCode, "READONLY_RECOVERY", INT2FIX(SQLITE_READONLY_RECOVERY));
1257
+
1258
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1259
+ rb_define_const(mC_ResultCode, "READONLY_ROLLBACK", INT2FIX(SQLITE_READONLY_ROLLBACK));
1260
+
330
1261
  /* 100 -- sqlite3_step() has another row ready */
331
1262
  rb_define_const(mC_ResultCode, "ROW", INT2FIX(SQLITE_ROW));
332
1263
 
@@ -336,15 +1267,72 @@ void Init_amalgalite_constants( )
336
1267
  /* 18 -- String or BLOB exceeds size limit */
337
1268
  rb_define_const(mC_ResultCode, "TOOBIG", INT2FIX(SQLITE_TOOBIG));
338
1269
 
1270
+ /* 28 -- Warnings from sqlite3_log() */
1271
+ rb_define_const(mC_ResultCode, "WARNING", INT2FIX(SQLITE_WARNING));
1272
+
1273
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1274
+ rb_define_const(mC_ResultCode, "WARNING_AUTOINDEX", INT2FIX(SQLITE_WARNING_AUTOINDEX));
1275
+
1276
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1277
+ rb_define_const(mC_SHM, "EXCLUSIVE", INT2FIX(SQLITE_SHM_EXCLUSIVE));
1278
+
1279
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1280
+ rb_define_const(mC_SHM, "LOCK", INT2FIX(SQLITE_SHM_LOCK));
1281
+
1282
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1283
+ rb_define_const(mC_SHM, "NLOCK", INT2FIX(SQLITE_SHM_NLOCK));
1284
+
1285
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1286
+ rb_define_const(mC_SHM, "SHARED", INT2FIX(SQLITE_SHM_SHARED));
1287
+
1288
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1289
+ rb_define_const(mC_SHM, "UNLOCK", INT2FIX(SQLITE_SHM_UNLOCK));
1290
+
1291
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1292
+ rb_define_const(mC_ScanStat, "EST", INT2FIX(SQLITE_SCANSTAT_EST));
1293
+
1294
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1295
+ rb_define_const(mC_ScanStat, "EXPLAIN", INT2FIX(SQLITE_SCANSTAT_EXPLAIN));
1296
+
1297
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1298
+ rb_define_const(mC_ScanStat, "NAME", INT2FIX(SQLITE_SCANSTAT_NAME));
1299
+
1300
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1301
+ rb_define_const(mC_ScanStat, "NLOOP", INT2FIX(SQLITE_SCANSTAT_NLOOP));
1302
+
1303
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1304
+ rb_define_const(mC_ScanStat, "NVISIT", INT2FIX(SQLITE_SCANSTAT_NVISIT));
1305
+
1306
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1307
+ rb_define_const(mC_ScanStat, "SELECTID", INT2FIX(SQLITE_SCANSTAT_SELECTID));
1308
+
1309
+ /* 0x001 -- Do no memory allocations */
1310
+ rb_define_const(mC_Serialize, "NOCOPY", INT2FIX(SQLITE_SERIALIZE_NOCOPY));
1311
+
1312
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1313
+ rb_define_const(mC_Session, "CONFIG_STRMSIZE", INT2FIX(SQLITE_SESSION_CONFIG_STRMSIZE));
1314
+
339
1315
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
340
1316
  rb_define_const(mC_StatementStatus, "AUTOINDEX", INT2FIX(SQLITE_STMTSTATUS_AUTOINDEX));
341
1317
 
342
1318
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
343
1319
  rb_define_const(mC_StatementStatus, "FULLSCAN_STEP", INT2FIX(SQLITE_STMTSTATUS_FULLSCAN_STEP));
344
1320
 
1321
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1322
+ rb_define_const(mC_StatementStatus, "MEMUSED", INT2FIX(SQLITE_STMTSTATUS_MEMUSED));
1323
+
1324
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1325
+ rb_define_const(mC_StatementStatus, "REPREPARE", INT2FIX(SQLITE_STMTSTATUS_REPREPARE));
1326
+
1327
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1328
+ rb_define_const(mC_StatementStatus, "RUN", INT2FIX(SQLITE_STMTSTATUS_RUN));
1329
+
345
1330
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
346
1331
  rb_define_const(mC_StatementStatus, "SORT", INT2FIX(SQLITE_STMTSTATUS_SORT));
347
1332
 
1333
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1334
+ rb_define_const(mC_StatementStatus, "VM_STEP", INT2FIX(SQLITE_STMTSTATUS_VM_STEP));
1335
+
348
1336
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
349
1337
  rb_define_const(mC_Status, "MALLOC_COUNT", INT2FIX(SQLITE_STATUS_MALLOC_COUNT));
350
1338
 
@@ -366,13 +1354,79 @@ void Init_amalgalite_constants( )
366
1354
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
367
1355
  rb_define_const(mC_Status, "PARSER_STACK", INT2FIX(SQLITE_STATUS_PARSER_STACK));
368
1356
 
369
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1357
+ /* 4 -- NOT USED */
370
1358
  rb_define_const(mC_Status, "SCRATCH_OVERFLOW", INT2FIX(SQLITE_STATUS_SCRATCH_OVERFLOW));
371
1359
 
372
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1360
+ /* 8 -- NOT USED */
373
1361
  rb_define_const(mC_Status, "SCRATCH_SIZE", INT2FIX(SQLITE_STATUS_SCRATCH_SIZE));
374
1362
 
375
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1363
+ /* 3 -- NOT USED */
376
1364
  rb_define_const(mC_Status, "SCRATCH_USED", INT2FIX(SQLITE_STATUS_SCRATCH_USED));
377
1365
 
1366
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1367
+ rb_define_const(mC_Sync, "DATAONLY", INT2FIX(SQLITE_SYNC_DATAONLY));
1368
+
1369
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1370
+ rb_define_const(mC_Sync, "FULL", INT2FIX(SQLITE_SYNC_FULL));
1371
+
1372
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1373
+ rb_define_const(mC_Sync, "NORMAL", INT2FIX(SQLITE_SYNC_NORMAL));
1374
+
1375
+ /* 5 -- Deprecated */
1376
+ rb_define_const(mC_TextEncoding, "ANY", INT2FIX(SQLITE_ANY));
1377
+
1378
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1379
+ rb_define_const(mC_TextEncoding, "DETERMINISTIC", INT2FIX(SQLITE_DETERMINISTIC));
1380
+
1381
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1382
+ rb_define_const(mC_TextEncoding, "DIRECTONLY", INT2FIX(SQLITE_DIRECTONLY));
1383
+
1384
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1385
+ rb_define_const(mC_TextEncoding, "INNOCUOUS", INT2FIX(SQLITE_INNOCUOUS));
1386
+
1387
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1388
+ rb_define_const(mC_TextEncoding, "SUBTYPE", INT2FIX(SQLITE_SUBTYPE));
1389
+
1390
+ /* 4 -- Use native byte order */
1391
+ rb_define_const(mC_TextEncoding, "UTF16", INT2FIX(SQLITE_UTF16));
1392
+
1393
+ /* 3 -- IMP: R-51971-34154 */
1394
+ rb_define_const(mC_TextEncoding, "UTF16BE", INT2FIX(SQLITE_UTF16BE));
1395
+
1396
+ /* 2 -- IMP: R-03371-37637 */
1397
+ rb_define_const(mC_TextEncoding, "UTF16LE", INT2FIX(SQLITE_UTF16LE));
1398
+
1399
+ /* 8 -- sqlite3_create_collation only */
1400
+ rb_define_const(mC_TextEncoding, "UTF16_ALIGNED", INT2FIX(SQLITE_UTF16_ALIGNED));
1401
+
1402
+ /* 1 -- IMP: R-37514-35566 */
1403
+ rb_define_const(mC_TextEncoding, "UTF8", INT2FIX(SQLITE_UTF8));
1404
+
1405
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1406
+ rb_define_const(mC_Trace, "CLOSE", INT2FIX(SQLITE_TRACE_CLOSE));
1407
+
1408
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1409
+ rb_define_const(mC_Trace, "PROFILE", INT2FIX(SQLITE_TRACE_PROFILE));
1410
+
1411
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1412
+ rb_define_const(mC_Trace, "ROW", INT2FIX(SQLITE_TRACE_ROW));
1413
+
1414
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1415
+ rb_define_const(mC_Trace, "STMT", INT2FIX(SQLITE_TRACE_STMT));
1416
+
1417
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1418
+ rb_define_const(mC_Transaction, "NONE", INT2FIX(SQLITE_TXN_NONE));
1419
+
1420
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1421
+ rb_define_const(mC_Transaction, "READ", INT2FIX(SQLITE_TXN_READ));
1422
+
1423
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1424
+ rb_define_const(mC_Transaction, "WRITE", INT2FIX(SQLITE_TXN_WRITE));
1425
+
1426
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1427
+ rb_define_const(mC_Win32, "DATA_DIRECTORY_TYPE", INT2FIX(SQLITE_WIN32_DATA_DIRECTORY_TYPE));
1428
+
1429
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1430
+ rb_define_const(mC_Win32, "TEMP_DIRECTORY_TYPE", INT2FIX(SQLITE_WIN32_TEMP_DIRECTORY_TYPE));
1431
+
378
1432
  }