File indexing completed on 2025-01-17 09:56:02
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef SQLITE3EXT_H
0019 #define SQLITE3EXT_H
0020 #include "sqlite3.h"
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 struct sqlite3_api_routines {
0033 void * (*aggregate_context)(sqlite3_context*,int nBytes);
0034 int (*aggregate_count)(sqlite3_context*);
0035 int (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*));
0036 int (*bind_double)(sqlite3_stmt*,int,double);
0037 int (*bind_int)(sqlite3_stmt*,int,int);
0038 int (*bind_int64)(sqlite3_stmt*,int,sqlite_int64);
0039 int (*bind_null)(sqlite3_stmt*,int);
0040 int (*bind_parameter_count)(sqlite3_stmt*);
0041 int (*bind_parameter_index)(sqlite3_stmt*,const char*zName);
0042 const char * (*bind_parameter_name)(sqlite3_stmt*,int);
0043 int (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*));
0044 int (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*));
0045 int (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*);
0046 int (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
0047 int (*busy_timeout)(sqlite3*,int ms);
0048 int (*changes)(sqlite3*);
0049 int (*close)(sqlite3*);
0050 int (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,
0051 int eTextRep,const char*));
0052 int (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,
0053 int eTextRep,const void*));
0054 const void * (*column_blob)(sqlite3_stmt*,int iCol);
0055 int (*column_bytes)(sqlite3_stmt*,int iCol);
0056 int (*column_bytes16)(sqlite3_stmt*,int iCol);
0057 int (*column_count)(sqlite3_stmt*pStmt);
0058 const char * (*column_database_name)(sqlite3_stmt*,int);
0059 const void * (*column_database_name16)(sqlite3_stmt*,int);
0060 const char * (*column_decltype)(sqlite3_stmt*,int i);
0061 const void * (*column_decltype16)(sqlite3_stmt*,int);
0062 double (*column_double)(sqlite3_stmt*,int iCol);
0063 int (*column_int)(sqlite3_stmt*,int iCol);
0064 sqlite_int64 (*column_int64)(sqlite3_stmt*,int iCol);
0065 const char * (*column_name)(sqlite3_stmt*,int);
0066 const void * (*column_name16)(sqlite3_stmt*,int);
0067 const char * (*column_origin_name)(sqlite3_stmt*,int);
0068 const void * (*column_origin_name16)(sqlite3_stmt*,int);
0069 const char * (*column_table_name)(sqlite3_stmt*,int);
0070 const void * (*column_table_name16)(sqlite3_stmt*,int);
0071 const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);
0072 const void * (*column_text16)(sqlite3_stmt*,int iCol);
0073 int (*column_type)(sqlite3_stmt*,int iCol);
0074 sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);
0075 void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
0076 int (*complete)(const char*sql);
0077 int (*complete16)(const void*sql);
0078 int (*create_collation)(sqlite3*,const char*,int,void*,
0079 int(*)(void*,int,const void*,int,const void*));
0080 int (*create_collation16)(sqlite3*,const void*,int,void*,
0081 int(*)(void*,int,const void*,int,const void*));
0082 int (*create_function)(sqlite3*,const char*,int,int,void*,
0083 void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
0084 void (*xStep)(sqlite3_context*,int,sqlite3_value**),
0085 void (*xFinal)(sqlite3_context*));
0086 int (*create_function16)(sqlite3*,const void*,int,int,void*,
0087 void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
0088 void (*xStep)(sqlite3_context*,int,sqlite3_value**),
0089 void (*xFinal)(sqlite3_context*));
0090 int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);
0091 int (*data_count)(sqlite3_stmt*pStmt);
0092 sqlite3 * (*db_handle)(sqlite3_stmt*);
0093 int (*declare_vtab)(sqlite3*,const char*);
0094 int (*enable_shared_cache)(int);
0095 int (*errcode)(sqlite3*db);
0096 const char * (*errmsg)(sqlite3*);
0097 const void * (*errmsg16)(sqlite3*);
0098 int (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);
0099 int (*expired)(sqlite3_stmt*);
0100 int (*finalize)(sqlite3_stmt*pStmt);
0101 void (*free)(void*);
0102 void (*free_table)(char**result);
0103 int (*get_autocommit)(sqlite3*);
0104 void * (*get_auxdata)(sqlite3_context*,int);
0105 int (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);
0106 int (*global_recover)(void);
0107 void (*interruptx)(sqlite3*);
0108 sqlite_int64 (*last_insert_rowid)(sqlite3*);
0109 const char * (*libversion)(void);
0110 int (*libversion_number)(void);
0111 void *(*malloc)(int);
0112 char * (*mprintf)(const char*,...);
0113 int (*open)(const char*,sqlite3**);
0114 int (*open16)(const void*,sqlite3**);
0115 int (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
0116 int (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
0117 void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);
0118 void (*progress_handler)(sqlite3*,int,int(*)(void*),void*);
0119 void *(*realloc)(void*,int);
0120 int (*reset)(sqlite3_stmt*pStmt);
0121 void (*result_blob)(sqlite3_context*,const void*,int,void(*)(void*));
0122 void (*result_double)(sqlite3_context*,double);
0123 void (*result_error)(sqlite3_context*,const char*,int);
0124 void (*result_error16)(sqlite3_context*,const void*,int);
0125 void (*result_int)(sqlite3_context*,int);
0126 void (*result_int64)(sqlite3_context*,sqlite_int64);
0127 void (*result_null)(sqlite3_context*);
0128 void (*result_text)(sqlite3_context*,const char*,int,void(*)(void*));
0129 void (*result_text16)(sqlite3_context*,const void*,int,void(*)(void*));
0130 void (*result_text16be)(sqlite3_context*,const void*,int,void(*)(void*));
0131 void (*result_text16le)(sqlite3_context*,const void*,int,void(*)(void*));
0132 void (*result_value)(sqlite3_context*,sqlite3_value*);
0133 void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);
0134 int (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,
0135 const char*,const char*),void*);
0136 void (*set_auxdata)(sqlite3_context*,int,void*,void (*)(void*));
0137 char * (*xsnprintf)(int,char*,const char*,...);
0138 int (*step)(sqlite3_stmt*);
0139 int (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,
0140 char const**,char const**,int*,int*,int*);
0141 void (*thread_cleanup)(void);
0142 int (*total_changes)(sqlite3*);
0143 void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);
0144 int (*transfer_bindings)(sqlite3_stmt*,sqlite3_stmt*);
0145 void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,
0146 sqlite_int64),void*);
0147 void * (*user_data)(sqlite3_context*);
0148 const void * (*value_blob)(sqlite3_value*);
0149 int (*value_bytes)(sqlite3_value*);
0150 int (*value_bytes16)(sqlite3_value*);
0151 double (*value_double)(sqlite3_value*);
0152 int (*value_int)(sqlite3_value*);
0153 sqlite_int64 (*value_int64)(sqlite3_value*);
0154 int (*value_numeric_type)(sqlite3_value*);
0155 const unsigned char * (*value_text)(sqlite3_value*);
0156 const void * (*value_text16)(sqlite3_value*);
0157 const void * (*value_text16be)(sqlite3_value*);
0158 const void * (*value_text16le)(sqlite3_value*);
0159 int (*value_type)(sqlite3_value*);
0160 char *(*vmprintf)(const char*,va_list);
0161
0162 int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
0163
0164 int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
0165 int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
0166 int (*clear_bindings)(sqlite3_stmt*);
0167
0168 int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,
0169 void (*xDestroy)(void *));
0170
0171 int (*bind_zeroblob)(sqlite3_stmt*,int,int);
0172 int (*blob_bytes)(sqlite3_blob*);
0173 int (*blob_close)(sqlite3_blob*);
0174 int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,
0175 int,sqlite3_blob**);
0176 int (*blob_read)(sqlite3_blob*,void*,int,int);
0177 int (*blob_write)(sqlite3_blob*,const void*,int,int);
0178 int (*create_collation_v2)(sqlite3*,const char*,int,void*,
0179 int(*)(void*,int,const void*,int,const void*),
0180 void(*)(void*));
0181 int (*file_control)(sqlite3*,const char*,int,void*);
0182 sqlite3_int64 (*memory_highwater)(int);
0183 sqlite3_int64 (*memory_used)(void);
0184 sqlite3_mutex *(*mutex_alloc)(int);
0185 void (*mutex_enter)(sqlite3_mutex*);
0186 void (*mutex_free)(sqlite3_mutex*);
0187 void (*mutex_leave)(sqlite3_mutex*);
0188 int (*mutex_try)(sqlite3_mutex*);
0189 int (*open_v2)(const char*,sqlite3**,int,const char*);
0190 int (*release_memory)(int);
0191 void (*result_error_nomem)(sqlite3_context*);
0192 void (*result_error_toobig)(sqlite3_context*);
0193 int (*sleep)(int);
0194 void (*soft_heap_limit)(int);
0195 sqlite3_vfs *(*vfs_find)(const char*);
0196 int (*vfs_register)(sqlite3_vfs*,int);
0197 int (*vfs_unregister)(sqlite3_vfs*);
0198 int (*xthreadsafe)(void);
0199 void (*result_zeroblob)(sqlite3_context*,int);
0200 void (*result_error_code)(sqlite3_context*,int);
0201 int (*test_control)(int, ...);
0202 void (*randomness)(int,void*);
0203 sqlite3 *(*context_db_handle)(sqlite3_context*);
0204 int (*extended_result_codes)(sqlite3*,int);
0205 int (*limit)(sqlite3*,int,int);
0206 sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);
0207 const char *(*sql)(sqlite3_stmt*);
0208 int (*status)(int,int*,int*,int);
0209 int (*backup_finish)(sqlite3_backup*);
0210 sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*);
0211 int (*backup_pagecount)(sqlite3_backup*);
0212 int (*backup_remaining)(sqlite3_backup*);
0213 int (*backup_step)(sqlite3_backup*,int);
0214 const char *(*compileoption_get)(int);
0215 int (*compileoption_used)(const char*);
0216 int (*create_function_v2)(sqlite3*,const char*,int,int,void*,
0217 void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
0218 void (*xStep)(sqlite3_context*,int,sqlite3_value**),
0219 void (*xFinal)(sqlite3_context*),
0220 void(*xDestroy)(void*));
0221 int (*db_config)(sqlite3*,int,...);
0222 sqlite3_mutex *(*db_mutex)(sqlite3*);
0223 int (*db_status)(sqlite3*,int,int*,int*,int);
0224 int (*extended_errcode)(sqlite3*);
0225 void (*log)(int,const char*,...);
0226 sqlite3_int64 (*soft_heap_limit64)(sqlite3_int64);
0227 const char *(*sourceid)(void);
0228 int (*stmt_status)(sqlite3_stmt*,int,int);
0229 int (*strnicmp)(const char*,const char*,int);
0230 int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*);
0231 int (*wal_autocheckpoint)(sqlite3*,int);
0232 int (*wal_checkpoint)(sqlite3*,const char*);
0233 void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*);
0234 int (*blob_reopen)(sqlite3_blob*,sqlite3_int64);
0235 int (*vtab_config)(sqlite3*,int op,...);
0236 int (*vtab_on_conflict)(sqlite3*);
0237
0238 int (*close_v2)(sqlite3*);
0239 const char *(*db_filename)(sqlite3*,const char*);
0240 int (*db_readonly)(sqlite3*,const char*);
0241 int (*db_release_memory)(sqlite3*);
0242 const char *(*errstr)(int);
0243 int (*stmt_busy)(sqlite3_stmt*);
0244 int (*stmt_readonly)(sqlite3_stmt*);
0245 int (*stricmp)(const char*,const char*);
0246 int (*uri_boolean)(const char*,const char*,int);
0247 sqlite3_int64 (*uri_int64)(const char*,const char*,sqlite3_int64);
0248 const char *(*uri_parameter)(const char*,const char*);
0249 char *(*xvsnprintf)(int,char*,const char*,va_list);
0250 int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*);
0251
0252 int (*auto_extension)(void(*)(void));
0253 int (*bind_blob64)(sqlite3_stmt*,int,const void*,sqlite3_uint64,
0254 void(*)(void*));
0255 int (*bind_text64)(sqlite3_stmt*,int,const char*,sqlite3_uint64,
0256 void(*)(void*),unsigned char);
0257 int (*cancel_auto_extension)(void(*)(void));
0258 int (*load_extension)(sqlite3*,const char*,const char*,char**);
0259 void *(*malloc64)(sqlite3_uint64);
0260 sqlite3_uint64 (*msize)(void*);
0261 void *(*realloc64)(void*,sqlite3_uint64);
0262 void (*reset_auto_extension)(void);
0263 void (*result_blob64)(sqlite3_context*,const void*,sqlite3_uint64,
0264 void(*)(void*));
0265 void (*result_text64)(sqlite3_context*,const char*,sqlite3_uint64,
0266 void(*)(void*), unsigned char);
0267 int (*strglob)(const char*,const char*);
0268
0269 sqlite3_value *(*value_dup)(const sqlite3_value*);
0270 void (*value_free)(sqlite3_value*);
0271 int (*result_zeroblob64)(sqlite3_context*,sqlite3_uint64);
0272 int (*bind_zeroblob64)(sqlite3_stmt*, int, sqlite3_uint64);
0273
0274 unsigned int (*value_subtype)(sqlite3_value*);
0275 void (*result_subtype)(sqlite3_context*,unsigned int);
0276
0277 int (*status64)(int,sqlite3_int64*,sqlite3_int64*,int);
0278 int (*strlike)(const char*,const char*,unsigned int);
0279 int (*db_cacheflush)(sqlite3*);
0280
0281 int (*system_errno)(sqlite3*);
0282
0283 int (*trace_v2)(sqlite3*,unsigned,int(*)(unsigned,void*,void*,void*),void*);
0284 char *(*expanded_sql)(sqlite3_stmt*);
0285
0286 void (*set_last_insert_rowid)(sqlite3*,sqlite3_int64);
0287
0288 int (*prepare_v3)(sqlite3*,const char*,int,unsigned int,
0289 sqlite3_stmt**,const char**);
0290 int (*prepare16_v3)(sqlite3*,const void*,int,unsigned int,
0291 sqlite3_stmt**,const void**);
0292 int (*bind_pointer)(sqlite3_stmt*,int,void*,const char*,void(*)(void*));
0293 void (*result_pointer)(sqlite3_context*,void*,const char*,void(*)(void*));
0294 void *(*value_pointer)(sqlite3_value*,const char*);
0295 int (*vtab_nochange)(sqlite3_context*);
0296 int (*value_nochange)(sqlite3_value*);
0297 const char *(*vtab_collation)(sqlite3_index_info*,int);
0298
0299 int (*keyword_count)(void);
0300 int (*keyword_name)(int,const char**,int*);
0301 int (*keyword_check)(const char*,int);
0302 sqlite3_str *(*str_new)(sqlite3*);
0303 char *(*str_finish)(sqlite3_str*);
0304 void (*str_appendf)(sqlite3_str*, const char *zFormat, ...);
0305 void (*str_vappendf)(sqlite3_str*, const char *zFormat, va_list);
0306 void (*str_append)(sqlite3_str*, const char *zIn, int N);
0307 void (*str_appendall)(sqlite3_str*, const char *zIn);
0308 void (*str_appendchar)(sqlite3_str*, int N, char C);
0309 void (*str_reset)(sqlite3_str*);
0310 int (*str_errcode)(sqlite3_str*);
0311 int (*str_length)(sqlite3_str*);
0312 char *(*str_value)(sqlite3_str*);
0313
0314 int (*create_window_function)(sqlite3*,const char*,int,int,void*,
0315 void (*xStep)(sqlite3_context*,int,sqlite3_value**),
0316 void (*xFinal)(sqlite3_context*),
0317 void (*xValue)(sqlite3_context*),
0318 void (*xInv)(sqlite3_context*,int,sqlite3_value**),
0319 void(*xDestroy)(void*));
0320
0321 const char *(*normalized_sql)(sqlite3_stmt*);
0322
0323 int (*stmt_isexplain)(sqlite3_stmt*);
0324 int (*value_frombind)(sqlite3_value*);
0325
0326 int (*drop_modules)(sqlite3*,const char**);
0327
0328 sqlite3_int64 (*hard_heap_limit64)(sqlite3_int64);
0329 const char *(*uri_key)(const char*,int);
0330 const char *(*filename_database)(const char*);
0331 const char *(*filename_journal)(const char*);
0332 const char *(*filename_wal)(const char*);
0333
0334 const char *(*create_filename)(const char*,const char*,const char*,
0335 int,const char**);
0336 void (*free_filename)(const char*);
0337 sqlite3_file *(*database_file_object)(const char*);
0338
0339 int (*txn_state)(sqlite3*,const char*);
0340
0341 sqlite3_int64 (*changes64)(sqlite3*);
0342 sqlite3_int64 (*total_changes64)(sqlite3*);
0343
0344 int (*autovacuum_pages)(sqlite3*,
0345 unsigned int(*)(void*,const char*,unsigned int,unsigned int,unsigned int),
0346 void*, void(*)(void*));
0347
0348 int (*error_offset)(sqlite3*);
0349 int (*vtab_rhs_value)(sqlite3_index_info*,int,sqlite3_value**);
0350 int (*vtab_distinct)(sqlite3_index_info*);
0351 int (*vtab_in)(sqlite3_index_info*,int,int);
0352 int (*vtab_in_first)(sqlite3_value*,sqlite3_value**);
0353 int (*vtab_in_next)(sqlite3_value*,sqlite3_value**);
0354
0355 int (*deserialize)(sqlite3*,const char*,unsigned char*,
0356 sqlite3_int64,sqlite3_int64,unsigned);
0357 unsigned char *(*serialize)(sqlite3*,const char *,sqlite3_int64*,
0358 unsigned int);
0359 const char *(*db_name)(sqlite3*,int);
0360
0361 int (*value_encoding)(sqlite3_value*);
0362
0363 int (*is_interrupted)(sqlite3*);
0364
0365 int (*stmt_explain)(sqlite3_stmt*,int);
0366
0367 void *(*get_clientdata)(sqlite3*,const char*);
0368 int (*set_clientdata)(sqlite3*, const char*, void*, void(*)(void*));
0369 };
0370
0371
0372
0373
0374
0375 typedef int (*sqlite3_loadext_entry)(
0376 sqlite3 *db,
0377 char **pzErrMsg,
0378 const sqlite3_api_routines *pThunk
0379 );
0380
0381
0382
0383
0384
0385
0386
0387
0388
0389
0390
0391
0392 #if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)
0393 #define sqlite3_aggregate_context sqlite3_api->aggregate_context
0394 #ifndef SQLITE_OMIT_DEPRECATED
0395 #define sqlite3_aggregate_count sqlite3_api->aggregate_count
0396 #endif
0397 #define sqlite3_bind_blob sqlite3_api->bind_blob
0398 #define sqlite3_bind_double sqlite3_api->bind_double
0399 #define sqlite3_bind_int sqlite3_api->bind_int
0400 #define sqlite3_bind_int64 sqlite3_api->bind_int64
0401 #define sqlite3_bind_null sqlite3_api->bind_null
0402 #define sqlite3_bind_parameter_count sqlite3_api->bind_parameter_count
0403 #define sqlite3_bind_parameter_index sqlite3_api->bind_parameter_index
0404 #define sqlite3_bind_parameter_name sqlite3_api->bind_parameter_name
0405 #define sqlite3_bind_text sqlite3_api->bind_text
0406 #define sqlite3_bind_text16 sqlite3_api->bind_text16
0407 #define sqlite3_bind_value sqlite3_api->bind_value
0408 #define sqlite3_busy_handler sqlite3_api->busy_handler
0409 #define sqlite3_busy_timeout sqlite3_api->busy_timeout
0410 #define sqlite3_changes sqlite3_api->changes
0411 #define sqlite3_close sqlite3_api->close
0412 #define sqlite3_collation_needed sqlite3_api->collation_needed
0413 #define sqlite3_collation_needed16 sqlite3_api->collation_needed16
0414 #define sqlite3_column_blob sqlite3_api->column_blob
0415 #define sqlite3_column_bytes sqlite3_api->column_bytes
0416 #define sqlite3_column_bytes16 sqlite3_api->column_bytes16
0417 #define sqlite3_column_count sqlite3_api->column_count
0418 #define sqlite3_column_database_name sqlite3_api->column_database_name
0419 #define sqlite3_column_database_name16 sqlite3_api->column_database_name16
0420 #define sqlite3_column_decltype sqlite3_api->column_decltype
0421 #define sqlite3_column_decltype16 sqlite3_api->column_decltype16
0422 #define sqlite3_column_double sqlite3_api->column_double
0423 #define sqlite3_column_int sqlite3_api->column_int
0424 #define sqlite3_column_int64 sqlite3_api->column_int64
0425 #define sqlite3_column_name sqlite3_api->column_name
0426 #define sqlite3_column_name16 sqlite3_api->column_name16
0427 #define sqlite3_column_origin_name sqlite3_api->column_origin_name
0428 #define sqlite3_column_origin_name16 sqlite3_api->column_origin_name16
0429 #define sqlite3_column_table_name sqlite3_api->column_table_name
0430 #define sqlite3_column_table_name16 sqlite3_api->column_table_name16
0431 #define sqlite3_column_text sqlite3_api->column_text
0432 #define sqlite3_column_text16 sqlite3_api->column_text16
0433 #define sqlite3_column_type sqlite3_api->column_type
0434 #define sqlite3_column_value sqlite3_api->column_value
0435 #define sqlite3_commit_hook sqlite3_api->commit_hook
0436 #define sqlite3_complete sqlite3_api->complete
0437 #define sqlite3_complete16 sqlite3_api->complete16
0438 #define sqlite3_create_collation sqlite3_api->create_collation
0439 #define sqlite3_create_collation16 sqlite3_api->create_collation16
0440 #define sqlite3_create_function sqlite3_api->create_function
0441 #define sqlite3_create_function16 sqlite3_api->create_function16
0442 #define sqlite3_create_module sqlite3_api->create_module
0443 #define sqlite3_create_module_v2 sqlite3_api->create_module_v2
0444 #define sqlite3_data_count sqlite3_api->data_count
0445 #define sqlite3_db_handle sqlite3_api->db_handle
0446 #define sqlite3_declare_vtab sqlite3_api->declare_vtab
0447 #define sqlite3_enable_shared_cache sqlite3_api->enable_shared_cache
0448 #define sqlite3_errcode sqlite3_api->errcode
0449 #define sqlite3_errmsg sqlite3_api->errmsg
0450 #define sqlite3_errmsg16 sqlite3_api->errmsg16
0451 #define sqlite3_exec sqlite3_api->exec
0452 #ifndef SQLITE_OMIT_DEPRECATED
0453 #define sqlite3_expired sqlite3_api->expired
0454 #endif
0455 #define sqlite3_finalize sqlite3_api->finalize
0456 #define sqlite3_free sqlite3_api->free
0457 #define sqlite3_free_table sqlite3_api->free_table
0458 #define sqlite3_get_autocommit sqlite3_api->get_autocommit
0459 #define sqlite3_get_auxdata sqlite3_api->get_auxdata
0460 #define sqlite3_get_table sqlite3_api->get_table
0461 #ifndef SQLITE_OMIT_DEPRECATED
0462 #define sqlite3_global_recover sqlite3_api->global_recover
0463 #endif
0464 #define sqlite3_interrupt sqlite3_api->interruptx
0465 #define sqlite3_last_insert_rowid sqlite3_api->last_insert_rowid
0466 #define sqlite3_libversion sqlite3_api->libversion
0467 #define sqlite3_libversion_number sqlite3_api->libversion_number
0468 #define sqlite3_malloc sqlite3_api->malloc
0469 #define sqlite3_mprintf sqlite3_api->mprintf
0470 #define sqlite3_open sqlite3_api->open
0471 #define sqlite3_open16 sqlite3_api->open16
0472 #define sqlite3_prepare sqlite3_api->prepare
0473 #define sqlite3_prepare16 sqlite3_api->prepare16
0474 #define sqlite3_prepare_v2 sqlite3_api->prepare_v2
0475 #define sqlite3_prepare16_v2 sqlite3_api->prepare16_v2
0476 #define sqlite3_profile sqlite3_api->profile
0477 #define sqlite3_progress_handler sqlite3_api->progress_handler
0478 #define sqlite3_realloc sqlite3_api->realloc
0479 #define sqlite3_reset sqlite3_api->reset
0480 #define sqlite3_result_blob sqlite3_api->result_blob
0481 #define sqlite3_result_double sqlite3_api->result_double
0482 #define sqlite3_result_error sqlite3_api->result_error
0483 #define sqlite3_result_error16 sqlite3_api->result_error16
0484 #define sqlite3_result_int sqlite3_api->result_int
0485 #define sqlite3_result_int64 sqlite3_api->result_int64
0486 #define sqlite3_result_null sqlite3_api->result_null
0487 #define sqlite3_result_text sqlite3_api->result_text
0488 #define sqlite3_result_text16 sqlite3_api->result_text16
0489 #define sqlite3_result_text16be sqlite3_api->result_text16be
0490 #define sqlite3_result_text16le sqlite3_api->result_text16le
0491 #define sqlite3_result_value sqlite3_api->result_value
0492 #define sqlite3_rollback_hook sqlite3_api->rollback_hook
0493 #define sqlite3_set_authorizer sqlite3_api->set_authorizer
0494 #define sqlite3_set_auxdata sqlite3_api->set_auxdata
0495 #define sqlite3_snprintf sqlite3_api->xsnprintf
0496 #define sqlite3_step sqlite3_api->step
0497 #define sqlite3_table_column_metadata sqlite3_api->table_column_metadata
0498 #define sqlite3_thread_cleanup sqlite3_api->thread_cleanup
0499 #define sqlite3_total_changes sqlite3_api->total_changes
0500 #define sqlite3_trace sqlite3_api->trace
0501 #ifndef SQLITE_OMIT_DEPRECATED
0502 #define sqlite3_transfer_bindings sqlite3_api->transfer_bindings
0503 #endif
0504 #define sqlite3_update_hook sqlite3_api->update_hook
0505 #define sqlite3_user_data sqlite3_api->user_data
0506 #define sqlite3_value_blob sqlite3_api->value_blob
0507 #define sqlite3_value_bytes sqlite3_api->value_bytes
0508 #define sqlite3_value_bytes16 sqlite3_api->value_bytes16
0509 #define sqlite3_value_double sqlite3_api->value_double
0510 #define sqlite3_value_int sqlite3_api->value_int
0511 #define sqlite3_value_int64 sqlite3_api->value_int64
0512 #define sqlite3_value_numeric_type sqlite3_api->value_numeric_type
0513 #define sqlite3_value_text sqlite3_api->value_text
0514 #define sqlite3_value_text16 sqlite3_api->value_text16
0515 #define sqlite3_value_text16be sqlite3_api->value_text16be
0516 #define sqlite3_value_text16le sqlite3_api->value_text16le
0517 #define sqlite3_value_type sqlite3_api->value_type
0518 #define sqlite3_vmprintf sqlite3_api->vmprintf
0519 #define sqlite3_vsnprintf sqlite3_api->xvsnprintf
0520 #define sqlite3_overload_function sqlite3_api->overload_function
0521 #define sqlite3_prepare_v2 sqlite3_api->prepare_v2
0522 #define sqlite3_prepare16_v2 sqlite3_api->prepare16_v2
0523 #define sqlite3_clear_bindings sqlite3_api->clear_bindings
0524 #define sqlite3_bind_zeroblob sqlite3_api->bind_zeroblob
0525 #define sqlite3_blob_bytes sqlite3_api->blob_bytes
0526 #define sqlite3_blob_close sqlite3_api->blob_close
0527 #define sqlite3_blob_open sqlite3_api->blob_open
0528 #define sqlite3_blob_read sqlite3_api->blob_read
0529 #define sqlite3_blob_write sqlite3_api->blob_write
0530 #define sqlite3_create_collation_v2 sqlite3_api->create_collation_v2
0531 #define sqlite3_file_control sqlite3_api->file_control
0532 #define sqlite3_memory_highwater sqlite3_api->memory_highwater
0533 #define sqlite3_memory_used sqlite3_api->memory_used
0534 #define sqlite3_mutex_alloc sqlite3_api->mutex_alloc
0535 #define sqlite3_mutex_enter sqlite3_api->mutex_enter
0536 #define sqlite3_mutex_free sqlite3_api->mutex_free
0537 #define sqlite3_mutex_leave sqlite3_api->mutex_leave
0538 #define sqlite3_mutex_try sqlite3_api->mutex_try
0539 #define sqlite3_open_v2 sqlite3_api->open_v2
0540 #define sqlite3_release_memory sqlite3_api->release_memory
0541 #define sqlite3_result_error_nomem sqlite3_api->result_error_nomem
0542 #define sqlite3_result_error_toobig sqlite3_api->result_error_toobig
0543 #define sqlite3_sleep sqlite3_api->sleep
0544 #define sqlite3_soft_heap_limit sqlite3_api->soft_heap_limit
0545 #define sqlite3_vfs_find sqlite3_api->vfs_find
0546 #define sqlite3_vfs_register sqlite3_api->vfs_register
0547 #define sqlite3_vfs_unregister sqlite3_api->vfs_unregister
0548 #define sqlite3_threadsafe sqlite3_api->xthreadsafe
0549 #define sqlite3_result_zeroblob sqlite3_api->result_zeroblob
0550 #define sqlite3_result_error_code sqlite3_api->result_error_code
0551 #define sqlite3_test_control sqlite3_api->test_control
0552 #define sqlite3_randomness sqlite3_api->randomness
0553 #define sqlite3_context_db_handle sqlite3_api->context_db_handle
0554 #define sqlite3_extended_result_codes sqlite3_api->extended_result_codes
0555 #define sqlite3_limit sqlite3_api->limit
0556 #define sqlite3_next_stmt sqlite3_api->next_stmt
0557 #define sqlite3_sql sqlite3_api->sql
0558 #define sqlite3_status sqlite3_api->status
0559 #define sqlite3_backup_finish sqlite3_api->backup_finish
0560 #define sqlite3_backup_init sqlite3_api->backup_init
0561 #define sqlite3_backup_pagecount sqlite3_api->backup_pagecount
0562 #define sqlite3_backup_remaining sqlite3_api->backup_remaining
0563 #define sqlite3_backup_step sqlite3_api->backup_step
0564 #define sqlite3_compileoption_get sqlite3_api->compileoption_get
0565 #define sqlite3_compileoption_used sqlite3_api->compileoption_used
0566 #define sqlite3_create_function_v2 sqlite3_api->create_function_v2
0567 #define sqlite3_db_config sqlite3_api->db_config
0568 #define sqlite3_db_mutex sqlite3_api->db_mutex
0569 #define sqlite3_db_status sqlite3_api->db_status
0570 #define sqlite3_extended_errcode sqlite3_api->extended_errcode
0571 #define sqlite3_log sqlite3_api->log
0572 #define sqlite3_soft_heap_limit64 sqlite3_api->soft_heap_limit64
0573 #define sqlite3_sourceid sqlite3_api->sourceid
0574 #define sqlite3_stmt_status sqlite3_api->stmt_status
0575 #define sqlite3_strnicmp sqlite3_api->strnicmp
0576 #define sqlite3_unlock_notify sqlite3_api->unlock_notify
0577 #define sqlite3_wal_autocheckpoint sqlite3_api->wal_autocheckpoint
0578 #define sqlite3_wal_checkpoint sqlite3_api->wal_checkpoint
0579 #define sqlite3_wal_hook sqlite3_api->wal_hook
0580 #define sqlite3_blob_reopen sqlite3_api->blob_reopen
0581 #define sqlite3_vtab_config sqlite3_api->vtab_config
0582 #define sqlite3_vtab_on_conflict sqlite3_api->vtab_on_conflict
0583
0584 #define sqlite3_close_v2 sqlite3_api->close_v2
0585 #define sqlite3_db_filename sqlite3_api->db_filename
0586 #define sqlite3_db_readonly sqlite3_api->db_readonly
0587 #define sqlite3_db_release_memory sqlite3_api->db_release_memory
0588 #define sqlite3_errstr sqlite3_api->errstr
0589 #define sqlite3_stmt_busy sqlite3_api->stmt_busy
0590 #define sqlite3_stmt_readonly sqlite3_api->stmt_readonly
0591 #define sqlite3_stricmp sqlite3_api->stricmp
0592 #define sqlite3_uri_boolean sqlite3_api->uri_boolean
0593 #define sqlite3_uri_int64 sqlite3_api->uri_int64
0594 #define sqlite3_uri_parameter sqlite3_api->uri_parameter
0595 #define sqlite3_uri_vsnprintf sqlite3_api->xvsnprintf
0596 #define sqlite3_wal_checkpoint_v2 sqlite3_api->wal_checkpoint_v2
0597
0598 #define sqlite3_auto_extension sqlite3_api->auto_extension
0599 #define sqlite3_bind_blob64 sqlite3_api->bind_blob64
0600 #define sqlite3_bind_text64 sqlite3_api->bind_text64
0601 #define sqlite3_cancel_auto_extension sqlite3_api->cancel_auto_extension
0602 #define sqlite3_load_extension sqlite3_api->load_extension
0603 #define sqlite3_malloc64 sqlite3_api->malloc64
0604 #define sqlite3_msize sqlite3_api->msize
0605 #define sqlite3_realloc64 sqlite3_api->realloc64
0606 #define sqlite3_reset_auto_extension sqlite3_api->reset_auto_extension
0607 #define sqlite3_result_blob64 sqlite3_api->result_blob64
0608 #define sqlite3_result_text64 sqlite3_api->result_text64
0609 #define sqlite3_strglob sqlite3_api->strglob
0610
0611 #define sqlite3_value_dup sqlite3_api->value_dup
0612 #define sqlite3_value_free sqlite3_api->value_free
0613 #define sqlite3_result_zeroblob64 sqlite3_api->result_zeroblob64
0614 #define sqlite3_bind_zeroblob64 sqlite3_api->bind_zeroblob64
0615
0616 #define sqlite3_value_subtype sqlite3_api->value_subtype
0617 #define sqlite3_result_subtype sqlite3_api->result_subtype
0618
0619 #define sqlite3_status64 sqlite3_api->status64
0620 #define sqlite3_strlike sqlite3_api->strlike
0621 #define sqlite3_db_cacheflush sqlite3_api->db_cacheflush
0622
0623 #define sqlite3_system_errno sqlite3_api->system_errno
0624
0625 #define sqlite3_trace_v2 sqlite3_api->trace_v2
0626 #define sqlite3_expanded_sql sqlite3_api->expanded_sql
0627
0628 #define sqlite3_set_last_insert_rowid sqlite3_api->set_last_insert_rowid
0629
0630 #define sqlite3_prepare_v3 sqlite3_api->prepare_v3
0631 #define sqlite3_prepare16_v3 sqlite3_api->prepare16_v3
0632 #define sqlite3_bind_pointer sqlite3_api->bind_pointer
0633 #define sqlite3_result_pointer sqlite3_api->result_pointer
0634 #define sqlite3_value_pointer sqlite3_api->value_pointer
0635
0636 #define sqlite3_vtab_nochange sqlite3_api->vtab_nochange
0637 #define sqlite3_value_nochange sqlite3_api->value_nochange
0638 #define sqlite3_vtab_collation sqlite3_api->vtab_collation
0639
0640 #define sqlite3_keyword_count sqlite3_api->keyword_count
0641 #define sqlite3_keyword_name sqlite3_api->keyword_name
0642 #define sqlite3_keyword_check sqlite3_api->keyword_check
0643 #define sqlite3_str_new sqlite3_api->str_new
0644 #define sqlite3_str_finish sqlite3_api->str_finish
0645 #define sqlite3_str_appendf sqlite3_api->str_appendf
0646 #define sqlite3_str_vappendf sqlite3_api->str_vappendf
0647 #define sqlite3_str_append sqlite3_api->str_append
0648 #define sqlite3_str_appendall sqlite3_api->str_appendall
0649 #define sqlite3_str_appendchar sqlite3_api->str_appendchar
0650 #define sqlite3_str_reset sqlite3_api->str_reset
0651 #define sqlite3_str_errcode sqlite3_api->str_errcode
0652 #define sqlite3_str_length sqlite3_api->str_length
0653 #define sqlite3_str_value sqlite3_api->str_value
0654
0655 #define sqlite3_create_window_function sqlite3_api->create_window_function
0656
0657 #define sqlite3_normalized_sql sqlite3_api->normalized_sql
0658
0659 #define sqlite3_stmt_isexplain sqlite3_api->stmt_isexplain
0660 #define sqlite3_value_frombind sqlite3_api->value_frombind
0661
0662 #define sqlite3_drop_modules sqlite3_api->drop_modules
0663
0664 #define sqlite3_hard_heap_limit64 sqlite3_api->hard_heap_limit64
0665 #define sqlite3_uri_key sqlite3_api->uri_key
0666 #define sqlite3_filename_database sqlite3_api->filename_database
0667 #define sqlite3_filename_journal sqlite3_api->filename_journal
0668 #define sqlite3_filename_wal sqlite3_api->filename_wal
0669
0670 #define sqlite3_create_filename sqlite3_api->create_filename
0671 #define sqlite3_free_filename sqlite3_api->free_filename
0672 #define sqlite3_database_file_object sqlite3_api->database_file_object
0673
0674 #define sqlite3_txn_state sqlite3_api->txn_state
0675
0676 #define sqlite3_changes64 sqlite3_api->changes64
0677 #define sqlite3_total_changes64 sqlite3_api->total_changes64
0678
0679 #define sqlite3_autovacuum_pages sqlite3_api->autovacuum_pages
0680
0681 #define sqlite3_error_offset sqlite3_api->error_offset
0682 #define sqlite3_vtab_rhs_value sqlite3_api->vtab_rhs_value
0683 #define sqlite3_vtab_distinct sqlite3_api->vtab_distinct
0684 #define sqlite3_vtab_in sqlite3_api->vtab_in
0685 #define sqlite3_vtab_in_first sqlite3_api->vtab_in_first
0686 #define sqlite3_vtab_in_next sqlite3_api->vtab_in_next
0687
0688 #ifndef SQLITE_OMIT_DESERIALIZE
0689 #define sqlite3_deserialize sqlite3_api->deserialize
0690 #define sqlite3_serialize sqlite3_api->serialize
0691 #endif
0692 #define sqlite3_db_name sqlite3_api->db_name
0693
0694 #define sqlite3_value_encoding sqlite3_api->value_encoding
0695
0696 #define sqlite3_is_interrupted sqlite3_api->is_interrupted
0697
0698 #define sqlite3_stmt_explain sqlite3_api->stmt_explain
0699
0700 #define sqlite3_get_clientdata sqlite3_api->get_clientdata
0701 #define sqlite3_set_clientdata sqlite3_api->set_clientdata
0702 #endif
0703
0704 #if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)
0705
0706
0707 # define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api=0;
0708 # define SQLITE_EXTENSION_INIT2(v) sqlite3_api=v;
0709 # define SQLITE_EXTENSION_INIT3 \
0710 extern const sqlite3_api_routines *sqlite3_api;
0711 #else
0712
0713
0714 # define SQLITE_EXTENSION_INIT1
0715 # define SQLITE_EXTENSION_INIT2(v) (void)v;
0716 # define SQLITE_EXTENSION_INIT3
0717 #endif
0718
0719 #endif