amalgalite 1.5.0-x86-mingw32 → 1.6.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 915657dd71d6888ebd925c05fec0bec9a7f9f026
4
- data.tar.gz: db05c6a32bc02718ccbbca0fc70aa0eba3aa6c5e
3
+ metadata.gz: b72a5a503af26b0fe84fab620f1f6174f5365ee4
4
+ data.tar.gz: c8cad9ef7aa6a136576e9ffc75406b2ce024bf51
5
5
  SHA512:
6
- metadata.gz: cf34ffd7441190e85cd7708fd3eb83b5be2dc3725fc532fc7154bf7105667addb1c155b11b2fefa9af2fcbb492e00a2d2519adf85a60f3b0477bf5b5a86db01a
7
- data.tar.gz: 84e4bcc25aa566cd9c1df4fb16cc802807bb6e946dfd363b4a81f43539d975c2f03e29718d6a1c6470593eb9f5640ee0183268dccbb301c6ff77a300eaef8bb9
6
+ metadata.gz: 64f8cd8e90cb268f111a8bb97cff43756c9b7a14792c38409db02eb53cc44956469b73c284cc90cc67cb6b91b77807a3a58ea218a9d1456983b9f051014715c6
7
+ data.tar.gz: c6b55ac2f18b2a6ac914f9564f1a144dd8d8cd911bfb4f33b5306009beebc23956fc7a219b431028d11c66696958da2ef974cfa52cb15464b0a407b5f384a621
data/HISTORY.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Amalgalite Changelog
2
2
 
3
+ ## Version 1.6.0 - 2017-12-13
4
+
5
+ * Update to SQLite 3.21.0
6
+ * source id access methods
7
+ * Amalgalite::SQLite3::Version.compiled_source_id
8
+ * Amalgalite::SQLite3::Version.runtime_source_id
9
+ * enable new compile time options
10
+ * SQLITE_ENABLE_DBPAGE_VTAB
11
+ * SQLITE_ENABLE_MEMORY_MANAGEMENT
12
+ * SQLITE_ENABLE_PREUPDATE_HOOK
13
+ * SQLITE_ENABLE_SESSION
14
+ * SQLITE_ENABLE_STMTVTAB
15
+
3
16
  ## Version 1.5.0 - 2015-12-06
4
17
 
5
18
  * Update to SQLite 3.9.2
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.
data/README.md CHANGED
@@ -46,7 +46,7 @@ This is done using https://github.com/rake-compiler/rake-compiler-dock
46
46
  3. `gem install rake-compiler-dock`
47
47
  4. `rake-compiler-dock`
48
48
  5. `bundle`
49
- 6 `rake cross native gem`
49
+ 6. `rake cross native gem`
50
50
 
51
51
  ## CREDITS
52
52
 
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' , '~> 12.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' , '~> 5.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
@@ -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,36 @@ 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 Checkpoint
36
+ */
37
+ VALUE mC_Checkpoint = rb_define_module_under(mC, "Checkpoint");
38
+
19
39
  /**
20
40
  * module encapsulating the SQLite3 C extension constants for Config
21
41
  */
22
42
  VALUE mC_Config = rb_define_module_under(mC, "Config");
23
43
 
44
+ /**
45
+ * module encapsulating the SQLite3 C extension constants for DBConfig
46
+ */
47
+ VALUE mC_DBConfig = rb_define_module_under(mC, "DBConfig");
48
+
24
49
  /**
25
50
  * module encapsulating the SQLite3 C extension constants for DBStatus
26
51
  */
@@ -31,16 +56,71 @@ void Init_amalgalite_constants( )
31
56
  */
32
57
  VALUE mC_DataType = rb_define_module_under(mC, "DataType");
33
58
 
59
+ /**
60
+ * module encapsulating the SQLite3 C extension constants for FTS5
61
+ */
62
+ VALUE mC_FTS5 = rb_define_module_under(mC, "FTS5");
63
+
64
+ /**
65
+ * module encapsulating the SQLite3 C extension constants for Fcntl
66
+ */
67
+ VALUE mC_Fcntl = rb_define_module_under(mC, "Fcntl");
68
+
69
+ /**
70
+ * module encapsulating the SQLite3 C extension constants for IOCap
71
+ */
72
+ VALUE mC_IOCap = rb_define_module_under(mC, "IOCap");
73
+
74
+ /**
75
+ * module encapsulating the SQLite3 C extension constants for Index
76
+ */
77
+ VALUE mC_Index = rb_define_module_under(mC, "Index");
78
+
79
+ /**
80
+ * module encapsulating the SQLite3 C extension constants for Limit
81
+ */
82
+ VALUE mC_Limit = rb_define_module_under(mC, "Limit");
83
+
84
+ /**
85
+ * module encapsulating the SQLite3 C extension constants for Lock
86
+ */
87
+ VALUE mC_Lock = rb_define_module_under(mC, "Lock");
88
+
89
+ /**
90
+ * module encapsulating the SQLite3 C extension constants for Mutex
91
+ */
92
+ VALUE mC_Mutex = rb_define_module_under(mC, "Mutex");
93
+
34
94
  /**
35
95
  * module encapsulating the SQLite3 C extension constants for Open
36
96
  */
37
97
  VALUE mC_Open = rb_define_module_under(mC, "Open");
38
98
 
99
+ /**
100
+ * module encapsulating the SQLite3 C extension constants for Prepare
101
+ */
102
+ VALUE mC_Prepare = rb_define_module_under(mC, "Prepare");
103
+
104
+ /**
105
+ * module encapsulating the SQLite3 C extension constants for RTree
106
+ */
107
+ VALUE mC_RTree = rb_define_module_under(mC, "RTree");
108
+
39
109
  /**
40
110
  * module encapsulating the SQLite3 C extension constants for ResultCode
41
111
  */
42
112
  VALUE mC_ResultCode = rb_define_module_under(mC, "ResultCode");
43
113
 
114
+ /**
115
+ * module encapsulating the SQLite3 C extension constants for SHM
116
+ */
117
+ VALUE mC_SHM = rb_define_module_under(mC, "SHM");
118
+
119
+ /**
120
+ * module encapsulating the SQLite3 C extension constants for ScanStat
121
+ */
122
+ VALUE mC_ScanStat = rb_define_module_under(mC, "ScanStat");
123
+
44
124
  /**
45
125
  * module encapsulating the SQLite3 C extension constants for StatementStatus
46
126
  */
@@ -51,58 +131,307 @@ void Init_amalgalite_constants( )
51
131
  */
52
132
  VALUE mC_Status = rb_define_module_under(mC, "Status");
53
133
 
