Mercurial > mercurial > hgweb_searcher2.cgi
comparison include/wx/wxsqlite3dyn.h @ 0:c174ac668e9f
First commit ! (ver2.8)
| author | pyon@macmini |
|---|---|
| date | Tue, 05 Apr 2011 18:44:57 +0900 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:c174ac668e9f |
|---|---|
| 1 /////////////////////////////////////////////////////////////////////////////// | |
| 2 // Name: wxsqlite3dyn.h | |
| 3 // Purpose: wxWidgets wrapper around the SQLite3 embedded database library. | |
| 4 // Author: Ulrich Telle | |
| 5 // Modified by: | |
| 6 // Created: 2005-11-12 | |
| 7 // Copyright: (c) Ulrich Telle | |
| 8 // Licence: wxWindows licence | |
| 9 /////////////////////////////////////////////////////////////////////////////// | |
| 10 | |
| 11 /// \file wxsqlite3dyn.h Definition of the SQLite3 API functions | |
| 12 | |
| 13 #ifdef DYNFUNC | |
| 14 | |
| 15 DYNFUNC(return, void *, sqlite3_aggregate_context, (sqlite3_context *p, int nBytes), (p, nBytes)); | |
| 16 #if SQLITE_VERSION_NUMBER <= 3006000 | |
| 17 DYNFUNC(return, int, sqlite3_aggregate_count, (sqlite3_context *p), (p)); | |
| 18 #endif | |
| 19 #if SQLITE_VERSION_NUMBER >= 3006011 | |
| 20 DYNFUNC(return, sqlite3_backup*, sqlite3_backup_init, (sqlite3 *pDest, const char *zDestName, sqlite3 *pSource, const char *zSourceName), (pDest, zDestName, pSource, zSourceName)); | |
| 21 DYNFUNC(return, int, sqlite3_backup_step, (sqlite3_backup *p, int nPage), (p, nPage)); | |
| 22 DYNFUNC(return, int, sqlite3_backup_finish, (sqlite3_backup *p), (p)); | |
| 23 DYNFUNC(return, int, sqlite3_backup_remaining, (sqlite3_backup *p), (p)); | |
| 24 DYNFUNC(return, int, sqlite3_backup_pagecount, (sqlite3_backup *p), (p)); | |
| 25 #endif | |
| 26 DYNFUNC(return, int, sqlite3_bind_blob, (sqlite3_stmt *pStmt, int i, const void *zData, int nData, void (*xDel)(void*)), (pStmt, i, zData, nData, xDel)); | |
| 27 DYNFUNC(return, int, sqlite3_bind_double, (sqlite3_stmt *pStmt, int i, double rValue), (pStmt, i, rValue)); | |
| 28 DYNFUNC(return, int, sqlite3_bind_int, (sqlite3_stmt *pStmt, int i, int iValue), (pStmt, i, iValue)); | |
| 29 DYNFUNC(return, int, sqlite3_bind_int64, (sqlite3_stmt *pStmt, int i, sqlite_int64 iValue), (pStmt, i, iValue)); | |
| 30 DYNFUNC(return, int, sqlite3_bind_null, (sqlite3_stmt *pStmt, int i), (pStmt, i)); | |
| 31 DYNFUNC(return, int, sqlite3_bind_parameter_count, (sqlite3_stmt *pStmt), (pStmt)); | |
| 32 DYNFUNC(return, int, sqlite3_bind_parameter_index, (sqlite3_stmt *pStmt, const char *zName), (pStmt, zName)); | |
| 33 DYNFUNC(return, const char *, sqlite3_bind_parameter_name, (sqlite3_stmt *pStmt, int i), (pStmt, i)); | |
| 34 DYNFUNC(return, int, sqlite3_bind_text, (sqlite3_stmt *pStmt, int i, const char *zData, int nData, void (*xDel)(void*)), (pStmt, i, zData, nData, xDel)); | |
| 35 // DYNFUNC(return, int, sqlite3_bind_text16, (sqlite3_stmt *pStmt, int i, const void *zData, int nData, void (*xDel)(void*)), (pStmt, i, zData, nData, xDel)); | |
| 36 // DYNFUNC(return, int, sqlite3_bind_value, (sqlite3_stmt *pStmt, int i, const sqlite3_value *pValue), (pStmt, i, pValue)); | |
| 37 #if SQLITE_VERSION_NUMBER >= 3004000 | |
| 38 DYNFUNC(return, int, sqlite3_bind_zeroblob, (sqlite3_stmt *pStmt, int i, int n), (pStmt, i, n)); | |
| 39 DYNFUNC(return, int, sqlite3_blob_open, (sqlite3 *db, const char *zDb, const char *zTable, const char *zColumn, sqlite3_int64 iRow, int flags, sqlite3_blob **ppBlob), (db, zDb, zTable, zColumn, iRow, flags, ppBlob)); | |
| 40 DYNFUNC(return, int, sqlite3_blob_close, (sqlite3_blob *pBlob), (pBlob)); | |
| 41 DYNFUNC(return, int, sqlite3_blob_bytes, (sqlite3_blob *pBlob), (pBlob)); | |
| 42 DYNFUNC(return, int, sqlite3_blob_read, (sqlite3_blob *pBlob, void *z, int n, int iOffset), (pBlob, z, n, iOffset)); | |
| 43 #if SQLITE_VERSION_NUMBER >= 3007004 | |
| 44 DYNFUNC(return, int, sqlite3_blob_reopen, (sqlite3_blob *pBlob, sqlite3_int64 rowid), (pBlob, rowid)); | |
| 45 #endif | |
| 46 DYNFUNC(return, int, sqlite3_blob_write, (sqlite3_blob *pBlob, const void *z, int n, int iOffset), (pBlob, z, n, iOffset)); | |
| 47 #endif | |
| 48 // DYNFUNC(return, int, sqlite3_busy_handler, (sqlite3 *db, int (*xBusy)(void*,int), void *pArg), (db, xBusy, pArg)); | |
| 49 DYNFUNC(return, int, sqlite3_busy_timeout, (sqlite3 *db, int ms), (db, ms)); | |
| 50 DYNFUNC(return, int, sqlite3_changes, (sqlite3 *db), (db)); | |
| 51 DYNFUNC(return, int, sqlite3_clear_bindings, (sqlite3_stmt *pStmt), (pStmt)); | |
| 52 DYNFUNC(return, int, sqlite3_close, (sqlite3 *db), (db)); | |
| 53 DYNFUNC(return, int, sqlite3_collation_needed, (sqlite3 *db, void *pCollNeededArg, void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*)), (db, pCollNeededArg, xCollNeeded)); | |
| 54 // DYNFUNC(return, int, sqlite3_collation_needed16, (sqlite3 *db, void *pCollNeededArg, void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*)), (db, pCollNeededArg, xCollNeeded16)); | |
| 55 DYNFUNC(return, const void *, sqlite3_column_blob, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 56 DYNFUNC(return, int, sqlite3_column_bytes, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 57 // DYNFUNC(return, int, sqlite3_column_bytes16, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 58 DYNFUNC(return, int, sqlite3_column_count, (sqlite3_stmt *pStmt), (pStmt)); | |
| 59 DYNFUNC(return, const char *, sqlite3_column_decltype, (sqlite3_stmt *pStmt, int i), (pStmt, i)); | |
| 60 // DYNFUNC(return, const void *, sqlite3_column_decltype16, (sqlite3_stmt *pStmt, int i), (pStmt, i)); | |
| 61 DYNFUNC(return, double, sqlite3_column_double, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 62 DYNFUNC(return, int, sqlite3_column_int, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 63 DYNFUNC(return, sqlite_int64, sqlite3_column_int64, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 64 DYNFUNC(return, const char *, sqlite3_column_name, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 65 // DYNFUNC(return, const void *, sqlite3_column_name16, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 66 DYNFUNC(return, const unsigned char *, sqlite3_column_text, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 67 // DYNFUNC(return, const void *, sqlite3_column_text16, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 68 DYNFUNC(return, int, sqlite3_column_type, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 69 DYNFUNC(return, void *, sqlite3_commit_hook, (sqlite3 *db, int (*xCallback)(void*), void *pArg), (db, xCallback, pArg)); | |
| 70 #if SQLITE_VERSION_NUMBER >= 3006023 | |
| 71 DYNFUNC(return, int, sqlite3_compileoption_used, (const char *zOptName), (zOptName)); | |
| 72 DYNFUNC(return, const char *, sqlite3_compileoption_get, (int N), (N)); | |
| 73 #endif | |
| 74 DYNFUNC(return, int, sqlite3_complete, (const char *sql), (sql)); | |
| 75 // DYNFUNC(return, int, sqlite3_complete16, (const void *sql), (sql)); | |
| 76 //DYNFUNC(return, sqlite3 *, sqlite3_context_db_handle, (sqlite3_context* ctx) (ctx)); | |
| 77 DYNFUNC(return, int, sqlite3_create_collation, (sqlite3 *db, const char *zName, int eTextRep, void*v, int(*xCompare)(void*,int,const void*,int,const void*)), (db, zName, eTextRep, v, xCompare)); | |
| 78 // DYNFUNC(return, int, sqlite3_create_collation16, (sqlite3 *db, const char *zName, int eTextRep, void*v, int(*xCompare)(void*,int,const void*,int,const void*)), (db, zName, eTextRep, v, xCompare)); | |
| 79 DYNFUNC(return, int, sqlite3_create_function, (sqlite3 *db, const char *zFunctionName, int nArg, int eTextRep, void*v, void (*xFunc)(sqlite3_context*,int,sqlite3_value**), void (*xStep)(sqlite3_context*,int,sqlite3_value**), void (*xFinal)(sqlite3_context*)), (db, zFunctionName, nArg, eTextRep, v, xFunc, xStep, xFinal)); | |
| 80 // DYNFUNC(return, int, sqlite3_create_function16, (sqlite3 *db, const void *zFunctionName, int nArg, int eTextRep, void*v, void (*xFunc)(sqlite3_context*,int,sqlite3_value**), void (*xStep)(sqlite3_context*,int,sqlite3_value**), void (*xFinal)(sqlite3_context*)), (db, zFunctionName, nArg, eTextRep, v, xFunc, xStep, xFinal)); | |
| 81 #if SQLITE_VERSION_NUMBER >= 3007003 | |
| 82 DYNFUNC(return, int, sqlite3_create_function_v2, (sqlite3 *db, const char *zFunctionName, int nArg, int eTextRep, void *pApp, void (*xFunc)(sqlite3_context*,int,sqlite3_value**), void (*xStep)(sqlite3_context*,int,sqlite3_value**), void (*xFinal)(sqlite3_context*), void(*xDestroy)(void*)), (db, zFunctionName, nArg, eTextRep, pApp, xFunc, xStep, xFinal, xDestroy)); | |
| 83 #endif | |
| 84 #if SQLITE_VERSION_NUMBER >= 3004001 | |
| 85 DYNFUNC(return, int, sqlite3_create_module, (sqlite3 *db, const char *zName, const sqlite3_module *p, void *pClientData), (db, zName, p, pClientData)); | |
| 86 DYNFUNC(return, int, sqlite3_create_module_v2, (sqlite3 *db, const char *zName, const sqlite3_module *p, void *pClientData, void(*xDestroy)(void*)), (db, zName, p, pClientData, xDestroy)); | |
| 87 #endif | |
| 88 // DYNFUNC(return, int, sqlite3_data_count, (sqlite3_stmt *pStmt), (pStmt)); | |
| 89 // DYNFUNC(return, sqlite3 *, sqlite3_db_handle, (sqlite3_stmt *pStmt), (pStmt)); | |
| 90 DYNFUNC(return, int, sqlite3_declare_vtab, (sqlite3 *db, const char *zSQL), (db, zSQL)); | |
| 91 DYNFUNC(return, int, sqlite3_enable_load_extension, (sqlite3 *db, int onoff), (db, onoff)); | |
| 92 DYNFUNC(return, int, sqlite3_enable_shared_cache, (int enable), (enable)); | |
| 93 // DYNFUNC(return, int, sqlite3_errcode, (sqlite3 *db), (db)); | |
| 94 DYNFUNC(return, const char *, sqlite3_errmsg, (sqlite3 *db), (db)); | |
| 95 // DYNFUNC(return, const void *, sqlite3_errmsg16, (sqlite3 *db), (db)); | |
| 96 DYNFUNC(return, int, sqlite3_exec, (sqlite3 *db, const char *sql, sqlite3_callback c, void *v, char **errmsg), (db, sql, c, v, errmsg)); | |
| 97 // DYNFUNC(return, int, sqlite3_expired, (sqlite3_stmt *pStmt), (pStmt)); | |
| 98 DYNFUNC(return, int, sqlite3_extended_result_codes, (sqlite3 *db, int onoff), (db, onoff)); | |
| 99 DYNFUNC(return, int, sqlite3_finalize, (sqlite3_stmt *pStmt), (pStmt)); | |
| 100 DYNFUNC(;, void, sqlite3_free, (void *z), (z)); | |
| 101 DYNFUNC(;, void, sqlite3_free_table, (char **result), (result)); | |
| 102 DYNFUNC(return, int, sqlite3_get_autocommit, (sqlite3 *db), (db)); | |
| 103 // DYNFUNC(return, void *, sqlite3_get_auxdata, (sqlite3_context *pCtx, int iArg), (pCtx, iArg)); | |
| 104 DYNFUNC(return, int, sqlite3_get_table, (sqlite3 *db, const char *sql, char ***resultp, int *nrow, int *ncolumn, char **errmsg), (db, sql, resultp, nrow, ncolumn, errmsg)); | |
| 105 // DYNFUNC(return, int, sqlite3_global_recover, (), ()); | |
| 106 #if SQLITE_VERSION_NUMBER >= 3006000 | |
| 107 DYNFUNC(return, int, sqlite3_initialize, (void), ()); | |
| 108 #endif | |
| 109 DYNFUNC(;, void, sqlite3_interrupt, (sqlite3 *db), (db)); | |
| 110 DYNFUNC(return, sqlite_int64, sqlite3_last_insert_rowid, (sqlite3 *db), (db)); | |
| 111 DYNFUNC(return, const char *, sqlite3_libversion, (void), ()); | |
| 112 // DYNFUNC(return, int, sqlite3_libversion_number, (void), ()); | |
| 113 DYNFUNC(return, int, sqlite3_limit, (sqlite3 *db, int id, int newVal), (db, id, newVal)); | |
| 114 DYNFUNC(return, int, sqlite3_load_extension, (sqlite3 *db, const char *zFile, const char *zProc, char **pzErrMsg), (db, zFile, zProc, pzErrMsg)); | |
| 115 DYNFUNC(return, void*, sqlite3_malloc, (int size), (size)); | |
| 116 // DYNFUNC(return, char *, sqlite3_mprintf, (const char *zFormat,...), (zFormat,...)); | |
| 117 #if SQLITE_VERSION_NUMBER >= 3006000 | |
| 118 DYNFUNC(return, sqlite3_stmt *, sqlite3_next_stmt, (sqlite3 *pDb, sqlite3_stmt *pStmt), (pDb, pStmt)); | |
| 119 #endif | |
| 120 DYNFUNC(return, int, sqlite3_open, (const char *filename, sqlite3 **ppDb), (filename, ppDb)); | |
| 121 // DYNFUNC(return, int, sqlite3_open16, (const void *filename, sqlite3 **ppDb), (filename, ppDb)); | |
| 122 DYNFUNC(return, int, sqlite3_open_v2, (const char *filename, sqlite3 **ppDb, int flags, const char *zVfs), (filename, ppDb, flags, zVfs)); | |
| 123 DYNFUNC(return, int, sqlite3_prepare_v2, (sqlite3 *db, const char *zSql, int nBytes, sqlite3_stmt **ppStmt, const char **pzTail), (db, zSql, nBytes, ppStmt, pzTail)); | |
| 124 // DYNFUNC(return, int, sqlite3_prepare16_v2, (sqlite3 *db, const void *zSql, int nBytes, sqlite3_stmt **ppStmt, const void **pzTail), (db, zSql, nBytes, ppStmt, pzTail)); | |
| 125 // DYNFUNC(;, void, sqlite3_progress_handler, (sqlite3 *db, int nOps, int (*xProgress)(void*), void *pArg), (db, nOps, xProgress, pArg)); | |
| 126 DYNFUNC(;, void, sqlite3_randomness, (int N, void *P), (N, P)); | |
| 127 DYNFUNC(return, void*, sqlite3_realloc, (void* ptr, int newSize), (ptr, newSize)); | |
| 128 DYNFUNC(return, int, sqlite3_reset, (sqlite3_stmt *pStmt), (pStmt)); | |
| 129 DYNFUNC(;, void, sqlite3_result_blob, (sqlite3_context *pCtx, const void *z, int n, void (*xDel)(void *)), (pCtx, z, n, xDel)); | |
| 130 DYNFUNC(;, void, sqlite3_result_double, (sqlite3_context *pCtx, double rVal), (pCtx, rVal)); | |
| 131 DYNFUNC(;, void, sqlite3_result_error, (sqlite3_context *pCtx, const char *z, int n), (pCtx, z, n)); | |
| 132 // DYNFUNC(;, void, sqlite3_result_error16, (sqlite3_context *pCtx, const void *z, int n), (pCtx, z, n)); | |
| 133 DYNFUNC(;, void, sqlite3_result_int, (sqlite3_context *pCtx, int iVal), (pCtx, iVal)); | |
| 134 DYNFUNC(;, void, sqlite3_result_int64, (sqlite3_context *pCtx, sqlite_int64 iVal), (pCtx, iVal)); | |
| 135 DYNFUNC(;, void, sqlite3_result_null, (sqlite3_context *pCtx), (pCtx)); | |
| 136 DYNFUNC(;, void, sqlite3_result_text, (sqlite3_context *pCtx, const char *z, int n, void (*xDel)(void *)), (pCtx, z, n, xDel)); | |
| 137 // DYNFUNC(;, void, sqlite3_result_text16, (sqlite3_context *pCtx, const void *z, int n, void (*xDel)(void *)), (pCtx, z, n, xDel)); | |
| 138 // DYNFUNC(;, void, sqlite3_result_text16be, (sqlite3_context *pCtx, const void *z, int n, void (*xDel)(void *)), (pCtx, z, n, xDel)); | |
| 139 // DYNFUNC(;, void, sqlite3_result_text16le, (sqlite3_context *pCtx, const void *z, int n, void (*xDel)(void *)), (pCtx, z, n, xDel)); | |
| 140 DYNFUNC(;, void, sqlite3_result_value, (sqlite3_context *pCtx, sqlite3_value *pValue), (pCtx, pValue)); | |
| 141 #if SQLITE_VERSION_NUMBER >= 3004000 | |
| 142 DYNFUNC(;, void, sqlite3_result_zeroblob, (sqlite3_context *pCtx, int n), (pCtx, n)); | |
| 143 #endif | |
| 144 DYNFUNC(return, void *, sqlite3_rollback_hook, (sqlite3 *db, void (*xCallback)(void*), void *pArg), (db, xCallback, pArg)); | |
| 145 #if SQLITE_VERSION_NUMBER >= 3007003 | |
| 146 DYNFUNC(return, int, sqlite3_rtree_geometry_callback, (sqlite3 *db, const char *zGeom, int (*xGeom)(sqlite3_rtree_geometry *, int nCoord, double *aCoord, int *pRes), void *pContext), (db, zGeom, xGeom, pContext)); | |
| 147 #endif | |
| 148 DYNFUNC(return, int, sqlite3_set_authorizer, (sqlite3 *db, int (*xAuth)(void*,int,const char*,const char*,const char*,const char*), void *pArg), (db, xAuth, pArg)); | |
| 149 // DYNFUNC(;, void, sqlite3_set_auxdata, (sqlite3_context *pCtx, int iArg, void *pAux, void (*xDelete)(void*)), (pCtx, iArg, pAux, xDelete)); | |
| 150 #if SQLITE_VERSION_NUMBER >= 3006000 | |
| 151 DYNFUNC(return, int, sqlite3_shutdown, (void), ()); | |
| 152 #endif | |
| 153 DYNFUNC(return, int, sqlite3_sleep, (int ms), (ms)); | |
| 154 // DYNFUNC(return, char *, sqlite3_snprintf, (int n, char *zBuf, const char *zFormat, ...), (n, zBuf, zFormat, ...)); | |
| 155 #if SQLITE_VERSION_NUMBER >= 3006018 | |
| 156 DYNFUNC(return, const char *, sqlite3_sourceid, (void), ()); | |
| 157 #endif | |
| 158 #if SQLITE_VERSION_NUMBER >= 3005003 | |
| 159 DYNFUNC(return, const char *, sqlite3_sql, (sqlite3_stmt *pStmt), (pStmt)); | |
| 160 #endif | |
| 161 DYNFUNC(return, int, sqlite3_step, (sqlite3_stmt *pStmt), (pStmt)); | |
| 162 #if SQLITE_VERSION_NUMBER >= 3007004 | |
| 163 DYNFUNC(return, int, sqlite3_stmt_readonly, (sqlite3_stmt *pStmt), (pStmt)); | |
| 164 #endif | |
| 165 DYNFUNC(return, int, sqlite3_threadsafe, (void), ()); | |
| 166 // DYNFUNC(return, int, sqlite3_total_changes, (sqlite3 *db), (db)); | |
| 167 // DYNFUNC(return, void *, sqlite3_trace, (sqlite3 *db, void(*xTrace)(void*,const char*), void *pArg), (db, xTrace, pArg)); | |
| 168 // DYNFUNC(return, int, sqlite3_transfer_bindings, (sqlite3_stmt *pStmt, sqlite3_stmt *pStmt), (pStmt, pStmt)); | |
| 169 #if SQLITE_VERSION_NUMBER >= 3007000 | |
| 170 // DYNFUNC(return, int, sqlite3_unlock_notify, (sqlite3 *pBlocked, void (*xNotify)(void **apArg, int nArg), void *pNotifyArg), (pBlocked, xNotify, pNotifyArg)); | |
| 171 #endif | |
| 172 DYNFUNC(return, void *, sqlite3_update_hook, (sqlite3 *db, void (*xCallback)(void *, int, char const *, char const *, wxsqlite_int64), void *pArg), (db, xCallback, pArg)); | |
| 173 DYNFUNC(return, void *, sqlite3_user_data, (sqlite3_context *pCtx), (pCtx)); | |
| 174 DYNFUNC(return, const void *, sqlite3_value_blob, (sqlite3_value *pVal), (pVal)); | |
| 175 DYNFUNC(return, int, sqlite3_value_bytes, (sqlite3_value *pVal), (pVal)); | |
| 176 // DYNFUNC(return, int, sqlite3_value_bytes16, (sqlite3_value *pVal), (pVal)); | |
| 177 DYNFUNC(return, double, sqlite3_value_double, (sqlite3_value *pVal), (pVal)); | |
| 178 DYNFUNC(return, int, sqlite3_value_int, (sqlite3_value *pVal), (pVal)); | |
| 179 DYNFUNC(return, sqlite_int64, sqlite3_value_int64, (sqlite3_value *pVal), (pVal)); | |
| 180 DYNFUNC(return, const unsigned char *, sqlite3_value_text, (sqlite3_value *pVal), (pVal)); | |
| 181 // DYNFUNC(return, const void *, sqlite3_value_text16, (sqlite3_value *pVal), (pVal)); | |
| 182 // DYNFUNC(return, const void *, sqlite3_value_text16be, (sqlite3_value *pVal), (pVal)); | |
| 183 // DYNFUNC(return, const void *, sqlite3_value_text16le, (sqlite3_value *pVal), (pVal)); | |
| 184 DYNFUNC(return, int, sqlite3_value_type, (sqlite3_value *pVal), (pVal)); | |
| 185 DYNFUNC(return, char *, sqlite3_vmprintf, (const char* p, va_list ap), (p, ap)); | |
| 186 #if SQLITE_VERSION_NUMBER >= 3007000 | |
| 187 DYNFUNC(return, int, sqlite3_wal_autocheckpoint, (sqlite3 *db, int N), (db, N)); | |
| 188 DYNFUNC(return, int, sqlite3_wal_checkpoint, (sqlite3 *db, const char *zDb), (db, zDb)); | |
| 189 DYNFUNC(return, void *, sqlite3_wal_hook, (sqlite3 *db, int (*xCallback)(void *, sqlite3 *, const char*, int), void *pArg), (db, xCallback, pArg)); | |
| 190 #endif | |
| 191 #if WXSQLITE3_HAVE_METADATA | |
| 192 DYNFUNC(return, const char *, sqlite3_column_database_name, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 193 // DYNFUNC(return, const void *, sqlite3_column_database_name16, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 194 DYNFUNC(return, const char *, sqlite3_column_table_name, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 195 // DYNFUNC(return, const void *, sqlite3_column_table_name16, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 196 DYNFUNC(return, const char *, sqlite3_column_origin_name, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 197 // DYNFUNC(return, const void *, sqlite3_column_origin_name16, (sqlite3_stmt *pStmt, int iCol), (pStmt, iCol)); | |
| 198 DYNFUNC(return, int, sqlite3_table_column_metadata, (sqlite3 *db, const char *zDbName, const char *zTableName, const char *zColumnName, char const **pzDataType, char const **pzCollSeq, int *pNotNull, int *pPrimaryKey, int *pAutoinc), (db, zDbName, zTableName, zColumnName, pzDataType, pzCollSeq, pNotNull, pPrimaryKey, pAutoinc)); | |
| 199 #endif | |
| 200 | |
| 201 #if WXSQLITE3_HAVE_CODEC | |
| 202 DYNFUNC(return, int, sqlite3_key, (sqlite3 *db, const void *pKey, int nKey), (db, pKey, nKey)); | |
| 203 DYNFUNC(return, int, sqlite3_rekey, (sqlite3 *db, const void *pKey, int nKey), (db, pKey, nKey)); | |
| 204 #endif | |
| 205 | |
| 206 // SQLcrypt API | |
| 207 // Additional error codes: SQLCRYPT3_TOOSHORT, SQLCRYPT3_TOOLONG, SQLCRYPT3_BADLIC | |
| 208 // DYNFUNC(return, int, sqlcrypt3_passphrase, (sqlite3 *db, const char *key, int codec, char **errmsg), (db, key, codec, errmsg)); | |
| 209 // DYNFUNC(return, int, sqlcrypt3_license_key, (const char *lic), (lic)); | |
| 210 | |
| 211 // SQLite-Crypt API | |
| 212 // ATTN: different open call | |
| 213 // DYNFUNC(return, int, sqlite3_open, (const char *filename, const char *strPass, sqlite3 **ppDb), (filename, strPass, ppDb)); | |
| 214 // DYNFUNC(;, void, sqlite3_changepassword, (sqlite3* db,const char* strNewPass), (db, strNewPass)); | |
| 215 | |
| 216 #endif |
