jpayne@69: /* jpayne@69: ** 2006 June 7 jpayne@69: ** jpayne@69: ** The author disclaims copyright to this source code. In place of jpayne@69: ** a legal notice, here is a blessing: jpayne@69: ** jpayne@69: ** May you do good and not evil. jpayne@69: ** May you find forgiveness for yourself and forgive others. jpayne@69: ** May you share freely, never taking more than you give. jpayne@69: ** jpayne@69: ************************************************************************* jpayne@69: ** This header file defines the SQLite interface for use by jpayne@69: ** shared libraries that want to be imported as extensions into jpayne@69: ** an SQLite instance. Shared libraries that intend to be loaded jpayne@69: ** as extensions by SQLite should #include this file instead of jpayne@69: ** sqlite3.h. jpayne@69: */ jpayne@69: #ifndef SQLITE3EXT_H jpayne@69: #define SQLITE3EXT_H jpayne@69: #include "sqlite3.h" jpayne@69: jpayne@69: /* jpayne@69: ** The following structure holds pointers to all of the SQLite API jpayne@69: ** routines. jpayne@69: ** jpayne@69: ** WARNING: In order to maintain backwards compatibility, add new jpayne@69: ** interfaces to the end of this structure only. If you insert new jpayne@69: ** interfaces in the middle of this structure, then older different jpayne@69: ** versions of SQLite will not be able to load each other's shared jpayne@69: ** libraries! jpayne@69: */ jpayne@69: struct sqlite3_api_routines { jpayne@69: void * (*aggregate_context)(sqlite3_context*,int nBytes); jpayne@69: int (*aggregate_count)(sqlite3_context*); jpayne@69: int (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*)); jpayne@69: int (*bind_double)(sqlite3_stmt*,int,double); jpayne@69: int (*bind_int)(sqlite3_stmt*,int,int); jpayne@69: int (*bind_int64)(sqlite3_stmt*,int,sqlite_int64); jpayne@69: int (*bind_null)(sqlite3_stmt*,int); jpayne@69: int (*bind_parameter_count)(sqlite3_stmt*); jpayne@69: int (*bind_parameter_index)(sqlite3_stmt*,const char*zName); jpayne@69: const char * (*bind_parameter_name)(sqlite3_stmt*,int); jpayne@69: int (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*)); jpayne@69: int (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*)); jpayne@69: int (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*); jpayne@69: int (*busy_handler)(sqlite3*,int(*)(void*,int),void*); jpayne@69: int (*busy_timeout)(sqlite3*,int ms); jpayne@69: int (*changes)(sqlite3*); jpayne@69: int (*close)(sqlite3*); jpayne@69: int (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*, jpayne@69: int eTextRep,const char*)); jpayne@69: int (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*, jpayne@69: int eTextRep,const void*)); jpayne@69: const void * (*column_blob)(sqlite3_stmt*,int iCol); jpayne@69: int (*column_bytes)(sqlite3_stmt*,int iCol); jpayne@69: int (*column_bytes16)(sqlite3_stmt*,int iCol); jpayne@69: int (*column_count)(sqlite3_stmt*pStmt); jpayne@69: const char * (*column_database_name)(sqlite3_stmt*,int); jpayne@69: const void * (*column_database_name16)(sqlite3_stmt*,int); jpayne@69: const char * (*column_decltype)(sqlite3_stmt*,int i); jpayne@69: const void * (*column_decltype16)(sqlite3_stmt*,int); jpayne@69: double (*column_double)(sqlite3_stmt*,int iCol); jpayne@69: int (*column_int)(sqlite3_stmt*,int iCol); jpayne@69: sqlite_int64 (*column_int64)(sqlite3_stmt*,int iCol); jpayne@69: const char * (*column_name)(sqlite3_stmt*,int); jpayne@69: const void * (*column_name16)(sqlite3_stmt*,int); jpayne@69: const char * (*column_origin_name)(sqlite3_stmt*,int); jpayne@69: const void * (*column_origin_name16)(sqlite3_stmt*,int); jpayne@69: const char * (*column_table_name)(sqlite3_stmt*,int); jpayne@69: const void * (*column_table_name16)(sqlite3_stmt*,int); jpayne@69: const unsigned char * (*column_text)(sqlite3_stmt*,int iCol); jpayne@69: const void * (*column_text16)(sqlite3_stmt*,int iCol); jpayne@69: int (*column_type)(sqlite3_stmt*,int iCol); jpayne@69: sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol); jpayne@69: void * (*commit_hook)(sqlite3*,int(*)(void*),void*); jpayne@69: int (*complete)(const char*sql); jpayne@69: int (*complete16)(const void*sql); jpayne@69: int (*create_collation)(sqlite3*,const char*,int,void*, jpayne@69: int(*)(void*,int,const void*,int,const void*)); jpayne@69: int (*create_collation16)(sqlite3*,const void*,int,void*, jpayne@69: int(*)(void*,int,const void*,int,const void*)); jpayne@69: int (*create_function)(sqlite3*,const char*,int,int,void*, jpayne@69: void (*xFunc)(sqlite3_context*,int,sqlite3_value**), jpayne@69: void (*xStep)(sqlite3_context*,int,sqlite3_value**), jpayne@69: void (*xFinal)(sqlite3_context*)); jpayne@69: int (*create_function16)(sqlite3*,const void*,int,int,void*, jpayne@69: void (*xFunc)(sqlite3_context*,int,sqlite3_value**), jpayne@69: void (*xStep)(sqlite3_context*,int,sqlite3_value**), jpayne@69: void (*xFinal)(sqlite3_context*)); jpayne@69: int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*); jpayne@69: int (*data_count)(sqlite3_stmt*pStmt); jpayne@69: sqlite3 * (*db_handle)(sqlite3_stmt*); jpayne@69: int (*declare_vtab)(sqlite3*,const char*); jpayne@69: int (*enable_shared_cache)(int); jpayne@69: int (*errcode)(sqlite3*db); jpayne@69: const char * (*errmsg)(sqlite3*); jpayne@69: const void * (*errmsg16)(sqlite3*); jpayne@69: int (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**); jpayne@69: int (*expired)(sqlite3_stmt*); jpayne@69: int (*finalize)(sqlite3_stmt*pStmt); jpayne@69: void (*free)(void*); jpayne@69: void (*free_table)(char**result); jpayne@69: int (*get_autocommit)(sqlite3*); jpayne@69: void * (*get_auxdata)(sqlite3_context*,int); jpayne@69: int (*get_table)(sqlite3*,const char*,char***,int*,int*,char**); jpayne@69: int (*global_recover)(void); jpayne@69: void (*interruptx)(sqlite3*); jpayne@69: sqlite_int64 (*last_insert_rowid)(sqlite3*); jpayne@69: const char * (*libversion)(void); jpayne@69: int (*libversion_number)(void); jpayne@69: void *(*malloc)(int); jpayne@69: char * (*mprintf)(const char*,...); jpayne@69: int (*open)(const char*,sqlite3**); jpayne@69: int (*open16)(const void*,sqlite3**); jpayne@69: int (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**); jpayne@69: int (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**); jpayne@69: void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*); jpayne@69: void (*progress_handler)(sqlite3*,int,int(*)(void*),void*); jpayne@69: void *(*realloc)(void*,int); jpayne@69: int (*reset)(sqlite3_stmt*pStmt); jpayne@69: void (*result_blob)(sqlite3_context*,const void*,int,void(*)(void*)); jpayne@69: void (*result_double)(sqlite3_context*,double); jpayne@69: void (*result_error)(sqlite3_context*,const char*,int); jpayne@69: void (*result_error16)(sqlite3_context*,const void*,int); jpayne@69: void (*result_int)(sqlite3_context*,int); jpayne@69: void (*result_int64)(sqlite3_context*,sqlite_int64); jpayne@69: void (*result_null)(sqlite3_context*); jpayne@69: void (*result_text)(sqlite3_context*,const char*,int,void(*)(void*)); jpayne@69: void (*result_text16)(sqlite3_context*,const void*,int,void(*)(void*)); jpayne@69: void (*result_text16be)(sqlite3_context*,const void*,int,void(*)(void*)); jpayne@69: void (*result_text16le)(sqlite3_context*,const void*,int,void(*)(void*)); jpayne@69: void (*result_value)(sqlite3_context*,sqlite3_value*); jpayne@69: void * (*rollback_hook)(sqlite3*,void(*)(void*),void*); jpayne@69: int (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*, jpayne@69: const char*,const char*),void*); jpayne@69: void (*set_auxdata)(sqlite3_context*,int,void*,void (*)(void*)); jpayne@69: char * (*xsnprintf)(int,char*,const char*,...); jpayne@69: int (*step)(sqlite3_stmt*); jpayne@69: int (*table_column_metadata)(sqlite3*,const char*,const char*,const char*, jpayne@69: char const**,char const**,int*,int*,int*); jpayne@69: void (*thread_cleanup)(void); jpayne@69: int (*total_changes)(sqlite3*); jpayne@69: void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*); jpayne@69: int (*transfer_bindings)(sqlite3_stmt*,sqlite3_stmt*); jpayne@69: void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*, jpayne@69: sqlite_int64),void*); jpayne@69: void * (*user_data)(sqlite3_context*); jpayne@69: const void * (*value_blob)(sqlite3_value*); jpayne@69: int (*value_bytes)(sqlite3_value*); jpayne@69: int (*value_bytes16)(sqlite3_value*); jpayne@69: double (*value_double)(sqlite3_value*); jpayne@69: int (*value_int)(sqlite3_value*); jpayne@69: sqlite_int64 (*value_int64)(sqlite3_value*); jpayne@69: int (*value_numeric_type)(sqlite3_value*); jpayne@69: const unsigned char * (*value_text)(sqlite3_value*); jpayne@69: const void * (*value_text16)(sqlite3_value*); jpayne@69: const void * (*value_text16be)(sqlite3_value*); jpayne@69: const void * (*value_text16le)(sqlite3_value*); jpayne@69: int (*value_type)(sqlite3_value*); jpayne@69: char *(*vmprintf)(const char*,va_list); jpayne@69: /* Added ??? */ jpayne@69: int (*overload_function)(sqlite3*, const char *zFuncName, int nArg); jpayne@69: /* Added by 3.3.13 */ jpayne@69: int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**); jpayne@69: int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**); jpayne@69: int (*clear_bindings)(sqlite3_stmt*); jpayne@69: /* Added by 3.4.1 */ jpayne@69: int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*, jpayne@69: void (*xDestroy)(void *)); jpayne@69: /* Added by 3.5.0 */ jpayne@69: int (*bind_zeroblob)(sqlite3_stmt*,int,int); jpayne@69: int (*blob_bytes)(sqlite3_blob*); jpayne@69: int (*blob_close)(sqlite3_blob*); jpayne@69: int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64, jpayne@69: int,sqlite3_blob**); jpayne@69: int (*blob_read)(sqlite3_blob*,void*,int,int); jpayne@69: int (*blob_write)(sqlite3_blob*,const void*,int,int); jpayne@69: int (*create_collation_v2)(sqlite3*,const char*,int,void*, jpayne@69: int(*)(void*,int,const void*,int,const void*), jpayne@69: void(*)(void*)); jpayne@69: int (*file_control)(sqlite3*,const char*,int,void*); jpayne@69: sqlite3_int64 (*memory_highwater)(int); jpayne@69: sqlite3_int64 (*memory_used)(void); jpayne@69: sqlite3_mutex *(*mutex_alloc)(int); jpayne@69: void (*mutex_enter)(sqlite3_mutex*); jpayne@69: void (*mutex_free)(sqlite3_mutex*); jpayne@69: void (*mutex_leave)(sqlite3_mutex*); jpayne@69: int (*mutex_try)(sqlite3_mutex*); jpayne@69: int (*open_v2)(const char*,sqlite3**,int,const char*); jpayne@69: int (*release_memory)(int); jpayne@69: void (*result_error_nomem)(sqlite3_context*); jpayne@69: void (*result_error_toobig)(sqlite3_context*); jpayne@69: int (*sleep)(int); jpayne@69: void (*soft_heap_limit)(int); jpayne@69: sqlite3_vfs *(*vfs_find)(const char*); jpayne@69: int (*vfs_register)(sqlite3_vfs*,int); jpayne@69: int (*vfs_unregister)(sqlite3_vfs*); jpayne@69: int (*xthreadsafe)(void); jpayne@69: void (*result_zeroblob)(sqlite3_context*,int); jpayne@69: void (*result_error_code)(sqlite3_context*,int); jpayne@69: int (*test_control)(int, ...); jpayne@69: void (*randomness)(int,void*); jpayne@69: sqlite3 *(*context_db_handle)(sqlite3_context*); jpayne@69: int (*extended_result_codes)(sqlite3*,int); jpayne@69: int (*limit)(sqlite3*,int,int); jpayne@69: sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*); jpayne@69: const char *(*sql)(sqlite3_stmt*); jpayne@69: int (*status)(int,int*,int*,int); jpayne@69: int (*backup_finish)(sqlite3_backup*); jpayne@69: sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*); jpayne@69: int (*backup_pagecount)(sqlite3_backup*); jpayne@69: int (*backup_remaining)(sqlite3_backup*); jpayne@69: int (*backup_step)(sqlite3_backup*,int); jpayne@69: const char *(*compileoption_get)(int); jpayne@69: int (*compileoption_used)(const char*); jpayne@69: int (*create_function_v2)(sqlite3*,const char*,int,int,void*, jpayne@69: void (*xFunc)(sqlite3_context*,int,sqlite3_value**), jpayne@69: void (*xStep)(sqlite3_context*,int,sqlite3_value**), jpayne@69: void (*xFinal)(sqlite3_context*), jpayne@69: void(*xDestroy)(void*)); jpayne@69: int (*db_config)(sqlite3*,int,...); jpayne@69: sqlite3_mutex *(*db_mutex)(sqlite3*); jpayne@69: int (*db_status)(sqlite3*,int,int*,int*,int); jpayne@69: int (*extended_errcode)(sqlite3*); jpayne@69: void (*log)(int,const char*,...); jpayne@69: sqlite3_int64 (*soft_heap_limit64)(sqlite3_int64); jpayne@69: const char *(*sourceid)(void); jpayne@69: int (*stmt_status)(sqlite3_stmt*,int,int); jpayne@69: int (*strnicmp)(const char*,const char*,int); jpayne@69: int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*); jpayne@69: int (*wal_autocheckpoint)(sqlite3*,int); jpayne@69: int (*wal_checkpoint)(sqlite3*,const char*); jpayne@69: void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*); jpayne@69: int (*blob_reopen)(sqlite3_blob*,sqlite3_int64); jpayne@69: int (*vtab_config)(sqlite3*,int op,...); jpayne@69: int (*vtab_on_conflict)(sqlite3*); jpayne@69: /* Version 3.7.16 and later */ jpayne@69: int (*close_v2)(sqlite3*); jpayne@69: const char *(*db_filename)(sqlite3*,const char*); jpayne@69: int (*db_readonly)(sqlite3*,const char*); jpayne@69: int (*db_release_memory)(sqlite3*); jpayne@69: const char *(*errstr)(int); jpayne@69: int (*stmt_busy)(sqlite3_stmt*); jpayne@69: int (*stmt_readonly)(sqlite3_stmt*); jpayne@69: int (*stricmp)(const char*,const char*); jpayne@69: int (*uri_boolean)(const char*,const char*,int); jpayne@69: sqlite3_int64 (*uri_int64)(const char*,const char*,sqlite3_int64); jpayne@69: const char *(*uri_parameter)(const char*,const char*); jpayne@69: char *(*xvsnprintf)(int,char*,const char*,va_list); jpayne@69: int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*); jpayne@69: /* Version 3.8.7 and later */ jpayne@69: int (*auto_extension)(void(*)(void)); jpayne@69: int (*bind_blob64)(sqlite3_stmt*,int,const void*,sqlite3_uint64, jpayne@69: void(*)(void*)); jpayne@69: int (*bind_text64)(sqlite3_stmt*,int,const char*,sqlite3_uint64, jpayne@69: void(*)(void*),unsigned char); jpayne@69: int (*cancel_auto_extension)(void(*)(void)); jpayne@69: int (*load_extension)(sqlite3*,const char*,const char*,char**); jpayne@69: void *(*malloc64)(sqlite3_uint64); jpayne@69: sqlite3_uint64 (*msize)(void*); jpayne@69: void *(*realloc64)(void*,sqlite3_uint64); jpayne@69: void (*reset_auto_extension)(void); jpayne@69: void (*result_blob64)(sqlite3_context*,const void*,sqlite3_uint64, jpayne@69: void(*)(void*)); jpayne@69: void (*result_text64)(sqlite3_context*,const char*,sqlite3_uint64, jpayne@69: void(*)(void*), unsigned char); jpayne@69: int (*strglob)(const char*,const char*); jpayne@69: /* Version 3.8.11 and later */ jpayne@69: sqlite3_value *(*value_dup)(const sqlite3_value*); jpayne@69: void (*value_free)(sqlite3_value*); jpayne@69: int (*result_zeroblob64)(sqlite3_context*,sqlite3_uint64); jpayne@69: int (*bind_zeroblob64)(sqlite3_stmt*, int, sqlite3_uint64); jpayne@69: /* Version 3.9.0 and later */ jpayne@69: unsigned int (*value_subtype)(sqlite3_value*); jpayne@69: void (*result_subtype)(sqlite3_context*,unsigned int); jpayne@69: /* Version 3.10.0 and later */ jpayne@69: int (*status64)(int,sqlite3_int64*,sqlite3_int64*,int); jpayne@69: int (*strlike)(const char*,const char*,unsigned int); jpayne@69: int (*db_cacheflush)(sqlite3*); jpayne@69: /* Version 3.12.0 and later */ jpayne@69: int (*system_errno)(sqlite3*); jpayne@69: /* Version 3.14.0 and later */ jpayne@69: int (*trace_v2)(sqlite3*,unsigned,int(*)(unsigned,void*,void*,void*),void*); jpayne@69: char *(*expanded_sql)(sqlite3_stmt*); jpayne@69: /* Version 3.18.0 and later */ jpayne@69: void (*set_last_insert_rowid)(sqlite3*,sqlite3_int64); jpayne@69: /* Version 3.20.0 and later */ jpayne@69: int (*prepare_v3)(sqlite3*,const char*,int,unsigned int, jpayne@69: sqlite3_stmt**,const char**); jpayne@69: int (*prepare16_v3)(sqlite3*,const void*,int,unsigned int, jpayne@69: sqlite3_stmt**,const void**); jpayne@69: int (*bind_pointer)(sqlite3_stmt*,int,void*,const char*,void(*)(void*)); jpayne@69: void (*result_pointer)(sqlite3_context*,void*,const char*,void(*)(void*)); jpayne@69: void *(*value_pointer)(sqlite3_value*,const char*); jpayne@69: int (*vtab_nochange)(sqlite3_context*); jpayne@69: int (*value_nochange)(sqlite3_value*); jpayne@69: const char *(*vtab_collation)(sqlite3_index_info*,int); jpayne@69: /* Version 3.24.0 and later */ jpayne@69: int (*keyword_count)(void); jpayne@69: int (*keyword_name)(int,const char**,int*); jpayne@69: int (*keyword_check)(const char*,int); jpayne@69: sqlite3_str *(*str_new)(sqlite3*); jpayne@69: char *(*str_finish)(sqlite3_str*); jpayne@69: void (*str_appendf)(sqlite3_str*, const char *zFormat, ...); jpayne@69: void (*str_vappendf)(sqlite3_str*, const char *zFormat, va_list); jpayne@69: void (*str_append)(sqlite3_str*, const char *zIn, int N); jpayne@69: void (*str_appendall)(sqlite3_str*, const char *zIn); jpayne@69: void (*str_appendchar)(sqlite3_str*, int N, char C); jpayne@69: void (*str_reset)(sqlite3_str*); jpayne@69: int (*str_errcode)(sqlite3_str*); jpayne@69: int (*str_length)(sqlite3_str*); jpayne@69: char *(*str_value)(sqlite3_str*); jpayne@69: /* Version 3.25.0 and later */ jpayne@69: int (*create_window_function)(sqlite3*,const char*,int,int,void*, jpayne@69: void (*xStep)(sqlite3_context*,int,sqlite3_value**), jpayne@69: void (*xFinal)(sqlite3_context*), jpayne@69: void (*xValue)(sqlite3_context*), jpayne@69: void (*xInv)(sqlite3_context*,int,sqlite3_value**), jpayne@69: void(*xDestroy)(void*)); jpayne@69: /* Version 3.26.0 and later */ jpayne@69: const char *(*normalized_sql)(sqlite3_stmt*); jpayne@69: /* Version 3.28.0 and later */ jpayne@69: int (*stmt_isexplain)(sqlite3_stmt*); jpayne@69: int (*value_frombind)(sqlite3_value*); jpayne@69: /* Version 3.30.0 and later */ jpayne@69: int (*drop_modules)(sqlite3*,const char**); jpayne@69: /* Version 3.31.0 and later */ jpayne@69: sqlite3_int64 (*hard_heap_limit64)(sqlite3_int64); jpayne@69: const char *(*uri_key)(const char*,int); jpayne@69: const char *(*filename_database)(const char*); jpayne@69: const char *(*filename_journal)(const char*); jpayne@69: const char *(*filename_wal)(const char*); jpayne@69: /* Version 3.32.0 and later */ jpayne@69: const char *(*create_filename)(const char*,const char*,const char*, jpayne@69: int,const char**); jpayne@69: void (*free_filename)(const char*); jpayne@69: sqlite3_file *(*database_file_object)(const char*); jpayne@69: /* Version 3.34.0 and later */ jpayne@69: int (*txn_state)(sqlite3*,const char*); jpayne@69: /* Version 3.36.1 and later */ jpayne@69: sqlite3_int64 (*changes64)(sqlite3*); jpayne@69: sqlite3_int64 (*total_changes64)(sqlite3*); jpayne@69: /* Version 3.37.0 and later */ jpayne@69: int (*autovacuum_pages)(sqlite3*, jpayne@69: unsigned int(*)(void*,const char*,unsigned int,unsigned int,unsigned int), jpayne@69: void*, void(*)(void*)); jpayne@69: /* Version 3.38.0 and later */ jpayne@69: int (*error_offset)(sqlite3*); jpayne@69: int (*vtab_rhs_value)(sqlite3_index_info*,int,sqlite3_value**); jpayne@69: int (*vtab_distinct)(sqlite3_index_info*); jpayne@69: int (*vtab_in)(sqlite3_index_info*,int,int); jpayne@69: int (*vtab_in_first)(sqlite3_value*,sqlite3_value**); jpayne@69: int (*vtab_in_next)(sqlite3_value*,sqlite3_value**); jpayne@69: /* Version 3.39.0 and later */ jpayne@69: int (*deserialize)(sqlite3*,const char*,unsigned char*, jpayne@69: sqlite3_int64,sqlite3_int64,unsigned); jpayne@69: unsigned char *(*serialize)(sqlite3*,const char *,sqlite3_int64*, jpayne@69: unsigned int); jpayne@69: const char *(*db_name)(sqlite3*,int); jpayne@69: /* Version 3.40.0 and later */ jpayne@69: int (*value_encoding)(sqlite3_value*); jpayne@69: /* Version 3.41.0 and later */ jpayne@69: int (*is_interrupted)(sqlite3*); jpayne@69: /* Version 3.43.0 and later */ jpayne@69: int (*stmt_explain)(sqlite3_stmt*,int); jpayne@69: /* Version 3.44.0 and later */ jpayne@69: void *(*get_clientdata)(sqlite3*,const char*); jpayne@69: int (*set_clientdata)(sqlite3*, const char*, void*, void(*)(void*)); jpayne@69: }; jpayne@69: jpayne@69: /* jpayne@69: ** This is the function signature used for all extension entry points. It jpayne@69: ** is also defined in the file "loadext.c". jpayne@69: */ jpayne@69: typedef int (*sqlite3_loadext_entry)( jpayne@69: sqlite3 *db, /* Handle to the database. */ jpayne@69: char **pzErrMsg, /* Used to set error string on failure. */ jpayne@69: const sqlite3_api_routines *pThunk /* Extension API function pointers. */ jpayne@69: ); jpayne@69: jpayne@69: /* jpayne@69: ** The following macros redefine the API routines so that they are jpayne@69: ** redirected through the global sqlite3_api structure. jpayne@69: ** jpayne@69: ** This header file is also used by the loadext.c source file jpayne@69: ** (part of the main SQLite library - not an extension) so that jpayne@69: ** it can get access to the sqlite3_api_routines structure jpayne@69: ** definition. But the main library does not want to redefine jpayne@69: ** the API. So the redefinition macros are only valid if the jpayne@69: ** SQLITE_CORE macros is undefined. jpayne@69: */ jpayne@69: #if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) jpayne@69: #define sqlite3_aggregate_context sqlite3_api->aggregate_context jpayne@69: #ifndef SQLITE_OMIT_DEPRECATED jpayne@69: #define sqlite3_aggregate_count sqlite3_api->aggregate_count jpayne@69: #endif jpayne@69: #define sqlite3_bind_blob sqlite3_api->bind_blob jpayne@69: #define sqlite3_bind_double sqlite3_api->bind_double jpayne@69: #define sqlite3_bind_int sqlite3_api->bind_int jpayne@69: #define sqlite3_bind_int64 sqlite3_api->bind_int64 jpayne@69: #define sqlite3_bind_null sqlite3_api->bind_null jpayne@69: #define sqlite3_bind_parameter_count sqlite3_api->bind_parameter_count jpayne@69: #define sqlite3_bind_parameter_index sqlite3_api->bind_parameter_index jpayne@69: #define sqlite3_bind_parameter_name sqlite3_api->bind_parameter_name jpayne@69: #define sqlite3_bind_text sqlite3_api->bind_text jpayne@69: #define sqlite3_bind_text16 sqlite3_api->bind_text16 jpayne@69: #define sqlite3_bind_value sqlite3_api->bind_value jpayne@69: #define sqlite3_busy_handler sqlite3_api->busy_handler jpayne@69: #define sqlite3_busy_timeout sqlite3_api->busy_timeout jpayne@69: #define sqlite3_changes sqlite3_api->changes jpayne@69: #define sqlite3_close sqlite3_api->close jpayne@69: #define sqlite3_collation_needed sqlite3_api->collation_needed jpayne@69: #define sqlite3_collation_needed16 sqlite3_api->collation_needed16 jpayne@69: #define sqlite3_column_blob sqlite3_api->column_blob jpayne@69: #define sqlite3_column_bytes sqlite3_api->column_bytes jpayne@69: #define sqlite3_column_bytes16 sqlite3_api->column_bytes16 jpayne@69: #define sqlite3_column_count sqlite3_api->column_count jpayne@69: #define sqlite3_column_database_name sqlite3_api->column_database_name jpayne@69: #define sqlite3_column_database_name16 sqlite3_api->column_database_name16 jpayne@69: #define sqlite3_column_decltype sqlite3_api->column_decltype jpayne@69: #define sqlite3_column_decltype16 sqlite3_api->column_decltype16 jpayne@69: #define sqlite3_column_double sqlite3_api->column_double jpayne@69: #define sqlite3_column_int sqlite3_api->column_int jpayne@69: #define sqlite3_column_int64 sqlite3_api->column_int64 jpayne@69: #define sqlite3_column_name sqlite3_api->column_name jpayne@69: #define sqlite3_column_name16 sqlite3_api->column_name16 jpayne@69: #define sqlite3_column_origin_name sqlite3_api->column_origin_name jpayne@69: #define sqlite3_column_origin_name16 sqlite3_api->column_origin_name16 jpayne@69: #define sqlite3_column_table_name sqlite3_api->column_table_name jpayne@69: #define sqlite3_column_table_name16 sqlite3_api->column_table_name16 jpayne@69: #define sqlite3_column_text sqlite3_api->column_text jpayne@69: #define sqlite3_column_text16 sqlite3_api->column_text16 jpayne@69: #define sqlite3_column_type sqlite3_api->column_type jpayne@69: #define sqlite3_column_value sqlite3_api->column_value jpayne@69: #define sqlite3_commit_hook sqlite3_api->commit_hook jpayne@69: #define sqlite3_complete sqlite3_api->complete jpayne@69: #define sqlite3_complete16 sqlite3_api->complete16 jpayne@69: #define sqlite3_create_collation sqlite3_api->create_collation jpayne@69: #define sqlite3_create_collation16 sqlite3_api->create_collation16 jpayne@69: #define sqlite3_create_function sqlite3_api->create_function jpayne@69: #define sqlite3_create_function16 sqlite3_api->create_function16 jpayne@69: #define sqlite3_create_module sqlite3_api->create_module jpayne@69: #define sqlite3_create_module_v2 sqlite3_api->create_module_v2 jpayne@69: #define sqlite3_data_count sqlite3_api->data_count jpayne@69: #define sqlite3_db_handle sqlite3_api->db_handle jpayne@69: #define sqlite3_declare_vtab sqlite3_api->declare_vtab jpayne@69: #define sqlite3_enable_shared_cache sqlite3_api->enable_shared_cache jpayne@69: #define sqlite3_errcode sqlite3_api->errcode jpayne@69: #define sqlite3_errmsg sqlite3_api->errmsg jpayne@69: #define sqlite3_errmsg16 sqlite3_api->errmsg16 jpayne@69: #define sqlite3_exec sqlite3_api->exec jpayne@69: #ifndef SQLITE_OMIT_DEPRECATED jpayne@69: #define sqlite3_expired sqlite3_api->expired jpayne@69: #endif jpayne@69: #define sqlite3_finalize sqlite3_api->finalize jpayne@69: #define sqlite3_free sqlite3_api->free jpayne@69: #define sqlite3_free_table sqlite3_api->free_table jpayne@69: #define sqlite3_get_autocommit sqlite3_api->get_autocommit jpayne@69: #define sqlite3_get_auxdata sqlite3_api->get_auxdata jpayne@69: #define sqlite3_get_table sqlite3_api->get_table jpayne@69: #ifndef SQLITE_OMIT_DEPRECATED jpayne@69: #define sqlite3_global_recover sqlite3_api->global_recover jpayne@69: #endif jpayne@69: #define sqlite3_interrupt sqlite3_api->interruptx jpayne@69: #define sqlite3_last_insert_rowid sqlite3_api->last_insert_rowid jpayne@69: #define sqlite3_libversion sqlite3_api->libversion jpayne@69: #define sqlite3_libversion_number sqlite3_api->libversion_number jpayne@69: #define sqlite3_malloc sqlite3_api->malloc jpayne@69: #define sqlite3_mprintf sqlite3_api->mprintf jpayne@69: #define sqlite3_open sqlite3_api->open jpayne@69: #define sqlite3_open16 sqlite3_api->open16 jpayne@69: #define sqlite3_prepare sqlite3_api->prepare jpayne@69: #define sqlite3_prepare16 sqlite3_api->prepare16 jpayne@69: #define sqlite3_prepare_v2 sqlite3_api->prepare_v2 jpayne@69: #define sqlite3_prepare16_v2 sqlite3_api->prepare16_v2 jpayne@69: #define sqlite3_profile sqlite3_api->profile jpayne@69: #define sqlite3_progress_handler sqlite3_api->progress_handler jpayne@69: #define sqlite3_realloc sqlite3_api->realloc jpayne@69: #define sqlite3_reset sqlite3_api->reset jpayne@69: #define sqlite3_result_blob sqlite3_api->result_blob jpayne@69: #define sqlite3_result_double sqlite3_api->result_double jpayne@69: #define sqlite3_result_error sqlite3_api->result_error jpayne@69: #define sqlite3_result_error16 sqlite3_api->result_error16 jpayne@69: #define sqlite3_result_int sqlite3_api->result_int jpayne@69: #define sqlite3_result_int64 sqlite3_api->result_int64 jpayne@69: #define sqlite3_result_null sqlite3_api->result_null jpayne@69: #define sqlite3_result_text sqlite3_api->result_text jpayne@69: #define sqlite3_result_text16 sqlite3_api->result_text16 jpayne@69: #define sqlite3_result_text16be sqlite3_api->result_text16be jpayne@69: #define sqlite3_result_text16le sqlite3_api->result_text16le jpayne@69: #define sqlite3_result_value sqlite3_api->result_value jpayne@69: #define sqlite3_rollback_hook sqlite3_api->rollback_hook jpayne@69: #define sqlite3_set_authorizer sqlite3_api->set_authorizer jpayne@69: #define sqlite3_set_auxdata sqlite3_api->set_auxdata jpayne@69: #define sqlite3_snprintf sqlite3_api->xsnprintf jpayne@69: #define sqlite3_step sqlite3_api->step jpayne@69: #define sqlite3_table_column_metadata sqlite3_api->table_column_metadata jpayne@69: #define sqlite3_thread_cleanup sqlite3_api->thread_cleanup jpayne@69: #define sqlite3_total_changes sqlite3_api->total_changes jpayne@69: #define sqlite3_trace sqlite3_api->trace jpayne@69: #ifndef SQLITE_OMIT_DEPRECATED jpayne@69: #define sqlite3_transfer_bindings sqlite3_api->transfer_bindings jpayne@69: #endif jpayne@69: #define sqlite3_update_hook sqlite3_api->update_hook jpayne@69: #define sqlite3_user_data sqlite3_api->user_data jpayne@69: #define sqlite3_value_blob sqlite3_api->value_blob jpayne@69: #define sqlite3_value_bytes sqlite3_api->value_bytes jpayne@69: #define sqlite3_value_bytes16 sqlite3_api->value_bytes16 jpayne@69: #define sqlite3_value_double sqlite3_api->value_double jpayne@69: #define sqlite3_value_int sqlite3_api->value_int jpayne@69: #define sqlite3_value_int64 sqlite3_api->value_int64 jpayne@69: #define sqlite3_value_numeric_type sqlite3_api->value_numeric_type jpayne@69: #define sqlite3_value_text sqlite3_api->value_text jpayne@69: #define sqlite3_value_text16 sqlite3_api->value_text16 jpayne@69: #define sqlite3_value_text16be sqlite3_api->value_text16be jpayne@69: #define sqlite3_value_text16le sqlite3_api->value_text16le jpayne@69: #define sqlite3_value_type sqlite3_api->value_type jpayne@69: #define sqlite3_vmprintf sqlite3_api->vmprintf jpayne@69: #define sqlite3_vsnprintf sqlite3_api->xvsnprintf jpayne@69: #define sqlite3_overload_function sqlite3_api->overload_function jpayne@69: #define sqlite3_prepare_v2 sqlite3_api->prepare_v2 jpayne@69: #define sqlite3_prepare16_v2 sqlite3_api->prepare16_v2 jpayne@69: #define sqlite3_clear_bindings sqlite3_api->clear_bindings jpayne@69: #define sqlite3_bind_zeroblob sqlite3_api->bind_zeroblob jpayne@69: #define sqlite3_blob_bytes sqlite3_api->blob_bytes jpayne@69: #define sqlite3_blob_close sqlite3_api->blob_close jpayne@69: #define sqlite3_blob_open sqlite3_api->blob_open jpayne@69: #define sqlite3_blob_read sqlite3_api->blob_read jpayne@69: #define sqlite3_blob_write sqlite3_api->blob_write jpayne@69: #define sqlite3_create_collation_v2 sqlite3_api->create_collation_v2 jpayne@69: #define sqlite3_file_control sqlite3_api->file_control jpayne@69: #define sqlite3_memory_highwater sqlite3_api->memory_highwater jpayne@69: #define sqlite3_memory_used sqlite3_api->memory_used jpayne@69: #define sqlite3_mutex_alloc sqlite3_api->mutex_alloc jpayne@69: #define sqlite3_mutex_enter sqlite3_api->mutex_enter jpayne@69: #define sqlite3_mutex_free sqlite3_api->mutex_free jpayne@69: #define sqlite3_mutex_leave sqlite3_api->mutex_leave jpayne@69: #define sqlite3_mutex_try sqlite3_api->mutex_try jpayne@69: #define sqlite3_open_v2 sqlite3_api->open_v2 jpayne@69: #define sqlite3_release_memory sqlite3_api->release_memory jpayne@69: #define sqlite3_result_error_nomem sqlite3_api->result_error_nomem jpayne@69: #define sqlite3_result_error_toobig sqlite3_api->result_error_toobig jpayne@69: #define sqlite3_sleep sqlite3_api->sleep jpayne@69: #define sqlite3_soft_heap_limit sqlite3_api->soft_heap_limit jpayne@69: #define sqlite3_vfs_find sqlite3_api->vfs_find jpayne@69: #define sqlite3_vfs_register sqlite3_api->vfs_register jpayne@69: #define sqlite3_vfs_unregister sqlite3_api->vfs_unregister jpayne@69: #define sqlite3_threadsafe sqlite3_api->xthreadsafe jpayne@69: #define sqlite3_result_zeroblob sqlite3_api->result_zeroblob jpayne@69: #define sqlite3_result_error_code sqlite3_api->result_error_code jpayne@69: #define sqlite3_test_control sqlite3_api->test_control jpayne@69: #define sqlite3_randomness sqlite3_api->randomness jpayne@69: #define sqlite3_context_db_handle sqlite3_api->context_db_handle jpayne@69: #define sqlite3_extended_result_codes sqlite3_api->extended_result_codes jpayne@69: #define sqlite3_limit sqlite3_api->limit jpayne@69: #define sqlite3_next_stmt sqlite3_api->next_stmt jpayne@69: #define sqlite3_sql sqlite3_api->sql jpayne@69: #define sqlite3_status sqlite3_api->status jpayne@69: #define sqlite3_backup_finish sqlite3_api->backup_finish jpayne@69: #define sqlite3_backup_init sqlite3_api->backup_init jpayne@69: #define sqlite3_backup_pagecount sqlite3_api->backup_pagecount jpayne@69: #define sqlite3_backup_remaining sqlite3_api->backup_remaining jpayne@69: #define sqlite3_backup_step sqlite3_api->backup_step jpayne@69: #define sqlite3_compileoption_get sqlite3_api->compileoption_get jpayne@69: #define sqlite3_compileoption_used sqlite3_api->compileoption_used jpayne@69: #define sqlite3_create_function_v2 sqlite3_api->create_function_v2 jpayne@69: #define sqlite3_db_config sqlite3_api->db_config jpayne@69: #define sqlite3_db_mutex sqlite3_api->db_mutex jpayne@69: #define sqlite3_db_status sqlite3_api->db_status jpayne@69: #define sqlite3_extended_errcode sqlite3_api->extended_errcode jpayne@69: #define sqlite3_log sqlite3_api->log jpayne@69: #define sqlite3_soft_heap_limit64 sqlite3_api->soft_heap_limit64 jpayne@69: #define sqlite3_sourceid sqlite3_api->sourceid jpayne@69: #define sqlite3_stmt_status sqlite3_api->stmt_status jpayne@69: #define sqlite3_strnicmp sqlite3_api->strnicmp jpayne@69: #define sqlite3_unlock_notify sqlite3_api->unlock_notify jpayne@69: #define sqlite3_wal_autocheckpoint sqlite3_api->wal_autocheckpoint jpayne@69: #define sqlite3_wal_checkpoint sqlite3_api->wal_checkpoint jpayne@69: #define sqlite3_wal_hook sqlite3_api->wal_hook jpayne@69: #define sqlite3_blob_reopen sqlite3_api->blob_reopen jpayne@69: #define sqlite3_vtab_config sqlite3_api->vtab_config jpayne@69: #define sqlite3_vtab_on_conflict sqlite3_api->vtab_on_conflict jpayne@69: /* Version 3.7.16 and later */ jpayne@69: #define sqlite3_close_v2 sqlite3_api->close_v2 jpayne@69: #define sqlite3_db_filename sqlite3_api->db_filename jpayne@69: #define sqlite3_db_readonly sqlite3_api->db_readonly jpayne@69: #define sqlite3_db_release_memory sqlite3_api->db_release_memory jpayne@69: #define sqlite3_errstr sqlite3_api->errstr jpayne@69: #define sqlite3_stmt_busy sqlite3_api->stmt_busy jpayne@69: #define sqlite3_stmt_readonly sqlite3_api->stmt_readonly jpayne@69: #define sqlite3_stricmp sqlite3_api->stricmp jpayne@69: #define sqlite3_uri_boolean sqlite3_api->uri_boolean jpayne@69: #define sqlite3_uri_int64 sqlite3_api->uri_int64 jpayne@69: #define sqlite3_uri_parameter sqlite3_api->uri_parameter jpayne@69: #define sqlite3_uri_vsnprintf sqlite3_api->xvsnprintf jpayne@69: #define sqlite3_wal_checkpoint_v2 sqlite3_api->wal_checkpoint_v2 jpayne@69: /* Version 3.8.7 and later */ jpayne@69: #define sqlite3_auto_extension sqlite3_api->auto_extension jpayne@69: #define sqlite3_bind_blob64 sqlite3_api->bind_blob64 jpayne@69: #define sqlite3_bind_text64 sqlite3_api->bind_text64 jpayne@69: #define sqlite3_cancel_auto_extension sqlite3_api->cancel_auto_extension jpayne@69: #define sqlite3_load_extension sqlite3_api->load_extension jpayne@69: #define sqlite3_malloc64 sqlite3_api->malloc64 jpayne@69: #define sqlite3_msize sqlite3_api->msize jpayne@69: #define sqlite3_realloc64 sqlite3_api->realloc64 jpayne@69: #define sqlite3_reset_auto_extension sqlite3_api->reset_auto_extension jpayne@69: #define sqlite3_result_blob64 sqlite3_api->result_blob64 jpayne@69: #define sqlite3_result_text64 sqlite3_api->result_text64 jpayne@69: #define sqlite3_strglob sqlite3_api->strglob jpayne@69: /* Version 3.8.11 and later */ jpayne@69: #define sqlite3_value_dup sqlite3_api->value_dup jpayne@69: #define sqlite3_value_free sqlite3_api->value_free jpayne@69: #define sqlite3_result_zeroblob64 sqlite3_api->result_zeroblob64 jpayne@69: #define sqlite3_bind_zeroblob64 sqlite3_api->bind_zeroblob64 jpayne@69: /* Version 3.9.0 and later */ jpayne@69: #define sqlite3_value_subtype sqlite3_api->value_subtype jpayne@69: #define sqlite3_result_subtype sqlite3_api->result_subtype jpayne@69: /* Version 3.10.0 and later */ jpayne@69: #define sqlite3_status64 sqlite3_api->status64 jpayne@69: #define sqlite3_strlike sqlite3_api->strlike jpayne@69: #define sqlite3_db_cacheflush sqlite3_api->db_cacheflush jpayne@69: /* Version 3.12.0 and later */ jpayne@69: #define sqlite3_system_errno sqlite3_api->system_errno jpayne@69: /* Version 3.14.0 and later */ jpayne@69: #define sqlite3_trace_v2 sqlite3_api->trace_v2 jpayne@69: #define sqlite3_expanded_sql sqlite3_api->expanded_sql jpayne@69: /* Version 3.18.0 and later */ jpayne@69: #define sqlite3_set_last_insert_rowid sqlite3_api->set_last_insert_rowid jpayne@69: /* Version 3.20.0 and later */ jpayne@69: #define sqlite3_prepare_v3 sqlite3_api->prepare_v3 jpayne@69: #define sqlite3_prepare16_v3 sqlite3_api->prepare16_v3 jpayne@69: #define sqlite3_bind_pointer sqlite3_api->bind_pointer jpayne@69: #define sqlite3_result_pointer sqlite3_api->result_pointer jpayne@69: #define sqlite3_value_pointer sqlite3_api->value_pointer jpayne@69: /* Version 3.22.0 and later */ jpayne@69: #define sqlite3_vtab_nochange sqlite3_api->vtab_nochange jpayne@69: #define sqlite3_value_nochange sqlite3_api->value_nochange jpayne@69: #define sqlite3_vtab_collation sqlite3_api->vtab_collation jpayne@69: /* Version 3.24.0 and later */ jpayne@69: #define sqlite3_keyword_count sqlite3_api->keyword_count jpayne@69: #define sqlite3_keyword_name sqlite3_api->keyword_name jpayne@69: #define sqlite3_keyword_check sqlite3_api->keyword_check jpayne@69: #define sqlite3_str_new sqlite3_api->str_new jpayne@69: #define sqlite3_str_finish sqlite3_api->str_finish jpayne@69: #define sqlite3_str_appendf sqlite3_api->str_appendf jpayne@69: #define sqlite3_str_vappendf sqlite3_api->str_vappendf jpayne@69: #define sqlite3_str_append sqlite3_api->str_append jpayne@69: #define sqlite3_str_appendall sqlite3_api->str_appendall jpayne@69: #define sqlite3_str_appendchar sqlite3_api->str_appendchar jpayne@69: #define sqlite3_str_reset sqlite3_api->str_reset jpayne@69: #define sqlite3_str_errcode sqlite3_api->str_errcode jpayne@69: #define sqlite3_str_length sqlite3_api->str_length jpayne@69: #define sqlite3_str_value sqlite3_api->str_value jpayne@69: /* Version 3.25.0 and later */ jpayne@69: #define sqlite3_create_window_function sqlite3_api->create_window_function jpayne@69: /* Version 3.26.0 and later */ jpayne@69: #define sqlite3_normalized_sql sqlite3_api->normalized_sql jpayne@69: /* Version 3.28.0 and later */ jpayne@69: #define sqlite3_stmt_isexplain sqlite3_api->stmt_isexplain jpayne@69: #define sqlite3_value_frombind sqlite3_api->value_frombind jpayne@69: /* Version 3.30.0 and later */ jpayne@69: #define sqlite3_drop_modules sqlite3_api->drop_modules jpayne@69: /* Version 3.31.0 and later */ jpayne@69: #define sqlite3_hard_heap_limit64 sqlite3_api->hard_heap_limit64 jpayne@69: #define sqlite3_uri_key sqlite3_api->uri_key jpayne@69: #define sqlite3_filename_database sqlite3_api->filename_database jpayne@69: #define sqlite3_filename_journal sqlite3_api->filename_journal jpayne@69: #define sqlite3_filename_wal sqlite3_api->filename_wal jpayne@69: /* Version 3.32.0 and later */ jpayne@69: #define sqlite3_create_filename sqlite3_api->create_filename jpayne@69: #define sqlite3_free_filename sqlite3_api->free_filename jpayne@69: #define sqlite3_database_file_object sqlite3_api->database_file_object jpayne@69: /* Version 3.34.0 and later */ jpayne@69: #define sqlite3_txn_state sqlite3_api->txn_state jpayne@69: /* Version 3.36.1 and later */ jpayne@69: #define sqlite3_changes64 sqlite3_api->changes64 jpayne@69: #define sqlite3_total_changes64 sqlite3_api->total_changes64 jpayne@69: /* Version 3.37.0 and later */ jpayne@69: #define sqlite3_autovacuum_pages sqlite3_api->autovacuum_pages jpayne@69: /* Version 3.38.0 and later */ jpayne@69: #define sqlite3_error_offset sqlite3_api->error_offset jpayne@69: #define sqlite3_vtab_rhs_value sqlite3_api->vtab_rhs_value jpayne@69: #define sqlite3_vtab_distinct sqlite3_api->vtab_distinct jpayne@69: #define sqlite3_vtab_in sqlite3_api->vtab_in jpayne@69: #define sqlite3_vtab_in_first sqlite3_api->vtab_in_first jpayne@69: #define sqlite3_vtab_in_next sqlite3_api->vtab_in_next jpayne@69: /* Version 3.39.0 and later */ jpayne@69: #ifndef SQLITE_OMIT_DESERIALIZE jpayne@69: #define sqlite3_deserialize sqlite3_api->deserialize jpayne@69: #define sqlite3_serialize sqlite3_api->serialize jpayne@69: #endif jpayne@69: #define sqlite3_db_name sqlite3_api->db_name jpayne@69: /* Version 3.40.0 and later */ jpayne@69: #define sqlite3_value_encoding sqlite3_api->value_encoding jpayne@69: /* Version 3.41.0 and later */ jpayne@69: #define sqlite3_is_interrupted sqlite3_api->is_interrupted jpayne@69: /* Version 3.43.0 and later */ jpayne@69: #define sqlite3_stmt_explain sqlite3_api->stmt_explain jpayne@69: /* Version 3.44.0 and later */ jpayne@69: #define sqlite3_get_clientdata sqlite3_api->get_clientdata jpayne@69: #define sqlite3_set_clientdata sqlite3_api->set_clientdata jpayne@69: #endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */ jpayne@69: jpayne@69: #if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) jpayne@69: /* This case when the file really is being compiled as a loadable jpayne@69: ** extension */ jpayne@69: # define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api=0; jpayne@69: # define SQLITE_EXTENSION_INIT2(v) sqlite3_api=v; jpayne@69: # define SQLITE_EXTENSION_INIT3 \ jpayne@69: extern const sqlite3_api_routines *sqlite3_api; jpayne@69: #else jpayne@69: /* This case when the file is being statically linked into the jpayne@69: ** application */ jpayne@69: # define SQLITE_EXTENSION_INIT1 /*no-op*/ jpayne@69: # define SQLITE_EXTENSION_INIT2(v) (void)v; /* unused parameter */ jpayne@69: # define SQLITE_EXTENSION_INIT3 /*no-op*/ jpayne@69: #endif jpayne@69: jpayne@69: #endif /* SQLITE3EXT_H */