134
+ /**
135
+ * module encapsulating the SQLite3 C extension constants for Sync
136
+ */
137
+ VALUE mC_Sync = rb_define_module_under(mC, "Sync");
138
+
139
+ /**
140
+ * module encapsulating the SQLite3 C extension constants for TextEncoding
141
+ */
142
+ VALUE mC_TextEncoding = rb_define_module_under(mC, "TextEncoding");
143
+
144
+ /**
145
+ * module encapsulating the SQLite3 C extension constants for Trace
146
+ */
147
+ VALUE mC_Trace = rb_define_module_under(mC, "Trace");
148
+
54
149
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
55
- rb_define_const(mC_Config, "GETMALLOC", INT2FIX(SQLITE_CONFIG_GETMALLOC));
150
+ rb_define_const(mC_Access, "EXISTS", INT2FIX(SQLITE_ACCESS_EXISTS));
151
+
152
+ /* 2 -- Unused */
153
+ rb_define_const(mC_Access, "READ", INT2FIX(SQLITE_ACCESS_READ));
154
+
155
+ /* 1 -- Used by PRAGMA temp_store_directory */
156
+ rb_define_const(mC_Access, "READWRITE", INT2FIX(SQLITE_ACCESS_READWRITE));
157
+
158
+ /* 26 -- Database Name Table Name */
159
+ rb_define_const(mC_Authorizer, "ALTER_TABLE", INT2FIX(SQLITE_ALTER_TABLE));
160
+
161
+ /* 28 -- Table Name NULL */
162
+ rb_define_const(mC_Authorizer, "ANALYZE", INT2FIX(SQLITE_ANALYZE));
163
+
164
+ /* 24 -- Filename NULL */
165
+ rb_define_const(mC_Authorizer, "ATTACH", INT2FIX(SQLITE_ATTACH));
166
+
167
+ /* 0 -- No longer used */
168
+ rb_define_const(mC_Authorizer, "COPY", INT2FIX(SQLITE_COPY));
169
+
170
+ /* 1 -- Index Name Table Name */
171
+ rb_define_const(mC_Authorizer, "CREATE_INDEX", INT2FIX(SQLITE_CREATE_INDEX));
172
+
173
+ /* 2 -- Table Name NULL */
174
+ rb_define_const(mC_Authorizer, "CREATE_TABLE", INT2FIX(SQLITE_CREATE_TABLE));
175
+
176
+ /* 3 -- Index Name Table Name */
177
+ rb_define_const(mC_Authorizer, "CREATE_TEMP_INDEX", INT2FIX(SQLITE_CREATE_TEMP_INDEX));
178
+
179
+ /* 4 -- Table Name NULL */
180
+ rb_define_const(mC_Authorizer, "CREATE_TEMP_TABLE", INT2FIX(SQLITE_CREATE_TEMP_TABLE));
181
+
182
+ /* 5 -- Trigger Name Table Name */
183
+ rb_define_const(mC_Authorizer, "CREATE_TEMP_TRIGGER", INT2FIX(SQLITE_CREATE_TEMP_TRIGGER));
184
+
185
+ /* 6 -- View Name NULL */
186
+ rb_define_const(mC_Authorizer, "CREATE_TEMP_VIEW", INT2FIX(SQLITE_CREATE_TEMP_VIEW));
187
+
188
+ /* 7 -- Trigger Name Table Name */
189
+ rb_define_const(mC_Authorizer, "CREATE_TRIGGER", INT2FIX(SQLITE_CREATE_TRIGGER));
190
+
191
+ /* 8 -- View Name NULL */
192
+ rb_define_const(mC_Authorizer, "CREATE_VIEW", INT2FIX(SQLITE_CREATE_VIEW));
193
+
194
+ /* 29 -- Table Name Module Name */
195
+ rb_define_const(mC_Authorizer, "CREATE_VTABLE", INT2FIX(SQLITE_CREATE_VTABLE));
196
+
197
+ /* 9 -- Table Name NULL */
198
+ rb_define_const(mC_Authorizer, "DELETE", INT2FIX(SQLITE_DELETE));
199
+
200
+ /* 1 -- Abort the SQL statement with an error */
201
+ rb_define_const(mC_Authorizer, "DENY", INT2FIX(SQLITE_DENY));
202
+
203
+ /* 25 -- Database Name NULL */
204
+ rb_define_const(mC_Authorizer, "DETACH", INT2FIX(SQLITE_DETACH));
205
+
206
+ /* 10 -- Index Name Table Name */
207
+ rb_define_const(mC_Authorizer, "DROP_INDEX", INT2FIX(SQLITE_DROP_INDEX));
208
+
209
+ /* 11 -- Table Name NULL */
210
+ rb_define_const(mC_Authorizer, "DROP_TABLE", INT2FIX(SQLITE_DROP_TABLE));
211
+
212
+ /* 12 -- Index Name Table Name */
213
+ rb_define_const(mC_Authorizer, "DROP_TEMP_INDEX", INT2FIX(SQLITE_DROP_TEMP_INDEX));
214
+
215
+ /* 13 -- Table Name NULL */
216
+ rb_define_const(mC_Authorizer, "DROP_TEMP_TABLE", INT2FIX(SQLITE_DROP_TEMP_TABLE));
217
+
218
+ /* 14 -- Trigger Name Table Name */
219
+ rb_define_const(mC_Authorizer, "DROP_TEMP_TRIGGER", INT2FIX(SQLITE_DROP_TEMP_TRIGGER));
220
+
221
+ /* 15 -- View Name NULL */
222
+ rb_define_const(mC_Authorizer, "DROP_TEMP_VIEW", INT2FIX(SQLITE_DROP_TEMP_VIEW));
223
+
224
+ /* 16 -- Trigger Name Table Name */
225
+ rb_define_const(mC_Authorizer, "DROP_TRIGGER", INT2FIX(SQLITE_DROP_TRIGGER));
226
+
227
+ /* 17 -- View Name NULL */
228
+ rb_define_const(mC_Authorizer, "DROP_VIEW", INT2FIX(SQLITE_DROP_VIEW));
229
+
230
+ /* 30 -- Table Name Module Name */
231
+ rb_define_const(mC_Authorizer, "DROP_VTABLE", INT2FIX(SQLITE_DROP_VTABLE));
232
+
233
+ /* 31 -- NULL Function Name */
234
+ rb_define_const(mC_Authorizer, "FUNCTION", INT2FIX(SQLITE_FUNCTION));
235
+
236
+ /* 2 -- Don't allow access, but don't generate an error */
237
+ rb_define_const(mC_Authorizer, "IGNORE", INT2FIX(SQLITE_IGNORE));
238
+
239
+ /* 18 -- Table Name NULL */
240
+ rb_define_const(mC_Authorizer, "INSERT", INT2FIX(SQLITE_INSERT));
241
+
242
+ /* 19 -- Pragma Name 1st arg or NULL */
243
+ rb_define_const(mC_Authorizer, "PRAGMA", INT2FIX(SQLITE_PRAGMA));
244
+
245
+ /* 20 -- Table Name Column Name */
246
+ rb_define_const(mC_Authorizer, "READ", INT2FIX(SQLITE_READ));
247
+
248
+ /* 33 -- NULL NULL */
249
+ rb_define_const(mC_Authorizer, "RECURSIVE", INT2FIX(SQLITE_RECURSIVE));
250
+
251
+ /* 27 -- Index Name NULL */
252
+ rb_define_const(mC_Authorizer, "REINDEX", INT2FIX(SQLITE_REINDEX));
253
+
254
+ /* 32 -- Operation Savepoint Name */
255
+ rb_define_const(mC_Authorizer, "SAVEPOINT", INT2FIX(SQLITE_SAVEPOINT));
256
+
257
+ /* 21 -- NULL NULL */
258
+ rb_define_const(mC_Authorizer, "SELECT", INT2FIX(SQLITE_SELECT));
259
+
260
+ /* 22 -- Operation NULL */
261
+ rb_define_const(mC_Authorizer, "TRANSACTION", INT2FIX(SQLITE_TRANSACTION));
262
+
263
+ /* 23 -- Table Name Column Name */
264
+ rb_define_const(mC_Authorizer, "UPDATE", INT2FIX(SQLITE_UPDATE));
56
265
 
57
266
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
58
- rb_define_const(mC_Config, "GETMUTEX", INT2FIX(SQLITE_CONFIG_GETMUTEX));
267
+ rb_define_const(mC_Changeset, "ABORT", INT2FIX(SQLITE_CHANGESET_ABORT));
59
268
 
60
269
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
61
- rb_define_const(mC_Config, "GETPCACHE", INT2FIX(SQLITE_CONFIG_GETPCACHE));
270
+ rb_define_const(mC_Changeset, "CONFLICT", INT2FIX(SQLITE_CHANGESET_CONFLICT));
62
271
 
63
272
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
64
- rb_define_const(mC_Config, "HEAP", INT2FIX(SQLITE_CONFIG_HEAP));
273
+ rb_define_const(mC_Changeset, "CONSTRAINT", INT2FIX(SQLITE_CHANGESET_CONSTRAINT));
65
274
 
66
275
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
67
- rb_define_const(mC_Config, "LOG", INT2FIX(SQLITE_CONFIG_LOG));
276
+ rb_define_const(mC_Changeset, "DATA", INT2FIX(SQLITE_CHANGESET_DATA));
68
277
 
69
278
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
70
- rb_define_const(mC_Config, "LOOKASIDE", INT2FIX(SQLITE_CONFIG_LOOKASIDE));
279
+ rb_define_const(mC_Changeset, "FOREIGN_KEY", INT2FIX(SQLITE_CHANGESET_FOREIGN_KEY));
71
280
 
72
281
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
73
- rb_define_const(mC_Config, "MALLOC", INT2FIX(SQLITE_CONFIG_MALLOC));
282
+ rb_define_const(mC_Changeset, "NOTFOUND", INT2FIX(SQLITE_CHANGESET_NOTFOUND));
74
283
 
75
284
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
76
- rb_define_const(mC_Config, "MEMSTATUS", INT2FIX(SQLITE_CONFIG_MEMSTATUS));
285
+ rb_define_const(mC_Changeset, "OMIT", INT2FIX(SQLITE_CHANGESET_OMIT));
77
286
 
