sqlite3ext.h
Go to the documentation of this file.
1 /*
2 ** 2006 June 7
3 **
4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing:
6 **
7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give.
10 **
11 *************************************************************************
12 ** This header file defines the SQLite interface for use by
13 ** shared libraries that want to be imported as extensions into
14 ** an SQLite instance. Shared libraries that intend to be loaded
15 ** as extensions by SQLite should #include this file instead of
16 ** sqlite3.h.
17 */
18 #ifndef _SQLITE3EXT_H_
19 #define _SQLITE3EXT_H_
20 #include "sqlite3.h"
21 
23 
24 /*
25 ** The following structure holds pointers to all of the SQLite API
26 ** routines.
27 **
28 ** WARNING: In order to maintain backwards compatibility, add new
29 ** interfaces to the end of this structure only. If you insert new
30 ** interfaces in the middle of this structure, then older different
31 ** versions of SQLite will not be able to load each others' shared
32 ** libraries!
33 */
34 struct sqlite3_api_routines {
35  void * (*aggregate_context)(sqlite3_context*,int nBytes);
37  int (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*));
38  int (*bind_double)(sqlite3_stmt*,int,double);
43  int (*bind_parameter_index)(sqlite3_stmt*,const char*zName);
44  const char * (*bind_parameter_name)(sqlite3_stmt*,int);
45  int (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*));
46  int (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*));
48  int (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
49  int (*busy_timeout)(sqlite3*,int ms);
50  int (*changes)(sqlite3*);
51  int (*close)(sqlite3*);
52  int (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,
53  int eTextRep,const char*));
54  int (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,
55  int eTextRep,const void*));
56  const void * (*column_blob)(sqlite3_stmt*,int iCol);
57  int (*column_bytes)(sqlite3_stmt*,int iCol);
58  int (*column_bytes16)(sqlite3_stmt*,int iCol);
59  int (*column_count)(sqlite3_stmt*pStmt);
60  const char * (*column_database_name)(sqlite3_stmt*,int);
61  const void * (*column_database_name16)(sqlite3_stmt*,int);
62  const char * (*column_decltype)(sqlite3_stmt*,int i);
63  const void * (*column_decltype16)(sqlite3_stmt*,int);
64  double (*column_double)(sqlite3_stmt*,int iCol);
65  int (*column_int)(sqlite3_stmt*,int iCol);
67  const char * (*column_name)(sqlite3_stmt*,int);
68  const void * (*column_name16)(sqlite3_stmt*,int);
69  const char * (*column_origin_name)(sqlite3_stmt*,int);
70  const void * (*column_origin_name16)(sqlite3_stmt*,int);
71  const char * (*column_table_name)(sqlite3_stmt*,int);
72  const void * (*column_table_name16)(sqlite3_stmt*,int);
73  const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);
74  const void * (*column_text16)(sqlite3_stmt*,int iCol);
75  int (*column_type)(sqlite3_stmt*,int iCol);
76  sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);
77  void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
78  int (*complete)(const char*sql);
79  int (*complete16)(const void*sql);
80  int (*create_collation)(sqlite3*,const char*,int,void*,
81  int(*)(void*,int,const void*,int,const void*));
82  int (*create_collation16)(sqlite3*,const void*,int,void*,
83  int(*)(void*,int,const void*,int,const void*));
84  int (*create_function)(sqlite3*,const char*,int,int,void*,
85  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
86  void (*xStep)(sqlite3_context*,int,sqlite3_value**),
87  void (*xFinal)(sqlite3_context*));
88  int (*create_function16)(sqlite3*,const void*,int,int,void*,
89  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
90  void (*xStep)(sqlite3_context*,int,sqlite3_value**),
91  void (*xFinal)(sqlite3_context*));
92  int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);
93  int (*data_count)(sqlite3_stmt*pStmt);
94  sqlite3 * (*db_handle)(sqlite3_stmt*);
95  int (*declare_vtab)(sqlite3*,const char*);
97  int (*errcode)(sqlite3*db);
98  const char * (*errmsg)(sqlite3*);
99  const void * (*errmsg16)(sqlite3*);
100  int (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);
101  int (*expired)(sqlite3_stmt*);
102  int (*finalize)(sqlite3_stmt*pStmt);
103  void (*free)(void*);
104  void (*free_table)(char**result);
106  void * (*get_auxdata)(sqlite3_context*,int);
107  int (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);
108  int (*global_recover)(void);
109  void (*interruptx)(sqlite3*);
111  const char * (*libversion)(void);
112  int (*libversion_number)(void);
113  void *(*malloc)(int);
114  char * (*mprintf)(const char*,...);
115  int (*open)(const char*,sqlite3**);
116  int (*open16)(const void*,sqlite3**);
117  int (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
118  int (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
119  void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);
120  void (*progress_handler)(sqlite3*,int,int(*)(void*),void*);
121  void *(*realloc)(void*,int);
122  int (*reset)(sqlite3_stmt*pStmt);
123  void (*result_blob)(sqlite3_context*,const void*,int,void(*)(void*));
124  void (*result_double)(sqlite3_context*,double);
125  void (*result_error)(sqlite3_context*,const char*,int);
126  void (*result_error16)(sqlite3_context*,const void*,int);
127  void (*result_int)(sqlite3_context*,int);
129  void (*result_null)(sqlite3_context*);
130  void (*result_text)(sqlite3_context*,const char*,int,void(*)(void*));
131  void (*result_text16)(sqlite3_context*,const void*,int,void(*)(void*));
132  void (*result_text16be)(sqlite3_context*,const void*,int,void(*)(void*));
133  void (*result_text16le)(sqlite3_context*,const void*,int,void(*)(void*));
135  void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);
136  int (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,
137  const char*,const char*),void*);
138  void (*set_auxdata)(sqlite3_context*,int,void*,void (*)(void*));
139  char * (*snprintf)(int,char*,const char*,...);
140  int (*step)(sqlite3_stmt*);
141  int (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,
142  char const**,char const**,int*,int*,int*);
143  void (*thread_cleanup)(void);
145  void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);
147  void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,
148  sqlite_int64),void*);
149  void * (*user_data)(sqlite3_context*);
150  const void * (*value_blob)(sqlite3_value*);
153  double (*value_double)(sqlite3_value*);
157  const unsigned char * (*value_text)(sqlite3_value*);
158  const void * (*value_text16)(sqlite3_value*);
159  const void * (*value_text16be)(sqlite3_value*);
160  const void * (*value_text16le)(sqlite3_value*);
162  char *(*vmprintf)(const char*,va_list);
163  /* Added ??? */
164  int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
165  /* Added by 3.3.13 */
166  int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
167  int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
169  /* Added by 3.4.1 */
170  int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,
171  void (*xDestroy)(void *));
172  /* Added by 3.5.0 */
176  int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,
177  int,sqlite3_blob**);
178  int (*blob_read)(sqlite3_blob*,void*,int,int);
179  int (*blob_write)(sqlite3_blob*,const void*,int,int);
180  int (*create_collation_v2)(sqlite3*,const char*,int,void*,
181  int(*)(void*,int,const void*,int,const void*),
182  void(*)(void*));
183  int (*file_control)(sqlite3*,const char*,int,void*);
185  sqlite3_int64 (*memory_used)(void);
186  sqlite3_mutex *(*mutex_alloc)(int);
187  void (*mutex_enter)(sqlite3_mutex*);
188  void (*mutex_free)(sqlite3_mutex*);
189  void (*mutex_leave)(sqlite3_mutex*);
191  int (*open_v2)(const char*,sqlite3**,int,const char*);
192  int (*release_memory)(int);
195  int (*sleep)(int);
196  void (*soft_heap_limit)(int);
197  sqlite3_vfs *(*vfs_find)(const char*);
200  int (*xthreadsafe)(void);
203  int (*test_control)(int, ...);
204  void (*randomness)(int,void*);
205  sqlite3 *(*context_db_handle)(sqlite3_context*);
207  int (*limit)(sqlite3*,int,int);
208  sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);
209  const char *(*sql)(sqlite3_stmt*);
210  int (*status)(int,int*,int*,int);
212  sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*);
216  const char *(*compileoption_get)(int);
217  int (*compileoption_used)(const char*);
218  int (*create_function_v2)(sqlite3*,const char*,int,int,void*,
219  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
220  void (*xStep)(sqlite3_context*,int,sqlite3_value**),
221  void (*xFinal)(sqlite3_context*),
222  void(*xDestroy)(void*));
223  int (*db_config)(sqlite3*,int,...);
224  sqlite3_mutex *(*db_mutex)(sqlite3*);
225  int (*db_status)(sqlite3*,int,int*,int*,int);
227  void (*log)(int,const char*,...);
229  const char *(*sourceid)(void);
231  int (*strnicmp)(const char*,const char*,int);
232  int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*);
234  int (*wal_checkpoint)(sqlite3*,const char*);
235  void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*);
237  int (*vtab_config)(sqlite3*,int op,...);
239  /* Version 3.7.16 and later */
240  int (*close_v2)(sqlite3*);
241  const char *(*db_filename)(sqlite3*,const char*);
242  int (*db_readonly)(sqlite3*,const char*);
244  const char *(*errstr)(int);
247  int (*stricmp)(const char*,const char*);
248  int (*uri_boolean)(const char*,const char*,int);
249  sqlite3_int64 (*uri_int64)(const char*,const char*,sqlite3_int64);
250  const char *(*uri_parameter)(const char*,const char*);
251  char *(*vsnprintf)(int,char*,const char*,va_list);
252  int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*);
253 };
254 
255 /*
256 ** The following macros redefine the API routines so that they are
257 ** redirected throught the global sqlite3_api structure.
258 **
259 ** This header file is also used by the loadext.c source file
260 ** (part of the main SQLite library - not an extension) so that
261 ** it can get access to the sqlite3_api_routines structure
262 ** definition. But the main library does not want to redefine
263 ** the API. So the redefinition macros are only valid if the
264 ** SQLITE_CORE macros is undefined.
265 */
266 #ifndef SQLITE_CORE
267 #define sqlite3_aggregate_context sqlite3_api->aggregate_context
268 #ifndef SQLITE_OMIT_DEPRECATED
269 #define sqlite3_aggregate_count sqlite3_api->aggregate_count
270 #endif
271 #define sqlite3_bind_blob sqlite3_api->bind_blob
272 #define sqlite3_bind_double sqlite3_api->bind_double
273 #define sqlite3_bind_int sqlite3_api->bind_int
274 #define sqlite3_bind_int64 sqlite3_api->bind_int64
275 #define sqlite3_bind_null sqlite3_api->bind_null
276 #define sqlite3_bind_parameter_count sqlite3_api->bind_parameter_count
277 #define sqlite3_bind_parameter_index sqlite3_api->bind_parameter_index
278 #define sqlite3_bind_parameter_name sqlite3_api->bind_parameter_name
279 #define sqlite3_bind_text sqlite3_api->bind_text
280 #define sqlite3_bind_text16 sqlite3_api->bind_text16
281 #define sqlite3_bind_value sqlite3_api->bind_value
282 #define sqlite3_busy_handler sqlite3_api->busy_handler
283 #define sqlite3_busy_timeout sqlite3_api->busy_timeout
284 #define sqlite3_changes sqlite3_api->changes
285 #define sqlite3_close sqlite3_api->close
286 #define sqlite3_collation_needed sqlite3_api->collation_needed
287 #define sqlite3_collation_needed16 sqlite3_api->collation_needed16
288 #define sqlite3_column_blob sqlite3_api->column_blob
289 #define sqlite3_column_bytes sqlite3_api->column_bytes
290 #define sqlite3_column_bytes16 sqlite3_api->column_bytes16
291 #define sqlite3_column_count sqlite3_api->column_count
292 #define sqlite3_column_database_name sqlite3_api->column_database_name
293 #define sqlite3_column_database_name16 sqlite3_api->column_database_name16
294 #define sqlite3_column_decltype sqlite3_api->column_decltype
295 #define sqlite3_column_decltype16 sqlite3_api->column_decltype16
296 #define sqlite3_column_double sqlite3_api->column_double
297 #define sqlite3_column_int sqlite3_api->column_int
298 #define sqlite3_column_int64 sqlite3_api->column_int64
299 #define sqlite3_column_name sqlite3_api->column_name
300 #define sqlite3_column_name16 sqlite3_api->column_name16
301 #define sqlite3_column_origin_name sqlite3_api->column_origin_name
302 #define sqlite3_column_origin_name16 sqlite3_api->column_origin_name16
303 #define sqlite3_column_table_name sqlite3_api->column_table_name
304 #define sqlite3_column_table_name16 sqlite3_api->column_table_name16
305 #define sqlite3_column_text sqlite3_api->column_text
306 #define sqlite3_column_text16 sqlite3_api->column_text16
307 #define sqlite3_column_type sqlite3_api->column_type
308 #define sqlite3_column_value sqlite3_api->column_value
309 #define sqlite3_commit_hook sqlite3_api->commit_hook
310 #define sqlite3_complete sqlite3_api->complete
311 #define sqlite3_complete16 sqlite3_api->complete16
312 #define sqlite3_create_collation sqlite3_api->create_collation
313 #define sqlite3_create_collation16 sqlite3_api->create_collation16
314 #define sqlite3_create_function sqlite3_api->create_function
315 #define sqlite3_create_function16 sqlite3_api->create_function16
316 #define sqlite3_create_module sqlite3_api->create_module
317 #define sqlite3_create_module_v2 sqlite3_api->create_module_v2
318 #define sqlite3_data_count sqlite3_api->data_count
319 #define sqlite3_db_handle sqlite3_api->db_handle
320 #define sqlite3_declare_vtab sqlite3_api->declare_vtab
321 #define sqlite3_enable_shared_cache sqlite3_api->enable_shared_cache
322 #define sqlite3_errcode sqlite3_api->errcode
323 #define sqlite3_errmsg sqlite3_api->errmsg
324 #define sqlite3_errmsg16 sqlite3_api->errmsg16
325 #define sqlite3_exec sqlite3_api->exec
326 #ifndef SQLITE_OMIT_DEPRECATED
327 #define sqlite3_expired sqlite3_api->expired
328 #endif
329 #define sqlite3_finalize sqlite3_api->finalize
330 #define sqlite3_free sqlite3_api->free
331 #define sqlite3_free_table sqlite3_api->free_table
332 #define sqlite3_get_autocommit sqlite3_api->get_autocommit
333 #define sqlite3_get_auxdata sqlite3_api->get_auxdata
334 #define sqlite3_get_table sqlite3_api->get_table
335 #ifndef SQLITE_OMIT_DEPRECATED
336 #define sqlite3_global_recover sqlite3_api->global_recover
337 #endif
338 #define sqlite3_interrupt sqlite3_api->interruptx
339 #define sqlite3_last_insert_rowid sqlite3_api->last_insert_rowid
340 #define sqlite3_libversion sqlite3_api->libversion
341 #define sqlite3_libversion_number sqlite3_api->libversion_number
342 #define sqlite3_malloc sqlite3_api->malloc
343 #define sqlite3_mprintf sqlite3_api->mprintf
344 #define sqlite3_open sqlite3_api->open
345 #define sqlite3_open16 sqlite3_api->open16
346 #define sqlite3_prepare sqlite3_api->prepare
347 #define sqlite3_prepare16 sqlite3_api->prepare16
348 #define sqlite3_prepare_v2 sqlite3_api->prepare_v2
349 #define sqlite3_prepare16_v2 sqlite3_api->prepare16_v2
350 #define sqlite3_profile sqlite3_api->profile
351 #define sqlite3_progress_handler sqlite3_api->progress_handler
352 #define sqlite3_realloc sqlite3_api->realloc
353 #define sqlite3_reset sqlite3_api->reset
354 #define sqlite3_result_blob sqlite3_api->result_blob
355 #define sqlite3_result_double sqlite3_api->result_double
356 #define sqlite3_result_error sqlite3_api->result_error
357 #define sqlite3_result_error16 sqlite3_api->result_error16
358 #define sqlite3_result_int sqlite3_api->result_int
359 #define sqlite3_result_int64 sqlite3_api->result_int64
360 #define sqlite3_result_null sqlite3_api->result_null
361 #define sqlite3_result_text sqlite3_api->result_text
362 #define sqlite3_result_text16 sqlite3_api->result_text16
363 #define sqlite3_result_text16be sqlite3_api->result_text16be
364 #define sqlite3_result_text16le sqlite3_api->result_text16le
365 #define sqlite3_result_value sqlite3_api->result_value
366 #define sqlite3_rollback_hook sqlite3_api->rollback_hook
367 #define sqlite3_set_authorizer sqlite3_api->set_authorizer
368 #define sqlite3_set_auxdata sqlite3_api->set_auxdata
369 #define sqlite3_snprintf sqlite3_api->snprintf
370 #define sqlite3_step sqlite3_api->step
371 #define sqlite3_table_column_metadata sqlite3_api->table_column_metadata
372 #define sqlite3_thread_cleanup sqlite3_api->thread_cleanup
373 #define sqlite3_total_changes sqlite3_api->total_changes
374 #define sqlite3_trace sqlite3_api->trace
375 #ifndef SQLITE_OMIT_DEPRECATED
376 #define sqlite3_transfer_bindings sqlite3_api->transfer_bindings
377 #endif
378 #define sqlite3_update_hook sqlite3_api->update_hook
379 #define sqlite3_user_data sqlite3_api->user_data
380 #define sqlite3_value_blob sqlite3_api->value_blob
381 #define sqlite3_value_bytes sqlite3_api->value_bytes
382 #define sqlite3_value_bytes16 sqlite3_api->value_bytes16
383 #define sqlite3_value_double sqlite3_api->value_double
384 #define sqlite3_value_int sqlite3_api->value_int
385 #define sqlite3_value_int64 sqlite3_api->value_int64
386 #define sqlite3_value_numeric_type sqlite3_api->value_numeric_type
387 #define sqlite3_value_text sqlite3_api->value_text
388 #define sqlite3_value_text16 sqlite3_api->value_text16
389 #define sqlite3_value_text16be sqlite3_api->value_text16be
390 #define sqlite3_value_text16le sqlite3_api->value_text16le
391 #define sqlite3_value_type sqlite3_api->value_type
392 #define sqlite3_vmprintf sqlite3_api->vmprintf
393 #define sqlite3_overload_function sqlite3_api->overload_function
394 #define sqlite3_prepare_v2 sqlite3_api->prepare_v2
395 #define sqlite3_prepare16_v2 sqlite3_api->prepare16_v2
396 #define sqlite3_clear_bindings sqlite3_api->clear_bindings
397 #define sqlite3_bind_zeroblob sqlite3_api->bind_zeroblob
398 #define sqlite3_blob_bytes sqlite3_api->blob_bytes
399 #define sqlite3_blob_close sqlite3_api->blob_close
400 #define sqlite3_blob_open sqlite3_api->blob_open
401 #define sqlite3_blob_read sqlite3_api->blob_read
402 #define sqlite3_blob_write sqlite3_api->blob_write
403 #define sqlite3_create_collation_v2 sqlite3_api->create_collation_v2
404 #define sqlite3_file_control sqlite3_api->file_control
405 #define sqlite3_memory_highwater sqlite3_api->memory_highwater
406 #define sqlite3_memory_used sqlite3_api->memory_used
407 #define sqlite3_mutex_alloc sqlite3_api->mutex_alloc
408 #define sqlite3_mutex_enter sqlite3_api->mutex_enter
409 #define sqlite3_mutex_free sqlite3_api->mutex_free
410 #define sqlite3_mutex_leave sqlite3_api->mutex_leave
411 #define sqlite3_mutex_try sqlite3_api->mutex_try
412 #define sqlite3_open_v2 sqlite3_api->open_v2
413 #define sqlite3_release_memory sqlite3_api->release_memory
414 #define sqlite3_result_error_nomem sqlite3_api->result_error_nomem
415 #define sqlite3_result_error_toobig sqlite3_api->result_error_toobig
416 #define sqlite3_sleep sqlite3_api->sleep
417 #define sqlite3_soft_heap_limit sqlite3_api->soft_heap_limit
418 #define sqlite3_vfs_find sqlite3_api->vfs_find
419 #define sqlite3_vfs_register sqlite3_api->vfs_register
420 #define sqlite3_vfs_unregister sqlite3_api->vfs_unregister
421 #define sqlite3_threadsafe sqlite3_api->xthreadsafe
422 #define sqlite3_result_zeroblob sqlite3_api->result_zeroblob
423 #define sqlite3_result_error_code sqlite3_api->result_error_code
424 #define sqlite3_test_control sqlite3_api->test_control
425 #define sqlite3_randomness sqlite3_api->randomness
426 #define sqlite3_context_db_handle sqlite3_api->context_db_handle
427 #define sqlite3_extended_result_codes sqlite3_api->extended_result_codes
428 #define sqlite3_limit sqlite3_api->limit
429 #define sqlite3_next_stmt sqlite3_api->next_stmt
430 #define sqlite3_sql sqlite3_api->sql
431 #define sqlite3_status sqlite3_api->status
432 #define sqlite3_backup_finish sqlite3_api->backup_finish
433 #define sqlite3_backup_init sqlite3_api->backup_init
434 #define sqlite3_backup_pagecount sqlite3_api->backup_pagecount
435 #define sqlite3_backup_remaining sqlite3_api->backup_remaining
436 #define sqlite3_backup_step sqlite3_api->backup_step
437 #define sqlite3_compileoption_get sqlite3_api->compileoption_get
438 #define sqlite3_compileoption_used sqlite3_api->compileoption_used
439 #define sqlite3_create_function_v2 sqlite3_api->create_function_v2
440 #define sqlite3_db_config sqlite3_api->db_config
441 #define sqlite3_db_mutex sqlite3_api->db_mutex
442 #define sqlite3_db_status sqlite3_api->db_status
443 #define sqlite3_extended_errcode sqlite3_api->extended_errcode
444 #define sqlite3_log sqlite3_api->log
445 #define sqlite3_soft_heap_limit64 sqlite3_api->soft_heap_limit64
446 #define sqlite3_sourceid sqlite3_api->sourceid
447 #define sqlite3_stmt_status sqlite3_api->stmt_status
448 #define sqlite3_strnicmp sqlite3_api->strnicmp
449 #define sqlite3_unlock_notify sqlite3_api->unlock_notify
450 #define sqlite3_wal_autocheckpoint sqlite3_api->wal_autocheckpoint
451 #define sqlite3_wal_checkpoint sqlite3_api->wal_checkpoint
452 #define sqlite3_wal_hook sqlite3_api->wal_hook
453 #define sqlite3_blob_reopen sqlite3_api->blob_reopen
454 #define sqlite3_vtab_config sqlite3_api->vtab_config
455 #define sqlite3_vtab_on_conflict sqlite3_api->vtab_on_conflict
456 /* Version 3.7.16 and later */
457 #define sqlite3_close_v2 sqlite3_api->close_v2
458 #define sqlite3_db_filename sqlite3_api->db_filename
459 #define sqlite3_db_readonly sqlite3_api->db_readonly
460 #define sqlite3_db_release_memory sqlite3_api->db_release_memory
461 #define sqlite3_errstr sqlite3_api->errstr
462 #define sqlite3_stmt_busy sqlite3_api->stmt_busy
463 #define sqlite3_stmt_readonly sqlite3_api->stmt_readonly
464 #define sqlite3_stricmp sqlite3_api->stricmp
465 #define sqlite3_uri_boolean sqlite3_api->uri_boolean
466 #define sqlite3_uri_int64 sqlite3_api->uri_int64
467 #define sqlite3_uri_parameter sqlite3_api->uri_parameter
468 #define sqlite3_uri_vsnprintf sqlite3_api->vsnprintf
469 #define sqlite3_wal_checkpoint_v2 sqlite3_api->wal_checkpoint_v2
470 #endif /* SQLITE_CORE */
471 
472 #ifndef SQLITE_CORE
473  /* This case when the file really is being compiled as a loadable
474  ** extension */
475 # define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api=0;
476 # define SQLITE_EXTENSION_INIT2(v) sqlite3_api=v;
477 # define SQLITE_EXTENSION_INIT3 \
478  extern const sqlite3_api_routines *sqlite3_api;
479 #else
480  /* This case when the file is being statically linked into the
481  ** application */
482 # define SQLITE_EXTENSION_INIT1 /*no-op*/
483 # define SQLITE_EXTENSION_INIT2(v) (void)v; /* unused parameter */
484 # define SQLITE_EXTENSION_INIT3 /*no-op*/
485 #endif
486 
487 #endif /* _SQLITE3EXT_H_ */
int
int
sqlite3_api_routines::set_auxdata
void(* set_auxdata)(sqlite3_context *, int, void *, void(*)(void *))
Definition: sqlite3.c:95184
sqlite3_api_routines::result_zeroblob
void(* result_zeroblob)(sqlite3_context *, int)
Definition: sqlite3.c:95247
sqlite3_api_routines::result_error_code
void(* result_error_code)(sqlite3_context *, int)
Definition: sqlite3.c:95248
sqlite3_api_routines::global_recover
int(* global_recover)(void)
Definition: sqlite3.c:95154
sqlite3_api_routines::create_collation
int(* create_collation)(sqlite3 *, const char *, int, void *, int(*)(void *, int, const void *, int, const void *))
Definition: sqlite3.c:95126
sqlite3_api_routines::reset
int(* reset)(sqlite3_stmt *pStmt)
Definition: sqlite3.c:95168
sqlite3_api_routines::enable_shared_cache
int(* enable_shared_cache)(int)
Definition: sqlite3.c:95142
sqlite3_api_routines::transfer_bindings
int(* transfer_bindings)(sqlite3_stmt *, sqlite3_stmt *)
Definition: sqlite3.c:95192
sqlite3_api_routines::column_int
int(* column_int)(sqlite3_stmt *, int iCol)
Definition: sqlite3.c:95111
sqlite3_api_routines::bind_zeroblob
int(* bind_zeroblob)(sqlite3_stmt *, int, int)
Definition: sqlite3.c:95219
sqlite3_api_routines::get_table
int(* get_table)(sqlite3 *, const char *, char ***, int *, int *, char **)
Definition: sqlite3.c:95153
sqlite3_api_routines
Definition: sqlite3.c:95080
sqlite3_api_routines::mutex_leave
void(* mutex_leave)(sqlite3_mutex *)
Definition: sqlite3.c:95235
sqlite3_api_routines::db_status
int(* db_status)(sqlite3 *, int, int *, int *, int)
Definition: sqlite3.c:95271
sqlite3_api_routines::free_table
void(* free_table)(char **result)
Definition: sqlite3.c:95150
sqlite3_api_routines::file_control
int(* file_control)(sqlite3 *, const char *, int, void *)
Definition: sqlite3.c:95229
sqlite3_api_routines::column_type
int(* column_type)(sqlite3_stmt *, int iCol)
Definition: sqlite3.c:95121
sqlite3_api_routines::interruptx
void(* interruptx)(sqlite3 *)
Definition: sqlite3.c:95155
sqlite3_api_routines::uri_int64
sqlite3_int64(* uri_int64)(const char *, const char *, sqlite3_int64)
Definition: sqlite3.c:95295
sqlite3_api_routines::result_value
void(* result_value)(sqlite3_context *, sqlite3_value *)
Definition: sqlite3.c:95180
sqlite3_api_routines::busy_timeout
int(* busy_timeout)(sqlite3 *, int ms)
Definition: sqlite3.c:95095
sqlite3_api_routines::result_int
void(* result_int)(sqlite3_context *, int)
Definition: sqlite3.c:95173
sqlite3_context
Definition: sqlite3.c:13671
sqlite3_api_routines::step
int(* step)(sqlite3_stmt *)
Definition: sqlite3.c:95186
sqlite3_api_routines::stmt_busy
int(* stmt_busy)(sqlite3_stmt *)
Definition: sqlite3.c:95291
sqlite3_api_routines::result_blob
void(* result_blob)(sqlite3_context *, const void *, int, void(*)(void *))
Definition: sqlite3.c:95169
sqlite3_api_routines::blob_write
int(* blob_write)(sqlite3_blob *, const void *, int, int)
Definition: sqlite3.c:95225
sqlite3_api_routines::clear_bindings
int(* clear_bindings)(sqlite3_stmt *)
Definition: sqlite3.c:95214
sqlite3_api_routines::stmt_status
int(* stmt_status)(sqlite3_stmt *, int, int)
Definition: sqlite3.c:95276
sqlite3_api_routines::bind_parameter_count
int(* bind_parameter_count)(sqlite3_stmt *)
Definition: sqlite3.c:95088
sqlite3_api_routines::total_changes
int(* total_changes)(sqlite3 *)
Definition: sqlite3.c:95190
sqlite3_api_routines::create_function16
int(* create_function16)(sqlite3 *, const void *, int, int, void *, void(*xFunc)(sqlite3_context *, int, sqlite3_value **), void(*xStep)(sqlite3_context *, int, sqlite3_value **), void(*xFinal)(sqlite3_context *))
Definition: sqlite3.c:95134
sqlite3_api_routines::create_collation_v2
int(* create_collation_v2)(sqlite3 *, const char *, int, void *, int(*)(void *, int, const void *, int, const void *), void(*)(void *))
Definition: sqlite3.c:95226
sqlite3_api_routines::backup_pagecount
int(* backup_pagecount)(sqlite3_backup *)
Definition: sqlite3.c:95259
Mem
Definition: sqlite3.c:13566
sqlite3_api_routines::progress_handler
void(* progress_handler)(sqlite3 *, int, int(*)(void *), void *)
Definition: sqlite3.c:95166
sqlite3_api_routines::result_double
void(* result_double)(sqlite3_context *, double)
Definition: sqlite3.c:95170
sqlite3_api_routines::test_control
int(* test_control)(int,...)
Definition: sqlite3.c:95249
sqlite3_api_routines::db_readonly
int(* db_readonly)(sqlite3 *, const char *)
Definition: sqlite3.c:95288
sqlite3_api_routines::vfs_unregister
int(* vfs_unregister)(sqlite3_vfs *)
Definition: sqlite3.c:95245
sqlite3_api_routines::blob_close
int(* blob_close)(sqlite3_blob *)
Definition: sqlite3.c:95221
sqlite3_api_routines::bind_int64
int(* bind_int64)(sqlite3_stmt *, int, sqlite_int64)
Definition: sqlite3.c:95086
sqlite3_mutex
Definition: sqlite3.c:18292
sqlite3_api_routines::close_v2
int(* close_v2)(sqlite3 *)
Definition: sqlite3.c:95286
sqlite3_api_routines::prepare
int(* prepare)(sqlite3 *, const char *, int, sqlite3_stmt **, const char **)
Definition: sqlite3.c:95163
sqlite3_api_routines::blob_bytes
int(* blob_bytes)(sqlite3_blob *)
Definition: sqlite3.c:95220
sqlite3_api_routines::vtab_on_conflict
int(* vtab_on_conflict)(sqlite3 *)
Definition: sqlite3.c:95284
sqlite3_api_routines::exec
int(* exec)(sqlite3 *, const char *, sqlite3_callback, void *, char **)
Definition: sqlite3.c:95146
sqlite3_api_routines::stricmp
int(* stricmp)(const char *, const char *)
Definition: sqlite3.c:95293
sqlite3_api_routines::bind_parameter_index
int(* bind_parameter_index)(sqlite3_stmt *, const char *zName)
Definition: sqlite3.c:95089
sqlite3_api_routines::wal_checkpoint
int(* wal_checkpoint)(sqlite3 *, const char *)
Definition: sqlite3.c:95280
sqlite3_api_routines::create_function_v2
int(* create_function_v2)(sqlite3 *, const char *, int, int, void *, void(*xFunc)(sqlite3_context *, int, sqlite3_value **), void(*xStep)(sqlite3_context *, int, sqlite3_value **), void(*xFinal)(sqlite3_context *), void(*xDestroy)(void *))
Definition: sqlite3.c:95264
sqlite3_api_routines::bind_text
int(* bind_text)(sqlite3_stmt *, int, const char *, int n, void(*)(void *))
Definition: sqlite3.c:95091
sqlite3_api_routines::extended_errcode
int(* extended_errcode)(sqlite3 *)
Definition: sqlite3.c:95272
sqlite3_api_routines::result_text16be
void(* result_text16be)(sqlite3_context *, const void *, int, void(*)(void *))
Definition: sqlite3.c:95178
sqlite3_api_routines::bind_text16
int(* bind_text16)(sqlite3_stmt *, int, const void *, int, void(*)(void *))
Definition: sqlite3.c:95092
sqlite3_api_routines::wal_checkpoint_v2
int(* wal_checkpoint_v2)(sqlite3 *, const char *, int, int *, int *)
Definition: sqlite3.c:95298
sqlite3_api_routines::close
int(* close)(sqlite3 *)
Definition: sqlite3.c:95097
sqlite3_api_routines::mutex_free
void(* mutex_free)(sqlite3_mutex *)
Definition: sqlite3.c:95234
n
int n
sqlite3_int64
sqlite_int64 sqlite3_int64
Definition: sqlite3.c:284
sqlite3_api_routines::bind_null
int(* bind_null)(sqlite3_stmt *, int)
Definition: sqlite3.c:95087
sqlite3_api_routines::blob_open
int(* blob_open)(sqlite3 *, const char *, const char *, const char *, sqlite3_int64, int, sqlite3_blob **)
Definition: sqlite3.c:95222
sqlite3_api_routines::wal_autocheckpoint
int(* wal_autocheckpoint)(sqlite3 *, int)
Definition: sqlite3.c:95279
sqlite3_api_routines::blob_read
int(* blob_read)(sqlite3_blob *, void *, int, int)
Definition: sqlite3.c:95224
sqlite3_api_routines::set_authorizer
int(* set_authorizer)(sqlite3 *, int(*)(void *, int, const char *, const char *, const char *, const char *), void *)
Definition: sqlite3.c:95182
sqlite3_api_routines::backup_remaining
int(* backup_remaining)(sqlite3_backup *)
Definition: sqlite3.c:95260
sqlite3_api_routines::thread_cleanup
void(* thread_cleanup)(void)
Definition: sqlite3.c:95189
sqlite3_api_routines::log
void(* log)(int, const char *,...)
Definition: sqlite3.c:95273
sqlite3_api_routines::overload_function
int(* overload_function)(sqlite3 *, const char *zFuncName, int nArg)
Definition: sqlite3.c:95210
sqlite3_api_routines::strnicmp
int(* strnicmp)(const char *, const char *, int)
Definition: sqlite3.c:95277
sqlite3.h
sqlite3_api_routines::result_error16
void(* result_error16)(sqlite3_context *, const void *, int)
Definition: sqlite3.c:95172
sqlite3_api_routines::expired
int(* expired)(sqlite3_stmt *)
Definition: sqlite3.c:95147
sqlite3_api_routines::create_function
int(* create_function)(sqlite3 *, const char *, int, int, void *, void(*xFunc)(sqlite3_context *, int, sqlite3_value **), void(*xStep)(sqlite3_context *, int, sqlite3_value **), void(*xFinal)(sqlite3_context *))
Definition: sqlite3.c:95130
sqlite3_api_routines::uri_boolean
int(* uri_boolean)(const char *, const char *, int)
Definition: sqlite3.c:95294
sqlite3_api_routines::result_text
void(* result_text)(sqlite3_context *, const char *, int, void(*)(void *))
Definition: sqlite3.c:95176
sqlite3_api_routines::bind_int
int(* bind_int)(sqlite3_stmt *, int, int)
Definition: sqlite3.c:95085
sqlite3_api_routines::stmt_readonly
int(* stmt_readonly)(sqlite3_stmt *)
Definition: sqlite3.c:95292
sqlite3_api_routines::xthreadsafe
int(* xthreadsafe)(void)
Definition: sqlite3.c:95246
sqlite3_api_routines::collation_needed16
int(* collation_needed16)(sqlite3 *, void *, void(*)(void *, sqlite3 *, int eTextRep, const void *))
Definition: sqlite3.c:95100
sqlite3_api_routines::result_error_nomem
void(* result_error_nomem)(sqlite3_context *)
Definition: sqlite3.c:95239
sqlite3_api_routines::vtab_config
int(* vtab_config)(sqlite3 *, int op,...)
Definition: sqlite3.c:95283
sqlite3_api_routines::memory_used
sqlite3_int64(* memory_used)(void)
Definition: sqlite3.c:95231
sqlite3_api_routines::memory_highwater
sqlite3_int64(* memory_highwater)(int)
Definition: sqlite3.c:95230
sqlite3_api_routines::changes
int(* changes)(sqlite3 *)
Definition: sqlite3.c:95096
sqlite3_api_routines::soft_heap_limit64
sqlite3_int64(* soft_heap_limit64)(sqlite3_int64)
Definition: sqlite3.c:95274
sqlite3_api_routines::value_int
int(* value_int)(sqlite3_value *)
Definition: sqlite3.c:95200
sqlite3_api_routines::prepare16_v2
int(* prepare16_v2)(sqlite3 *, const void *, int, sqlite3_stmt **, const void **)
Definition: sqlite3.c:95213
sqlite3_api_routines::open_v2
int(* open_v2)(const char *, sqlite3 **, int, const char *)
Definition: sqlite3.c:95237
sqlite3_api_routines::create_collation16
int(* create_collation16)(sqlite3 *, const void *, int, void *, int(*)(void *, int, const void *, int, const void *))
Definition: sqlite3.c:95128
sqlite3_api_routines::column_count
int(* column_count)(sqlite3_stmt *pStmt)
Definition: sqlite3.c:95105
sqlite3_api_routines::errcode
int(* errcode)(sqlite3 *db)
Definition: sqlite3.c:95143
sqlite3_api_routines::column_bytes16
int(* column_bytes16)(sqlite3_stmt *, int iCol)
Definition: sqlite3.c:95104
sqlite3_api_routines::value_numeric_type
int(* value_numeric_type)(sqlite3_value *)
Definition: sqlite3.c:95202
sqlite3_api_routines::db_config
int(* db_config)(sqlite3 *, int,...)
Definition: sqlite3.c:95269
sqlite3_api_routines::busy_handler
int(* busy_handler)(sqlite3 *, int(*)(void *, int), void *)
Definition: sqlite3.c:95094
sqlite3_api_routines::backup_step
int(* backup_step)(sqlite3_backup *, int)
Definition: sqlite3.c:95261
sqlite3_api_routines::result_int64
void(* result_int64)(sqlite3_context *, sqlite_int64)
Definition: sqlite3.c:95174
op
UnaryOp op
sqlite3_api_routines::column_double
double(* column_double)(sqlite3_stmt *, int iCol)
Definition: sqlite3.c:95110
sqlite3_api_routines::vfs_register
int(* vfs_register)(sqlite3_vfs *, int)
Definition: sqlite3.c:95244
sqlite3_api_routines::value_double
double(* value_double)(sqlite3_value *)
Definition: sqlite3.c:95199
sqlite3_api_routines::finalize
int(* finalize)(sqlite3_stmt *pStmt)
Definition: sqlite3.c:95148
sqlite3_api_routines::collation_needed
int(* collation_needed)(sqlite3 *, void *, void(*)(void *, sqlite3 *, int eTextRep, const char *))
Definition: sqlite3.c:95098
sqlite3_api_routines::create_module_v2
int(* create_module_v2)(sqlite3 *, const char *, const sqlite3_module *, void *, void(*xDestroy)(void *))
Definition: sqlite3.c:95216
sqlite3_api_routines::value_int64
sqlite_int64(* value_int64)(sqlite3_value *)
Definition: sqlite3.c:95201
sqlite3_api_routines::complete16
int(* complete16)(const void *sql)
Definition: sqlite3.c:95125
sqlite3_api_routines::bind_blob
int(* bind_blob)(sqlite3_stmt *, int, const void *, int n, void(*)(void *))
Definition: sqlite3.c:95083
sqlite3_api_routines::bind_value
int(* bind_value)(sqlite3_stmt *, int, const sqlite3_value *)
Definition: sqlite3.c:95093
sqlite3_api_routines::data_count
int(* data_count)(sqlite3_stmt *pStmt)
Definition: sqlite3.c:95139
sqlite3_stmt
struct sqlite3_stmt sqlite3_stmt
Definition: DBDriverSqlite3.h:35
sqlite3_api_routines::sql
const char *(* sql)(sqlite3_stmt *)
Definition: sqlite3.c:95255
sqlite3
Definition: sqlite3.c:10170
sqlite3_backup
Definition: sqlite3.c:58904
sqlite3_api_routines::value_bytes
int(* value_bytes)(sqlite3_value *)
Definition: sqlite3.c:95197
sqlite3_api_routines::complete
int(* complete)(const char *sql)
Definition: sqlite3.c:95124
sqlite3_api_routines::column_int64
sqlite_int64(* column_int64)(sqlite3_stmt *, int iCol)
Definition: sqlite3.c:95112
sqlite3_api_routines::result_text16le
void(* result_text16le)(sqlite3_context *, const void *, int, void(*)(void *))
Definition: sqlite3.c:95179
sqlite3_api_routines::get_autocommit
int(* get_autocommit)(sqlite3 *)
Definition: sqlite3.c:95151
sqlite3_blob
struct sqlite3_blob sqlite3_blob
Definition: sqlite3.c:5529
sqlite3_api_routines::db_release_memory
int(* db_release_memory)(sqlite3 *)
Definition: sqlite3.c:95289
sqlite3_vfs
Definition: sqlite3.c:1144
sqlite3_api_routines::soft_heap_limit
void(* soft_heap_limit)(int)
Definition: sqlite3.c:95242
sqlite3_api_routines::last_insert_rowid
sqlite_int64(* last_insert_rowid)(sqlite3 *)
Definition: sqlite3.c:95156
sqlite3_api_routines::extended_result_codes
int(* extended_result_codes)(sqlite3 *, int)
Definition: sqlite3.c:95252
sqlite3_api_routines::free
void(* free)(void *)
Definition: sqlite3.c:95149
sqlite3_api_routines::result_error
void(* result_error)(sqlite3_context *, const char *, int)
Definition: sqlite3.c:95171
sqlite3_api_routines::result_null
void(* result_null)(sqlite3_context *)
Definition: sqlite3.c:95175
sqlite_int64
long long int sqlite_int64
Definition: sqlite3.c:281
sqlite3_api_routines::create_module
int(* create_module)(sqlite3 *, const char *, const sqlite3_module *, void *)
Definition: sqlite3.c:95138
sqlite3_api_routines::result_error_toobig
void(* result_error_toobig)(sqlite3_context *)
Definition: sqlite3.c:95240
sqlite3_api_routines::open16
int(* open16)(const void *, sqlite3 **)
Definition: sqlite3.c:95162
sqlite3_api_routines::release_memory
int(* release_memory)(int)
Definition: sqlite3.c:95238
sqlite3_api_routines::value_bytes16
int(* value_bytes16)(sqlite3_value *)
Definition: sqlite3.c:95198
sqlite3_api_routines::prepare_v2
int(* prepare_v2)(sqlite3 *, const char *, int, sqlite3_stmt **, const char **)
Definition: sqlite3.c:95212
sqlite3_api_routines::mutex_try
int(* mutex_try)(sqlite3_mutex *)
Definition: sqlite3.c:95236
sqlite3_api_routines::open
int(* open)(const char *, sqlite3 **)
Definition: sqlite3.c:95161
sqlite3_api_routines::backup_finish
int(* backup_finish)(sqlite3_backup *)
Definition: sqlite3.c:95257
sqlite3_api_routines::aggregate_count
int(* aggregate_count)(sqlite3_context *)
Definition: sqlite3.c:95082
sqlite3_api_routines::randomness
void(* randomness)(int, void *)
Definition: sqlite3.c:95250
sqlite3_api_routines::libversion_number
int(* libversion_number)(void)
Definition: sqlite3.c:95158
sqlite3_api_routines::unlock_notify
int(* unlock_notify)(sqlite3 *, void(*)(void **, int), void *)
Definition: sqlite3.c:95278
sqlite3_api_routines::bind_double
int(* bind_double)(sqlite3_stmt *, int, double)
Definition: sqlite3.c:95084
sqlite3_api_routines::limit
int(* limit)(sqlite3 *, int, int)
Definition: sqlite3.c:95253
sqlite3_api_routines::value_type
int(* value_type)(sqlite3_value *)
Definition: sqlite3.c:95207
sqlite_uint64
unsigned long long int sqlite_uint64
Definition: sqlite3.c:282
sqlite3_api_routines::result_text16
void(* result_text16)(sqlite3_context *, const void *, int, void(*)(void *))
Definition: sqlite3.c:95177
sqlite3_api_routines::prepare16
int(* prepare16)(sqlite3 *, const void *, int, sqlite3_stmt **, const void **)
Definition: sqlite3.c:95164
i
int i
sqlite3_callback
int(* sqlite3_callback)(void *, int, char **, char **)
Definition: sqlite3.c:344
sqlite3_api_routines::mutex_enter
void(* mutex_enter)(sqlite3_mutex *)
Definition: sqlite3.c:95233
sqlite3_module
Definition: sqlite3.c:5250
result
RESULT & result
sqlite3_api_routines::table_column_metadata
int(* table_column_metadata)(sqlite3 *, const char *, const char *, const char *, char const **, char const **, int *, int *, int *)
Definition: sqlite3.c:95187
sqlite3_api_routines::status
int(* status)(int, int *, int *, int)
Definition: sqlite3.c:95256
sqlite3_api_routines::blob_reopen
int(* blob_reopen)(sqlite3_blob *, sqlite3_int64)
Definition: sqlite3.c:95282
sqlite3_api_routines::declare_vtab
int(* declare_vtab)(sqlite3 *, const char *)
Definition: sqlite3.c:95141
sqlite3_api_routines::column_bytes
int(* column_bytes)(sqlite3_stmt *, int iCol)
Definition: sqlite3.c:95103
sqlite3_api_routines::sleep
int(* sleep)(int)
Definition: sqlite3.c:95241
sqlite3_api_routines::compileoption_used
int(* compileoption_used)(const char *)
Definition: sqlite3.c:95263


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:22