78
287
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
288
+ rb_define_const(mC_Changeset, "REPLACE", INT2FIX(SQLITE_CHANGESET_REPLACE));
289
+
290
+ /* 1 -- Wait for writers, then checkpoint */
291
+ rb_define_const(mC_Checkpoint, "FULL", INT2FIX(SQLITE_CHECKPOINT_FULL));
292
+
293
+ /* 0 -- Do as much as possible w/o blocking */
294
+ rb_define_const(mC_Checkpoint, "PASSIVE", INT2FIX(SQLITE_CHECKPOINT_PASSIVE));
295
+
296
+ /* 2 -- Like FULL but wait for for readers */
297
+ rb_define_const(mC_Checkpoint, "RESTART", INT2FIX(SQLITE_CHECKPOINT_RESTART));
298
+
299
+ /* 3 -- Like RESTART but also truncate WAL */
300
+ rb_define_const(mC_Checkpoint, "TRUNCATE", INT2FIX(SQLITE_CHECKPOINT_TRUNCATE));
301
+
302
+ /* 20 -- int */
303
+ rb_define_const(mC_Config, "COVERING_INDEX_SCAN", INT2FIX(SQLITE_CONFIG_COVERING_INDEX_SCAN));
304
+
305
+ /* 5 -- sqlite3_mem_methods* */
306
+ rb_define_const(mC_Config, "GETMALLOC", INT2FIX(SQLITE_CONFIG_GETMALLOC));
307
+
308
+ /* 11 -- sqlite3_mutex_methods* */
309
+ rb_define_const(mC_Config, "GETMUTEX", INT2FIX(SQLITE_CONFIG_GETMUTEX));
310
+
311
+ /* 15 -- no-op */
312
+ rb_define_const(mC_Config, "GETPCACHE", INT2FIX(SQLITE_CONFIG_GETPCACHE));
313
+
314
+ /* 19 -- sqlite3_pcache_methods2* */
315
+ rb_define_const(mC_Config, "GETPCACHE2", INT2FIX(SQLITE_CONFIG_GETPCACHE2));
316
+
317
+ /* 8 -- void*, int nByte, int min */
318
+ rb_define_const(mC_Config, "HEAP", INT2FIX(SQLITE_CONFIG_HEAP));
319
+
320
+ /* 16 -- xFunc, void* */
321
+ rb_define_const(mC_Config, "LOG", INT2FIX(SQLITE_CONFIG_LOG));
322
+
323
+ /* 13 -- int int */
324
+ rb_define_const(mC_Config, "LOOKASIDE", INT2FIX(SQLITE_CONFIG_LOOKASIDE));
325
+
326
+ /* 4 -- sqlite3_mem_methods* */
327
+ rb_define_const(mC_Config, "MALLOC", INT2FIX(SQLITE_CONFIG_MALLOC));
328
+
329
+ /* 9 -- boolean */
330
+ rb_define_const(mC_Config, "MEMSTATUS", INT2FIX(SQLITE_CONFIG_MEMSTATUS));
331
+
332
+ /* 22 -- sqlite3_int64, sqlite3_int64 */
333
+ rb_define_const(mC_Config, "MMAP_SIZE", INT2FIX(SQLITE_CONFIG_MMAP_SIZE));
334
+
335
+ /* 2 -- nil */
79
336
  rb_define_const(mC_Config, "MULTITHREAD", INT2FIX(SQLITE_CONFIG_MULTITHREAD));
80
337
 
81
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
338
+ /* 10 -- sqlite3_mutex_methods* */
82
339
  rb_define_const(mC_Config, "MUTEX", INT2FIX(SQLITE_CONFIG_MUTEX));
83
340
 
84
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
341
+ /* 7 -- void*, int sz, int N */
85
342
  rb_define_const(mC_Config, "PAGECACHE", INT2FIX(SQLITE_CONFIG_PAGECACHE));
86
343
 
87
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
344
+ /* 14 -- no-op */
88
345
  rb_define_const(mC_Config, "PCACHE", INT2FIX(SQLITE_CONFIG_PCACHE));
89
346
 
90
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
347
+ /* 18 -- sqlite3_pcache_methods2* */
348
+ rb_define_const(mC_Config, "PCACHE2", INT2FIX(SQLITE_CONFIG_PCACHE2));
349
+
350
+ /* 24 -- int *psz */
351
+ rb_define_const(mC_Config, "PCACHE_HDRSZ", INT2FIX(SQLITE_CONFIG_PCACHE_HDRSZ));
352
+
353
+ /* 25 -- unsigned int szPma */
354
+ rb_define_const(mC_Config, "PMASZ", INT2FIX(SQLITE_CONFIG_PMASZ));
355
+
356
+ /* 6 -- No longer used */
91
357
  rb_define_const(mC_Config, "SCRATCH", INT2FIX(SQLITE_CONFIG_SCRATCH));
92
358
 
93
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
359
+ /* 3 -- nil */
94
360
  rb_define_const(mC_Config, "SERIALIZED", INT2FIX(SQLITE_CONFIG_SERIALIZED));
95
361
 
96
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
362
+ /* 1 -- nil */
97
363
  rb_define_const(mC_Config, "SINGLETHREAD", INT2FIX(SQLITE_CONFIG_SINGLETHREAD));
98
364
 
365
+ /* 27 -- boolean */
366
+ rb_define_const(mC_Config, "SMALL_MALLOC", INT2FIX(SQLITE_CONFIG_SMALL_MALLOC));
367
+
368
+ /* 21 -- xSqllog, void* */
369
+ rb_define_const(mC_Config, "SQLLOG", INT2FIX(SQLITE_CONFIG_SQLLOG));
370
+
371
+ /* 26 -- int nByte */
372
+ rb_define_const(mC_Config, "STMTJRNL_SPILL", INT2FIX(SQLITE_CONFIG_STMTJRNL_SPILL));
373
+
374
+ /* 17 -- int */
375
+ rb_define_const(mC_Config, "URI", INT2FIX(SQLITE_CONFIG_URI));
376
+
377
+ /* 23 -- int nByte */
378
+ rb_define_const(mC_Config, "WIN32_HEAPSIZE", INT2FIX(SQLITE_CONFIG_WIN32_HEAPSIZE));
379
+
380
+ /* 1002 -- int int* */
381
+ rb_define_const(mC_DBConfig, "ENABLE_FKEY", INT2FIX(SQLITE_DBCONFIG_ENABLE_FKEY));
382
+
383
+ /* 1004 -- int int* */
384
+ rb_define_const(mC_DBConfig, "ENABLE_FTS3_TOKENIZER", INT2FIX(SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER));
385
+
386
+ /* 1005 -- int int* */
387
+ rb_define_const(mC_DBConfig, "ENABLE_LOAD_EXTENSION", INT2FIX(SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION));
388
+
389
+ /* 1007 -- int int* */
390
+ rb_define_const(mC_DBConfig, "ENABLE_QPSG", INT2FIX(SQLITE_DBCONFIG_ENABLE_QPSG));
391
+
392
+ /* 1003 -- int int* */
393
+ rb_define_const(mC_DBConfig, "ENABLE_TRIGGER", INT2FIX(SQLITE_DBCONFIG_ENABLE_TRIGGER));
394
+
395
+ /* 1001 -- void* int int */
396
+ rb_define_const(mC_DBConfig, "LOOKASIDE", INT2FIX(SQLITE_DBCONFIG_LOOKASIDE));
397
+
398
+ /* 1000 -- const char* */
399
+ rb_define_const(mC_DBConfig, "MAINDBNAME", INT2FIX(SQLITE_DBCONFIG_MAINDBNAME));
400
+
401
+ /* 1006 -- int int* */
402
+ rb_define_const(mC_DBConfig, "NO_CKPT_ON_CLOSE", INT2FIX(SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE));
403
+
404
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
405
+ rb_define_const(mC_DBStatus, "CACHE_HIT", INT2FIX(SQLITE_DBSTATUS_CACHE_HIT));
406
+
407
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
408
+ rb_define_const(mC_DBStatus, "CACHE_MISS", INT2FIX(SQLITE_DBSTATUS_CACHE_MISS));
409
+
99
410
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
100
411
  rb_define_const(mC_DBStatus, "CACHE_USED", INT2FIX(SQLITE_DBSTATUS_CACHE_USED));
101
412
 
102
413
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
103
- rb_define_const(mC_DBStatus, "LOOKASIDE_USED", INT2FIX(SQLITE_DBSTATUS_LOOKASIDE_USED));
414
+ rb_define_const(mC_DBStatus, "CACHE_USED_SHARED", INT2FIX(SQLITE_DBSTATUS_CACHE_USED_SHARED));
415
+
416
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
417
+ rb_define_const(mC_DBStatus, "CACHE_WRITE", INT2FIX(SQLITE_DBSTATUS_CACHE_WRITE));
418
+
419
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
420
+ rb_define_const(mC_DBStatus, "DEFERRED_FKS", INT2FIX(SQLITE_DBSTATUS_DEFERRED_FKS));
104
421
 
105
422
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
423
+ rb_define_const(mC_DBStatus, "LOOKASIDE_HIT", INT2FIX(SQLITE_DBSTATUS_LOOKASIDE_HIT));
424
+
425
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
426
+ rb_define_const(mC_DBStatus, "LOOKASIDE_MISS_FULL", INT2FIX(SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL));
427
+
428
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
429
+ rb_define_const(mC_DBStatus, "LOOKASIDE_MISS_SIZE", INT2FIX(SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE));
430
+
431
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
432
+ rb_define_const(mC_DBStatus, "LOOKASIDE_USED", INT2FIX(SQLITE_DBSTATUS_LOOKASIDE_USED));
433
+
434
+ /* 11 -- Largest defined DBSTATUS */
106
435
  rb_define_const(mC_DBStatus, "MAX", INT2FIX(SQLITE_DBSTATUS_MAX));
107
436
 
108
437
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
@@ -111,6 +440,9 @@ void Init_amalgalite_constants( )
111
440
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
112
441
  rb_define_const(mC_DBStatus, "STMT_USED", INT2FIX(SQLITE_DBSTATUS_STMT_USED));
113
442
 
443
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
444
+ rb_define_const(mC_DataType, "TEXT", INT2FIX(SQLITE3_TEXT));
445
+
114
446
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
115
447
  rb_define_const(mC_DataType, "BLOB", INT2FIX(SQLITE_BLOB));
116
448
 
@@ -124,96 +456,462 @@ void Init_amalgalite_constants( )
124
456
  rb_define_const(mC_DataType, "NULL", INT2FIX(SQLITE_NULL));
125
457
 
126
458
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
127
- rb_define_const(mC_DataType, "TEXT", INT2FIX(SQLITE_TEXT));
459
+ rb_define_const(mC_FTS5, "TOKENIZE_AUX", INT2FIX(FTS5_TOKENIZE_AUX));
128
460
 
129
461
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
130
- rb_define_const(mC_Open, "AUTOPROXY", INT2FIX(SQLITE_OPEN_AUTOPROXY));
462
+ rb_define_const(mC_FTS5, "TOKENIZE_DOCUMENT", INT2FIX(FTS5_TOKENIZE_DOCUMENT));
131
463
 
132
464
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
133
- rb_define_const(mC_Open, "CREATE", INT2FIX(SQLITE_OPEN_CREATE));
465
+ rb_define_const(mC_FTS5, "TOKENIZE_PREFIX", INT2FIX(FTS5_TOKENIZE_PREFIX));
134
466
 
135
467
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
136
- rb_define_const(mC_Open, "DELETEONCLOSE", INT2FIX(SQLITE_OPEN_DELETEONCLOSE));
468
+ rb_define_const(mC_FTS5, "TOKENIZE_QUERY", INT2FIX(FTS5_TOKENIZE_QUERY));
469
+
470
+ /* 0x0001 -- Same position as prev. token */
471
+ rb_define_const(mC_FTS5, "TOKEN_COLOCATED", INT2FIX(FTS5_TOKEN_COLOCATED));
137
472
 
138
473
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
139
- rb_define_const(mC_Open, "EXCLUSIVE", INT2FIX(SQLITE_OPEN_EXCLUSIVE));
474
+ rb_define_const(mC_Fcntl, "BEGIN_ATOMIC_WRITE", INT2FIX(SQLITE_FCNTL_BEGIN_ATOMIC_WRITE));
140
475
 
141
476
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
142
- rb_define_const(mC_Open, "FULLMUTEX", INT2FIX(SQLITE_OPEN_FULLMUTEX));
477
+ rb_define_const(mC_Fcntl, "BUSYHANDLER", INT2FIX(SQLITE_FCNTL_BUSYHANDLER));
143
478
 
144
479
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
145
- rb_define_const(mC_Open, "MAIN_DB", INT2FIX(SQLITE_OPEN_MAIN_DB));
480
+ rb_define_const(mC_Fcntl, "CHUNK_SIZE", INT2FIX(SQLITE_FCNTL_CHUNK_SIZE));
146
481
 
147
482
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
148
- rb_define_const(mC_Open, "MAIN_JOURNAL", INT2FIX(SQLITE_OPEN_MAIN_JOURNAL));
483
+ rb_define_const(mC_Fcntl, "COMMIT_ATOMIC_WRITE", INT2FIX(SQLITE_FCNTL_COMMIT_ATOMIC_WRITE));
149
484
 
150
485
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
151
- rb_define_const(mC_Open, "MASTER_JOURNAL", INT2FIX(SQLITE_OPEN_MASTER_JOURNAL));
486
+ rb_define_const(mC_Fcntl, "COMMIT_PHASETWO", INT2FIX(SQLITE_FCNTL_COMMIT_PHASETWO));
152
487
 
153
488
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
154
- rb_define_const(mC_Open, "NOMUTEX", INT2FIX(SQLITE_OPEN_NOMUTEX));
489
+ rb_define_const(mC_Fcntl, "FILE_POINTER", INT2FIX(SQLITE_FCNTL_FILE_POINTER));
155
490
 
156
491
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
157
- rb_define_const(mC_Open, "PRIVATECACHE", INT2FIX(SQLITE_OPEN_PRIVATECACHE));
492
+ rb_define_const(mC_Fcntl, "GET_LOCKPROXYFILE", INT2FIX(SQLITE_FCNTL_GET_LOCKPROXYFILE));
158
493
 
159
494
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
160
- rb_define_const(mC_Open, "READONLY", INT2FIX(SQLITE_OPEN_READONLY));
495
+ rb_define_const(mC_Fcntl, "HAS_MOVED", INT2FIX(SQLITE_FCNTL_HAS_MOVED));
161
496
 
162
497
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
163
- rb_define_const(mC_Open, "READWRITE", INT2FIX(SQLITE_OPEN_READWRITE));
498
+ rb_define_const(mC_Fcntl, "JOURNAL_POINTER", INT2FIX(SQLITE_FCNTL_JOURNAL_POINTER));
164
499
 
165
500
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
166
- rb_define_const(mC_Open, "SHAREDCACHE", INT2FIX(SQLITE_OPEN_SHAREDCACHE));
501
+ rb_define_const(mC_Fcntl, "LAST_ERRNO", INT2FIX(SQLITE_FCNTL_LAST_ERRNO));
167
502
 
168
503
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
169
- rb_define_const(mC_Open, "SUBJOURNAL", INT2FIX(SQLITE_OPEN_SUBJOURNAL));
504
+ rb_define_const(mC_Fcntl, "LOCKSTATE", INT2FIX(SQLITE_FCNTL_LOCKSTATE));
170
505
 
171
506
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
172
- rb_define_const(mC_Open, "TEMP_DB", INT2FIX(SQLITE_OPEN_TEMP_DB));
507
+ rb_define_const(mC_Fcntl, "MMAP_SIZE", INT2FIX(SQLITE_FCNTL_MMAP_SIZE));
173
508
 
174
509
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
175
- rb_define_const(mC_Open, "TEMP_JOURNAL", INT2FIX(SQLITE_OPEN_TEMP_JOURNAL));
510
+ rb_define_const(mC_Fcntl, "OVERWRITE", INT2FIX(SQLITE_FCNTL_OVERWRITE));
176
511
 
177
512
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
178
- rb_define_const(mC_Open, "TRANSIENT_DB", INT2FIX(SQLITE_OPEN_TRANSIENT_DB));
513
+ rb_define_const(mC_Fcntl, "PDB", INT2FIX(SQLITE_FCNTL_PDB));
514
+
515
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
516
+ rb_define_const(mC_Fcntl, "PERSIST_WAL", INT2FIX(SQLITE_FCNTL_PERSIST_WAL));
517
+
518
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
519
+ rb_define_const(mC_Fcntl, "POWERSAFE_OVERWRITE", INT2FIX(SQLITE_FCNTL_POWERSAFE_OVERWRITE));
520
+
521
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
522
+ rb_define_const(mC_Fcntl, "PRAGMA", INT2FIX(SQLITE_FCNTL_PRAGMA));
523
+
524
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
525
+ rb_define_const(mC_Fcntl, "RBU", INT2FIX(SQLITE_FCNTL_RBU));
526
+
527
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
528
+ rb_define_const(mC_Fcntl, "ROLLBACK_ATOMIC_WRITE", INT2FIX(SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE));
529
+
530
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
531
+ rb_define_const(mC_Fcntl, "SET_LOCKPROXYFILE", INT2FIX(SQLITE_FCNTL_SET_LOCKPROXYFILE));
532
+
533
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
534
+ rb_define_const(mC_Fcntl, "SIZE_HINT", INT2FIX(SQLITE_FCNTL_SIZE_HINT));
535
+
536
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
537
+ rb_define_const(mC_Fcntl, "SYNC", INT2FIX(SQLITE_FCNTL_SYNC));
538
+
539
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
540
+ rb_define_const(mC_Fcntl, "SYNC_OMITTED", INT2FIX(SQLITE_FCNTL_SYNC_OMITTED));
541
+
542
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
543
+ rb_define_const(mC_Fcntl, "TEMPFILENAME", INT2FIX(SQLITE_FCNTL_TEMPFILENAME));
544
+
545
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
546
+ rb_define_const(mC_Fcntl, "TRACE", INT2FIX(SQLITE_FCNTL_TRACE));
547
+
548
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
549
+ rb_define_const(mC_Fcntl, "VFSNAME", INT2FIX(SQLITE_FCNTL_VFSNAME));
550
+
551
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
552
+ rb_define_const(mC_Fcntl, "VFS_POINTER", INT2FIX(SQLITE_FCNTL_VFS_POINTER));
553
+
554
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
555
+ rb_define_const(mC_Fcntl, "WAL_BLOCK", INT2FIX(SQLITE_FCNTL_WAL_BLOCK));
556
+
557
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
558
+ rb_define_const(mC_Fcntl, "WIN32_AV_RETRY", INT2FIX(SQLITE_FCNTL_WIN32_AV_RETRY));
559
+
560
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
561
+ rb_define_const(mC_Fcntl, "WIN32_GET_HANDLE", INT2FIX(SQLITE_FCNTL_WIN32_GET_HANDLE));
562
+
563
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
564
+ rb_define_const(mC_Fcntl, "WIN32_SET_HANDLE", INT2FIX(SQLITE_FCNTL_WIN32_SET_HANDLE));
565
+
566
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
567
+ rb_define_const(mC_Fcntl, "ZIPVFS", INT2FIX(SQLITE_FCNTL_ZIPVFS));
568
+
569
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
570
+ rb_define_const(mC_IOCap, "ATOMIC", INT2FIX(SQLITE_IOCAP_ATOMIC));
571
+
572
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
573
+ rb_define_const(mC_IOCap, "ATOMIC16K", INT2FIX(SQLITE_IOCAP_ATOMIC16K));
574
+
575
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
576
+ rb_define_const(mC_IOCap, "ATOMIC1K", INT2FIX(SQLITE_IOCAP_ATOMIC1K));
577
+
578
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
579
+ rb_define_const(mC_IOCap, "ATOMIC2K", INT2FIX(SQLITE_IOCAP_ATOMIC2K));
580
+
581
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
582
+ rb_define_const(mC_IOCap, "ATOMIC32K", INT2FIX(SQLITE_IOCAP_ATOMIC32K));
583
+
584
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
585
+ rb_define_const(mC_IOCap, "ATOMIC4K", INT2FIX(SQLITE_IOCAP_ATOMIC4K));
586
+
587
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
588
+ rb_define_const(mC_IOCap, "ATOMIC512", INT2FIX(SQLITE_IOCAP_ATOMIC512));
589
+
590
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
591
+ rb_define_const(mC_IOCap, "ATOMIC64K", INT2FIX(SQLITE_IOCAP_ATOMIC64K));
592
+
593
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
594
+ rb_define_const(mC_IOCap, "ATOMIC8K", INT2FIX(SQLITE_IOCAP_ATOMIC8K));
595
+
596
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
597
+ rb_define_const(mC_IOCap, "BATCH_ATOMIC", INT2FIX(SQLITE_IOCAP_BATCH_ATOMIC));
598
+
599
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
600
+ rb_define_const(mC_IOCap, "IMMUTABLE", INT2FIX(SQLITE_IOCAP_IMMUTABLE));
601
+
602
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
603
+ rb_define_const(mC_IOCap, "POWERSAFE_OVERWRITE", INT2FIX(SQLITE_IOCAP_POWERSAFE_OVERWRITE));
604
+
605
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
606
+ rb_define_const(mC_IOCap, "SAFE_APPEND", INT2FIX(SQLITE_IOCAP_SAFE_APPEND));
607
+
608
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
609
+ rb_define_const(mC_IOCap, "SEQUENTIAL", INT2FIX(SQLITE_IOCAP_SEQUENTIAL));
610
+
611
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
612
+ rb_define_const(mC_IOCap, "UNDELETABLE_WHEN_OPEN", INT2FIX(SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN));
613
+
614
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
615
+ rb_define_const(mC_Index, "CONSTRAINT_EQ", INT2FIX(SQLITE_INDEX_CONSTRAINT_EQ));
616
+
617
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
618
+ rb_define_const(mC_Index, "CONSTRAINT_GE", INT2FIX(SQLITE_INDEX_CONSTRAINT_GE));
619
+
620
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
621
+ rb_define_const(mC_Index, "CONSTRAINT_GLOB", INT2FIX(SQLITE_INDEX_CONSTRAINT_GLOB));
622
+
623
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
624
+ rb_define_const(mC_Index, "CONSTRAINT_GT", INT2FIX(SQLITE_INDEX_CONSTRAINT_GT));
625
+
626
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
627
+ rb_define_const(mC_Index, "CONSTRAINT_IS", INT2FIX(SQLITE_INDEX_CONSTRAINT_IS));
628
+
629
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
630
+ rb_define_const(mC_Index, "CONSTRAINT_ISNOT", INT2FIX(SQLITE_INDEX_CONSTRAINT_ISNOT));
631
+
632
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
633
+ rb_define_const(mC_Index, "CONSTRAINT_ISNOTNULL", INT2FIX(SQLITE_INDEX_CONSTRAINT_ISNOTNULL));
634
+
635
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
636
+ rb_define_const(mC_Index, "CONSTRAINT_ISNULL", INT2FIX(SQLITE_INDEX_CONSTRAINT_ISNULL));
637
+
638
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
639
+ rb_define_const(mC_Index, "CONSTRAINT_LE", INT2FIX(SQLITE_INDEX_CONSTRAINT_LE));
640
+
641
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
642
+ rb_define_const(mC_Index, "CONSTRAINT_LIKE", INT2FIX(SQLITE_INDEX_CONSTRAINT_LIKE));
643
+
644
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
645
+ rb_define_const(mC_Index, "CONSTRAINT_LT", INT2FIX(SQLITE_INDEX_CONSTRAINT_LT));
646
+
647
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
648
+ rb_define_const(mC_Index, "CONSTRAINT_MATCH", INT2FIX(SQLITE_INDEX_CONSTRAINT_MATCH));
649
+
650
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
651
+ rb_define_const(mC_Index, "CONSTRAINT_NE", INT2FIX(SQLITE_INDEX_CONSTRAINT_NE));
652
+
653
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
654
+ rb_define_const(mC_Index, "CONSTRAINT_REGEXP", INT2FIX(SQLITE_INDEX_CONSTRAINT_REGEXP));
655
+
656
+ /* 1 -- Scan visits at most 1 row */
657
+ rb_define_const(mC_Index, "SCAN_UNIQUE", INT2FIX(SQLITE_INDEX_SCAN_UNIQUE));
658
+
659
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
660
+ rb_define_const(mC_Limit, "ATTACHED", INT2FIX(SQLITE_LIMIT_ATTACHED));
661
+
662
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
663
+ rb_define_const(mC_Limit, "COLUMN", INT2FIX(SQLITE_LIMIT_COLUMN));
664
+
665
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
666
+ rb_define_const(mC_Limit, "COMPOUND_SELECT", INT2FIX(SQLITE_LIMIT_COMPOUND_SELECT));
667
+
668
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
669
+ rb_define_const(mC_Limit, "EXPR_DEPTH", INT2FIX(SQLITE_LIMIT_EXPR_DEPTH));
670
+
671
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
672
+ rb_define_const(mC_Limit, "FUNCTION_ARG", INT2FIX(SQLITE_LIMIT_FUNCTION_ARG));
673
+
674
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
675
+ rb_define_const(mC_Limit, "LENGTH", INT2FIX(SQLITE_LIMIT_LENGTH));
676
+
677
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
678
+ rb_define_const(mC_Limit, "LIKE_PATTERN_LENGTH", INT2FIX(SQLITE_LIMIT_LIKE_PATTERN_LENGTH));
679
+
680
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
681
+ rb_define_const(mC_Limit, "SQL_LENGTH", INT2FIX(SQLITE_LIMIT_SQL_LENGTH));
682
+
683
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
684
+ rb_define_const(mC_Limit, "TRIGGER_DEPTH", INT2FIX(SQLITE_LIMIT_TRIGGER_DEPTH));
685
+
686
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
687
+ rb_define_const(mC_Limit, "VARIABLE_NUMBER", INT2FIX(SQLITE_LIMIT_VARIABLE_NUMBER));
688
+
689
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
690
+ rb_define_const(mC_Limit, "VDBE_OP", INT2FIX(SQLITE_LIMIT_VDBE_OP));
691
+
692
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
693
+ rb_define_const(mC_Limit, "WORKER_THREADS", INT2FIX(SQLITE_LIMIT_WORKER_THREADS));
694
+
695
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
696
+ rb_define_const(mC_Lock, "EXCLUSIVE", INT2FIX(SQLITE_LOCK_EXCLUSIVE));
697
+
698
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
699
+ rb_define_const(mC_Lock, "NONE", INT2FIX(SQLITE_LOCK_NONE));
700
+
701
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
702
+ rb_define_const(mC_Lock, "PENDING", INT2FIX(SQLITE_LOCK_PENDING));
703
+
704
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
705
+ rb_define_const(mC_Lock, "RESERVED", INT2FIX(SQLITE_LOCK_RESERVED));
706
+
707
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
708
+ rb_define_const(mC_Lock, "SHARED", INT2FIX(SQLITE_LOCK_SHARED));
709
+
710
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
711
+ rb_define_const(mC_Mutex, "FAST", INT2FIX(SQLITE_MUTEX_FAST));
712
+
713
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
714
+ rb_define_const(mC_Mutex, "RECURSIVE", INT2FIX(SQLITE_MUTEX_RECURSIVE));
715
+
716
+ /* 8 -- For use by application */
717
+ rb_define_const(mC_Mutex, "STATIC_APP1", INT2FIX(SQLITE_MUTEX_STATIC_APP1));
718
+
719
+ /* 9 -- For use by application */
720
+ rb_define_const(mC_Mutex, "STATIC_APP2", INT2FIX(SQLITE_MUTEX_STATIC_APP2));
721
+
722
+ /* 10 -- For use by application */
723
+ rb_define_const(mC_Mutex, "STATIC_APP3", INT2FIX(SQLITE_MUTEX_STATIC_APP3));
724
+
725
+ /* 6 -- lru page list */
726
+ rb_define_const(mC_Mutex, "STATIC_LRU", INT2FIX(SQLITE_MUTEX_STATIC_LRU));
727
+
728
+ /* 7 -- NOT USED */
729
+ rb_define_const(mC_Mutex, "STATIC_LRU2", INT2FIX(SQLITE_MUTEX_STATIC_LRU2));
179
730
 
180
731
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
732
+ rb_define_const(mC_Mutex, "STATIC_MASTER", INT2FIX(SQLITE_MUTEX_STATIC_MASTER));
733
+
734
+ /* 3 -- sqlite3_malloc() */
735
+ rb_define_const(mC_Mutex, "STATIC_MEM", INT2FIX(SQLITE_MUTEX_STATIC_MEM));
736
+
737
+ /* 4 -- NOT USED */
738
+ rb_define_const(mC_Mutex, "STATIC_MEM2", INT2FIX(SQLITE_MUTEX_STATIC_MEM2));
739
+
740
+ /* 4 -- sqlite3BtreeOpen() */
741
+ rb_define_const(mC_Mutex, "STATIC_OPEN", INT2FIX(SQLITE_MUTEX_STATIC_OPEN));
742
+
743
+ /* 7 -- sqlite3PageMalloc() */
744
+ rb_define_const(mC_Mutex, "STATIC_PMEM", INT2FIX(SQLITE_MUTEX_STATIC_PMEM));
745
+
746
+ /* 5 -- sqlite3_randomness() */
747
+ rb_define_const(mC_Mutex, "STATIC_PRNG", INT2FIX(SQLITE_MUTEX_STATIC_PRNG));
748
+
749
+ /* 11 -- For use by built-in VFS */
750
+ rb_define_const(mC_Mutex, "STATIC_VFS1", INT2FIX(SQLITE_MUTEX_STATIC_VFS1));
751
+
752
+ /* 12 -- For use by extension VFS */
753
+ rb_define_const(mC_Mutex, "STATIC_VFS2", INT2FIX(SQLITE_MUTEX_STATIC_VFS2));
754
+
755
+ /* 13 -- For use by application VFS */
756
+ rb_define_const(mC_Mutex, "STATIC_VFS3", INT2FIX(SQLITE_MUTEX_STATIC_VFS3));
757
+
758
+ /* 0x00000020 -- VFS only */
759
+ rb_define_const(mC_Open, "AUTOPROXY", INT2FIX(SQLITE_OPEN_AUTOPROXY));
760
+
761
+ /* 0x00000004 -- Ok for sqlite3_open_v2() */
762
+ rb_define_const(mC_Open, "CREATE", INT2FIX(SQLITE_OPEN_CREATE));
763
+
764
+ /* 0x00000008 -- VFS only */
765
+ rb_define_const(mC_Open, "DELETEONCLOSE", INT2FIX(SQLITE_OPEN_DELETEONCLOSE));
766
+
767
+ /* 0x00000010 -- VFS only */
768
+ rb_define_const(mC_Open, "EXCLUSIVE", INT2FIX(SQLITE_OPEN_EXCLUSIVE));
769
+
770
+ /* 0x00010000 -- Ok for sqlite3_open_v2() */
771
+ rb_define_const(mC_Open, "FULLMUTEX", INT2FIX(SQLITE_OPEN_FULLMUTEX));
772
+
773
+ /* 0x00000100 -- VFS only */
774
+ rb_define_const(mC_Open, "MAIN_DB", INT2FIX(SQLITE_OPEN_MAIN_DB));
775
+
776
+ /* 0x00000800 -- VFS only */
777
+ rb_define_const(mC_Open, "MAIN_JOURNAL", INT2FIX(SQLITE_OPEN_MAIN_JOURNAL));
778
+
779
+ /* 0x00004000 -- VFS only */
780
+ rb_define_const(mC_Open, "MASTER_JOURNAL", INT2FIX(SQLITE_OPEN_MASTER_JOURNAL));
781
+
782
+ /* 0x00000080 -- Ok for sqlite3_open_v2() */
783
+ rb_define_const(mC_Open, "MEMORY", INT2FIX(SQLITE_OPEN_MEMORY));
784
+
785
+ /* 0x00008000 -- Ok for sqlite3_open_v2() */
786
+ rb_define_const(mC_Open, "NOMUTEX", INT2FIX(SQLITE_OPEN_NOMUTEX));
787
+
788
+ /* 0x00040000 -- Ok for sqlite3_open_v2() */
789
+ rb_define_const(mC_Open, "PRIVATECACHE", INT2FIX(SQLITE_OPEN_PRIVATECACHE));
790
+
791
+ /* 0x00000001 -- Ok for sqlite3_open_v2() */
792
+ rb_define_const(mC_Open, "READONLY", INT2FIX(SQLITE_OPEN_READONLY));
793
+
794
+ /* 0x00000002 -- Ok for sqlite3_open_v2() */
795
+ rb_define_const(mC_Open, "READWRITE", INT2FIX(SQLITE_OPEN_READWRITE));
796
+
797
+ /* 0x00020000 -- Ok for sqlite3_open_v2() */
798
+ rb_define_const(mC_Open, "SHAREDCACHE", INT2FIX(SQLITE_OPEN_SHAREDCACHE));
799
+
800
+ /* 0x00002000 -- VFS only */
801
+ rb_define_const(mC_Open, "SUBJOURNAL", INT2FIX(SQLITE_OPEN_SUBJOURNAL));
802
+
803
+ /* 0x00000200 -- VFS only */
804
+ rb_define_const(mC_Open, "TEMP_DB", INT2FIX(SQLITE_OPEN_TEMP_DB));
805
+
806
+ /* 0x00001000 -- VFS only */
807
+ rb_define_const(mC_Open, "TEMP_JOURNAL", INT2FIX(SQLITE_OPEN_TEMP_JOURNAL));
808
+
809
+ /* 0x00000400 -- VFS only */
810
+ rb_define_const(mC_Open, "TRANSIENT_DB", INT2FIX(SQLITE_OPEN_TRANSIENT_DB));
811
+
812
+ /* 0x00000040 -- Ok for sqlite3_open_v2() */
813
+ rb_define_const(mC_Open, "URI", INT2FIX(SQLITE_OPEN_URI));
814
+
815
+ /* 0x00080000 -- VFS only */
181
816
  rb_define_const(mC_Open, "WAL", INT2FIX(SQLITE_OPEN_WAL));
182
817
 
818
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
819
+ rb_define_const(mC_Prepare, "PERSISTENT", INT2FIX(SQLITE_PREPARE_PERSISTENT));
820
+
821
+ /* 2 -- Object fully contained within query region */
822
+ rb_define_const(mC_RTree, "FULLY_WITHIN", INT2FIX(FULLY_WITHIN));
823
+
824
+ /* 0 -- Object completely outside of query region */
825
+ rb_define_const(mC_RTree, "NOT_WITHIN", INT2FIX(NOT_WITHIN));
826
+
827
+ /* 1 -- Object partially overlaps query region */
828
+ rb_define_const(mC_RTree, "PARTLY_WITHIN", INT2FIX(PARTLY_WITHIN));
829
+
183
830
  /* 4 -- Callback routine requested an abort */
184
831
  rb_define_const(mC_ResultCode, "ABORT", INT2FIX(SQLITE_ABORT));
185
832
 
833
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
834
+ rb_define_const(mC_ResultCode, "ABORT_ROLLBACK", INT2FIX(SQLITE_ABORT_ROLLBACK));
835
+
186
836
  /* 23 -- Authorization denied */
187
837
  rb_define_const(mC_ResultCode, "AUTH", INT2FIX(SQLITE_AUTH));
188
838
 
839
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
840
+ rb_define_const(mC_ResultCode, "AUTH_USER", INT2FIX(SQLITE_AUTH_USER));
841
+
189
842
  /* 5 -- The database file is locked */
190
843
  rb_define_const(mC_ResultCode, "BUSY", INT2FIX(SQLITE_BUSY));
191
844
 
192
845
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
193
846
  rb_define_const(mC_ResultCode, "BUSY_RECOVERY", INT2FIX(SQLITE_BUSY_RECOVERY));
194
847
 
848
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
849
+ rb_define_const(mC_ResultCode, "BUSY_SNAPSHOT", INT2FIX(SQLITE_BUSY_SNAPSHOT));
850
+
195
851
  /* 14 -- Unable to open the database file */
196
852
  rb_define_const(mC_ResultCode, "CANTOPEN", INT2FIX(SQLITE_CANTOPEN));
197
853
 
854
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
855
+ rb_define_const(mC_ResultCode, "CANTOPEN_CONVPATH", INT2FIX(SQLITE_CANTOPEN_CONVPATH));
856
+
857
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
858
+ rb_define_const(mC_ResultCode, "CANTOPEN_FULLPATH", INT2FIX(SQLITE_CANTOPEN_FULLPATH));
859
+
860
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
861
+ rb_define_const(mC_ResultCode, "CANTOPEN_ISDIR", INT2FIX(SQLITE_CANTOPEN_ISDIR));
862
+
198
863
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
199
864
  rb_define_const(mC_ResultCode, "CANTOPEN_NOTEMPDIR", INT2FIX(SQLITE_CANTOPEN_NOTEMPDIR));
200
865
 
201
866
  /* 19 -- Abort due to constraint violation */
202
867
  rb_define_const(mC_ResultCode, "CONSTRAINT", INT2FIX(SQLITE_CONSTRAINT));
203
868
 
869
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
870
+ rb_define_const(mC_ResultCode, "CONSTRAINT_CHECK", INT2FIX(SQLITE_CONSTRAINT_CHECK));
871
+
872
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
873
+ rb_define_const(mC_ResultCode, "CONSTRAINT_COMMITHOOK", INT2FIX(SQLITE_CONSTRAINT_COMMITHOOK));
874
+
875
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
876
+ rb_define_const(mC_ResultCode, "CONSTRAINT_FOREIGNKEY", INT2FIX(SQLITE_CONSTRAINT_FOREIGNKEY));
877
+
878
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
879
+ rb_define_const(mC_ResultCode, "CONSTRAINT_FUNCTION", INT2FIX(SQLITE_CONSTRAINT_FUNCTION));
880
+
881
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
882
+ rb_define_const(mC_ResultCode, "CONSTRAINT_NOTNULL", INT2FIX(SQLITE_CONSTRAINT_NOTNULL));
883
+
884
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
885
+ rb_define_const(mC_ResultCode, "CONSTRAINT_PRIMARYKEY", INT2FIX(SQLITE_CONSTRAINT_PRIMARYKEY));
886
+
887
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
888
+ rb_define_const(mC_ResultCode, "CONSTRAINT_ROWID", INT2FIX(SQLITE_CONSTRAINT_ROWID));
889
+
890
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
891
+ rb_define_const(mC_ResultCode, "CONSTRAINT_TRIGGER", INT2FIX(SQLITE_CONSTRAINT_TRIGGER));
892
+
893
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
894
+ rb_define_const(mC_ResultCode, "CONSTRAINT_UNIQUE", INT2FIX(SQLITE_CONSTRAINT_UNIQUE));
895
+
896
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
897
+ rb_define_const(mC_ResultCode, "CONSTRAINT_VTAB", INT2FIX(SQLITE_CONSTRAINT_VTAB));
898
+
204
899
  /* 11 -- The database disk image is malformed */
205
900
  rb_define_const(mC_ResultCode, "CORRUPT", INT2FIX(SQLITE_CORRUPT));
206
901
 
902
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
903
+ rb_define_const(mC_ResultCode, "CORRUPT_VTAB", INT2FIX(SQLITE_CORRUPT_VTAB));
904
+
207
905
  /* 101 -- sqlite3_step() has finished executing */
208
906
  rb_define_const(mC_ResultCode, "DONE", INT2FIX(SQLITE_DONE));
209
907
 
210
- /* 16 -- Database is empty */
908
+ /* 16 -- Internal use only */
211
909
  rb_define_const(mC_ResultCode, "EMPTY", INT2FIX(SQLITE_EMPTY));
212
910
 
213
- /* 1 -- SQL error or missing database */
911
+ /* 1 -- Generic error */
214
912
  rb_define_const(mC_ResultCode, "ERROR", INT2FIX(SQLITE_ERROR));
215
913
 
216
- /* 24 -- Auxiliary database format error */
914
+ /* 24 -- Not used */
217
915
  rb_define_const(mC_ResultCode, "FORMAT", INT2FIX(SQLITE_FORMAT));
218
916
 
219
917
  /* 13 -- Insertion failed because database is full */
@@ -231,6 +929,12 @@ void Init_amalgalite_constants( )
231
929
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
232
930
  rb_define_const(mC_ResultCode, "IOERR_ACCESS", INT2FIX(SQLITE_IOERR_ACCESS));
233
931
 
932
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
933
+ rb_define_const(mC_ResultCode, "IOERR_AUTH", INT2FIX(SQLITE_IOERR_AUTH));
934
+
935
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
936
+ rb_define_const(mC_ResultCode, "IOERR_BEGIN_ATOMIC", INT2FIX(SQLITE_IOERR_BEGIN_ATOMIC));
937
+
234
938
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
235
939
  rb_define_const(mC_ResultCode, "IOERR_BLOCKED", INT2FIX(SQLITE_IOERR_BLOCKED));
236
940
 
@@ -240,9 +944,18 @@ void Init_amalgalite_constants( )
240
944
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
241
945
  rb_define_const(mC_ResultCode, "IOERR_CLOSE", INT2FIX(SQLITE_IOERR_CLOSE));
242
946
 
947
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
948
+ rb_define_const(mC_ResultCode, "IOERR_COMMIT_ATOMIC", INT2FIX(SQLITE_IOERR_COMMIT_ATOMIC));
949
+
950
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
951
+ rb_define_const(mC_ResultCode, "IOERR_CONVPATH", INT2FIX(SQLITE_IOERR_CONVPATH));
952
+
243
953
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
244
954
  rb_define_const(mC_ResultCode, "IOERR_DELETE", INT2FIX(SQLITE_IOERR_DELETE));
245
955
 
956
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
957
+ rb_define_const(mC_ResultCode, "IOERR_DELETE_NOENT", INT2FIX(SQLITE_IOERR_DELETE_NOENT));
958
+
246
959
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
247
960
  rb_define_const(mC_ResultCode, "IOERR_DIR_CLOSE", INT2FIX(SQLITE_IOERR_DIR_CLOSE));
248
961
 
@@ -255,9 +968,15 @@ void Init_amalgalite_constants( )
255
968
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
256
969
  rb_define_const(mC_ResultCode, "IOERR_FSYNC", INT2FIX(SQLITE_IOERR_FSYNC));
257
970
 
971
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
972
+ rb_define_const(mC_ResultCode, "IOERR_GETTEMPPATH", INT2FIX(SQLITE_IOERR_GETTEMPPATH));
973
+
258
974
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
259
975
  rb_define_const(mC_ResultCode, "IOERR_LOCK", INT2FIX(SQLITE_IOERR_LOCK));
260
976
 
977
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
978
+ rb_define_const(mC_ResultCode, "IOERR_MMAP", INT2FIX(SQLITE_IOERR_MMAP));
979
+
261
980
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
262
981
  rb_define_const(mC_ResultCode, "IOERR_NOMEM", INT2FIX(SQLITE_IOERR_NOMEM));
263
982
 
@@ -267,9 +986,18 @@ void Init_amalgalite_constants( )
267
986
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
268
987
  rb_define_const(mC_ResultCode, "IOERR_READ", INT2FIX(SQLITE_IOERR_READ));
269
988
 
989
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
990
+ rb_define_const(mC_ResultCode, "IOERR_ROLLBACK_ATOMIC", INT2FIX(SQLITE_IOERR_ROLLBACK_ATOMIC));
991
+
992
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
993
+ rb_define_const(mC_ResultCode, "IOERR_SEEK", INT2FIX(SQLITE_IOERR_SEEK));
994
+
270
995
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
271
996
  rb_define_const(mC_ResultCode, "IOERR_SHMLOCK", INT2FIX(SQLITE_IOERR_SHMLOCK));
272
997
 
998
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
999
+ rb_define_const(mC_ResultCode, "IOERR_SHMMAP", INT2FIX(SQLITE_IOERR_SHMMAP));
1000
+
273
1001
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
274
1002
  rb_define_const(mC_ResultCode, "IOERR_SHMOPEN", INT2FIX(SQLITE_IOERR_SHMOPEN));
275
1003
 
@@ -285,6 +1013,9 @@ void Init_amalgalite_constants( )
285
1013
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
286
1014
  rb_define_const(mC_ResultCode, "IOERR_UNLOCK", INT2FIX(SQLITE_IOERR_UNLOCK));
287
1015
 
1016
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1017
+ rb_define_const(mC_ResultCode, "IOERR_VNODE", INT2FIX(SQLITE_IOERR_VNODE));
1018
+
288
1019
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
289
1020
  rb_define_const(mC_ResultCode, "IOERR_WRITE", INT2FIX(SQLITE_IOERR_WRITE));
290
1021
 
@@ -312,9 +1043,21 @@ void Init_amalgalite_constants( )
312
1043
  /* 12 -- Unknown opcode in sqlite3_file_control() */
313
1044
  rb_define_const(mC_ResultCode, "NOTFOUND", INT2FIX(SQLITE_NOTFOUND));
314
1045
 
1046
+ /* 27 -- Notifications from sqlite3_log() */
1047
+ rb_define_const(mC_ResultCode, "NOTICE", INT2FIX(SQLITE_NOTICE));
1048
+
1049
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1050
+ rb_define_const(mC_ResultCode, "NOTICE_RECOVER_ROLLBACK", INT2FIX(SQLITE_NOTICE_RECOVER_ROLLBACK));
1051
+
315
1052
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1053
+ rb_define_const(mC_ResultCode, "NOTICE_RECOVER_WAL", INT2FIX(SQLITE_NOTICE_RECOVER_WAL));
1054
+
1055
+ /* 0 -- Successful result */
316
1056
  rb_define_const(mC_ResultCode, "OK", INT2FIX(SQLITE_OK));
317
1057
 
1058
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1059
+ rb_define_const(mC_ResultCode, "OK_LOAD_PERMANENTLY", INT2FIX(SQLITE_OK_LOAD_PERMANENTLY));
1060
+
318
1061
  /* 3 -- Access permission denied */
319
1062
  rb_define_const(mC_ResultCode, "PERM", INT2FIX(SQLITE_PERM));
320
1063
 
@@ -327,6 +1070,18 @@ void Init_amalgalite_constants( )
327
1070
  /* 8 -- Attempt to write a readonly database */
328
1071
  rb_define_const(mC_ResultCode, "READONLY", INT2FIX(SQLITE_READONLY));
329
1072
 
1073
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1074
+ rb_define_const(mC_ResultCode, "READONLY_CANTLOCK", INT2FIX(SQLITE_READONLY_CANTLOCK));
1075
+
1076
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1077
+ rb_define_const(mC_ResultCode, "READONLY_DBMOVED", INT2FIX(SQLITE_READONLY_DBMOVED));
1078
+
1079
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1080
+ rb_define_const(mC_ResultCode, "READONLY_RECOVERY", INT2FIX(SQLITE_READONLY_RECOVERY));
1081
+
1082
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1083
+ rb_define_const(mC_ResultCode, "READONLY_ROLLBACK", INT2FIX(SQLITE_READONLY_ROLLBACK));
1084
+
330
1085
  /* 100 -- sqlite3_step() has another row ready */
331
1086
  rb_define_const(mC_ResultCode, "ROW", INT2FIX(SQLITE_ROW));
332
1087
 
@@ -336,15 +1091,66 @@ void Init_amalgalite_constants( )
336
1091
  /* 18 -- String or BLOB exceeds size limit */
337
1092
  rb_define_const(mC_ResultCode, "TOOBIG", INT2FIX(SQLITE_TOOBIG));
338
1093
 
1094
+ /* 28 -- Warnings from sqlite3_log() */
1095
+ rb_define_const(mC_ResultCode, "WARNING", INT2FIX(SQLITE_WARNING));
1096
+
1097
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1098
+ rb_define_const(mC_ResultCode, "WARNING_AUTOINDEX", INT2FIX(SQLITE_WARNING_AUTOINDEX));
1099
+
1100
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1101
+ rb_define_const(mC_SHM, "EXCLUSIVE", INT2FIX(SQLITE_SHM_EXCLUSIVE));
1102
+
1103
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1104
+ rb_define_const(mC_SHM, "LOCK", INT2FIX(SQLITE_SHM_LOCK));
1105
+
1106
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1107
+ rb_define_const(mC_SHM, "NLOCK", INT2FIX(SQLITE_SHM_NLOCK));
1108
+
1109
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1110
+ rb_define_const(mC_SHM, "SHARED", INT2FIX(SQLITE_SHM_SHARED));
1111
+
1112
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1113
+ rb_define_const(mC_SHM, "UNLOCK", INT2FIX(SQLITE_SHM_UNLOCK));
1114
+
1115
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1116
+ rb_define_const(mC_ScanStat, "EST", INT2FIX(SQLITE_SCANSTAT_EST));
1117
+
1118
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1119
+ rb_define_const(mC_ScanStat, "EXPLAIN", INT2FIX(SQLITE_SCANSTAT_EXPLAIN));
1120
+
1121
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1122
+ rb_define_const(mC_ScanStat, "NAME", INT2FIX(SQLITE_SCANSTAT_NAME));
1123
+
1124
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1125
+ rb_define_const(mC_ScanStat, "NLOOP", INT2FIX(SQLITE_SCANSTAT_NLOOP));
1126
+
1127
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1128
+ rb_define_const(mC_ScanStat, "NVISIT", INT2FIX(SQLITE_SCANSTAT_NVISIT));
1129
+
1130
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1131
+ rb_define_const(mC_ScanStat, "SELECTID", INT2FIX(SQLITE_SCANSTAT_SELECTID));
1132
+
339
1133
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
340
1134
  rb_define_const(mC_StatementStatus, "AUTOINDEX", INT2FIX(SQLITE_STMTSTATUS_AUTOINDEX));
341
1135
 
342
1136
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
343
1137
  rb_define_const(mC_StatementStatus, "FULLSCAN_STEP", INT2FIX(SQLITE_STMTSTATUS_FULLSCAN_STEP));
344
1138
 
1139
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1140
+ rb_define_const(mC_StatementStatus, "MEMUSED", INT2FIX(SQLITE_STMTSTATUS_MEMUSED));
1141
+
1142
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1143
+ rb_define_const(mC_StatementStatus, "REPREPARE", INT2FIX(SQLITE_STMTSTATUS_REPREPARE));
1144
+
1145
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1146
+ rb_define_const(mC_StatementStatus, "RUN", INT2FIX(SQLITE_STMTSTATUS_RUN));
1147
+
345
1148
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
346
1149
  rb_define_const(mC_StatementStatus, "SORT", INT2FIX(SQLITE_STMTSTATUS_SORT));
347
1150
 
1151
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1152
+ rb_define_const(mC_StatementStatus, "VM_STEP", INT2FIX(SQLITE_STMTSTATUS_VM_STEP));
1153
+
348
1154
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
349
1155
  rb_define_const(mC_Status, "MALLOC_COUNT", INT2FIX(SQLITE_STATUS_MALLOC_COUNT));
350
1156
 
@@ -366,13 +1172,55 @@ void Init_amalgalite_constants( )
366
1172
  /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
367
1173
  rb_define_const(mC_Status, "PARSER_STACK", INT2FIX(SQLITE_STATUS_PARSER_STACK));
368
1174
 
369
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1175
+ /* 4 -- NOT USED */
370
1176
  rb_define_const(mC_Status, "SCRATCH_OVERFLOW", INT2FIX(SQLITE_STATUS_SCRATCH_OVERFLOW));
371
1177
 
372
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1178
+ /* 8 -- NOT USED */
373
1179
  rb_define_const(mC_Status, "SCRATCH_SIZE", INT2FIX(SQLITE_STATUS_SCRATCH_SIZE));
374
1180
 
375
- /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1181
+ /* 3 -- NOT USED */
376
1182
  rb_define_const(mC_Status, "SCRATCH_USED", INT2FIX(SQLITE_STATUS_SCRATCH_USED));
377
1183
 
1184
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1185
+ rb_define_const(mC_Sync, "DATAONLY", INT2FIX(SQLITE_SYNC_DATAONLY));
1186
+
1187
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1188
+ rb_define_const(mC_Sync, "FULL", INT2FIX(SQLITE_SYNC_FULL));
1189
+
1190
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1191
+ rb_define_const(mC_Sync, "NORMAL", INT2FIX(SQLITE_SYNC_NORMAL));
1192
+
1193
+ /* 5 -- Deprecated */
1194
+ rb_define_const(mC_TextEncoding, "ANY", INT2FIX(SQLITE_ANY));
1195
+
1196
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1197
+ rb_define_const(mC_TextEncoding, "DETERMINISTIC", INT2FIX(SQLITE_DETERMINISTIC));
1198
+
1199
+ /* 4 -- Use native byte order */
1200
+ rb_define_const(mC_TextEncoding, "UTF16", INT2FIX(SQLITE_UTF16));
1201
+
1202
+ /* 3 -- IMP: R-51971-34154 */
1203
+ rb_define_const(mC_TextEncoding, "UTF16BE", INT2FIX(SQLITE_UTF16BE));
1204
+
1205
+ /* 2 -- IMP: R-03371-37637 */
1206
+ rb_define_const(mC_TextEncoding, "UTF16LE", INT2FIX(SQLITE_UTF16LE));
1207
+
1208
+ /* 8 -- sqlite3_create_collation only */
1209
+ rb_define_const(mC_TextEncoding, "UTF16_ALIGNED", INT2FIX(SQLITE_UTF16_ALIGNED));
1210
+
1211
+ /* 1 -- IMP: R-37514-35566 */
1212
+ rb_define_const(mC_TextEncoding, "UTF8", INT2FIX(SQLITE_UTF8));
1213
+
1214
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1215
+ rb_define_const(mC_Trace, "CLOSE", INT2FIX(SQLITE_TRACE_CLOSE));
1216
+
1217
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1218
+ rb_define_const(mC_Trace, "PROFILE", INT2FIX(SQLITE_TRACE_PROFILE));
1219
+
1220
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1221
+ rb_define_const(mC_Trace, "ROW", INT2FIX(SQLITE_TRACE_ROW));
1222
+
1223
+ /* no meaningful autogenerated documentation -- constant is self explanatory ?*/
1224
+ rb_define_const(mC_Trace, "STMT", INT2FIX(SQLITE_TRACE_STMT));
1225
+
378
1226
  }