wxSQLite3 4.10.2
|
Implementation of the wxSQLite3 class. More...
#include "wx/wxprec.h"
#include "wx/wx.h"
#include "wx/dynarray.h"
#include "wx/regex.h"
#include "wx/thread.h"
#include "wx/wxsqlite3.h"
#include "wx/wxsqlite3opt.h"
#include "sqlite3mc_config.h"
#include "sqlite3mc_amalgamation.h"
#include <string.h>
#include <assert.h>
Classes | |
class | wxSQLite3DatabaseReference |
Reference counted database object (internal) More... | |
class | wxSQLite3StatementReference |
Reference counted statement object (internal) More... | |
class | wxSQLite3BlobReference |
Reference counted blob object (internal) More... | |
struct | sqlite3_intarray |
Definition of the sqlite3_intarray object (internal) More... | |
struct | intarray_vtab |
Definition of intarray table object (internal) More... | |
struct | intarray_cursor |
Definition of intarray cursor object (internal) More... | |
struct | sqlite3_chararray |
Definition of the sqlite3_chararray object (internal) More... | |
struct | chararray_vtab |
Definition of chararray table object (internal) More... | |
struct | chararray_cursor |
Definition of chararray cursor object (internal) More... | |
Typedefs | |
typedef int(* | sqlite3_xauth) (void *, int, const char *, const char *, const char *, const char *) |
typedef wxChar | err_char_t |
typedef struct intarray_vtab | intarray_vtab |
typedef struct intarray_cursor | intarray_cursor |
typedef struct chararray_vtab | chararray_vtab |
typedef struct chararray_cursor | chararray_cursor |
Functions | |
static int | wxSQLite3FunctionContextExecAuthorizer (void *func, int type, const char *arg1, const char *arg2, const char *arg3, const char *arg4) |
static const char * | LocalMakePointerTypeCopy (wxArrayPtrVoid &ptrTypes, const wxString &pointerType) |
wxLongLong | ConvertStringToLongLong (const wxString &str, wxLongLong defValue) |
static double | wxSQLite3AtoF (const char *z) |
static bool | BackupRestoreCallback (int total, int remaining, wxSQLite3BackupProgress *progressCallback) |
static void | intarrayFree (sqlite3_intarray *p) |
static int | intarrayDestroy (sqlite3_vtab *p) |
static int | intarrayCreate (sqlite3 *db, void *pAux, int, const char *const *, sqlite3_vtab **ppVtab, char **) |
static int | intarrayOpen (sqlite3_vtab *, sqlite3_vtab_cursor **ppCursor) |
static int | intarrayClose (sqlite3_vtab_cursor *cur) |
static int | intarrayColumn (sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int) |
static int | intarrayRowid (sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid) |
static int | intarrayEof (sqlite3_vtab_cursor *cur) |
static int | intarrayNext (sqlite3_vtab_cursor *cur) |
static int | intarrayFilter (sqlite3_vtab_cursor *pVtabCursor, int, const char *, int, sqlite3_value **) |
static int | intarrayBestIndex (sqlite3_vtab *, sqlite3_index_info *) |
static void | chararrayFree (sqlite3_chararray *p) |
static int | chararrayDestroy (sqlite3_vtab *p) |
static int | chararrayCreate (sqlite3 *db, void *pAux, int, const char *const *, sqlite3_vtab **ppVtab, char **) |
static int | chararrayOpen (sqlite3_vtab *, sqlite3_vtab_cursor **ppCursor) |
static int | chararrayClose (sqlite3_vtab_cursor *cur) |
static int | chararrayColumn (sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int) |
static int | chararrayRowid (sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid) |
static int | chararrayEof (sqlite3_vtab_cursor *cur) |
static int | chararrayNext (sqlite3_vtab_cursor *cur) |
static int | chararrayFilter (sqlite3_vtab_cursor *pVtabCursor, int, const char *, int, sqlite3_value **) |
static int | chararrayBestIndex (sqlite3_vtab *, sqlite3_index_info *) |
Variables | |
const err_char_t * | wxERRMSG_NODB = wxTRANSLATE("No Database opened") |
const err_char_t * | wxERRMSG_NOSTMT = wxTRANSLATE("Statement not accessible") |
const err_char_t * | wxERRMSG_NOMEM = wxTRANSLATE("Out of memory") |
const err_char_t * | wxERRMSG_DECODE = wxTRANSLATE("Cannot decode binary") |
const err_char_t * | wxERRMSG_INVALID_INDEX = wxTRANSLATE("Invalid field index") |
const err_char_t * | wxERRMSG_INVALID_NAME = wxTRANSLATE("Invalid field name") |
const err_char_t * | wxERRMSG_INVALID_ROW = wxTRANSLATE("Invalid row index") |
const err_char_t * | wxERRMSG_INVALID_QUERY = wxTRANSLATE("Invalid scalar query") |
const err_char_t * | wxERRMSG_INVALID_BLOB = wxTRANSLATE("Invalid BLOB handle") |
const err_char_t * | wxERRMSG_NORESULT = wxTRANSLATE("Null Results pointer") |
const err_char_t * | wxERRMSG_BIND_STR = wxTRANSLATE("Error binding string param") |
const err_char_t * | wxERRMSG_BIND_INT = wxTRANSLATE("Error binding int param") |
const err_char_t * | wxERRMSG_BIND_INT64 = wxTRANSLATE("Error binding int64 param") |
const err_char_t * | wxERRMSG_BIND_DBL = wxTRANSLATE("Error binding double param") |
const err_char_t * | wxERRMSG_BIND_BLOB = wxTRANSLATE("Error binding blob param") |
const err_char_t * | wxERRMSG_BIND_DATETIME = wxTRANSLATE("Error binding date/time param") |
const err_char_t * | wxERRMSG_BIND_NULL = wxTRANSLATE("Error binding NULL param") |
const err_char_t * | wxERRMSG_BIND_ZEROBLOB = wxTRANSLATE("Error binding zero blob param") |
const err_char_t * | wxERRMSG_BIND_POINTER = wxTRANSLATE("Error binding pointer param") |
const err_char_t * | wxERRMSG_BIND_CLEAR = wxTRANSLATE("Error clearing bindings") |
const err_char_t * | wxERRMSG_NOMETADATA = wxTRANSLATE("Meta data support not available") |
const err_char_t * | wxERRMSG_NOCODEC = wxTRANSLATE("Encryption support not available") |
const err_char_t * | wxERRMSG_NOLOADEXT = wxTRANSLATE("Loadable extension support not available") |
const err_char_t * | wxERRMSG_NOINCBLOB = wxTRANSLATE("Incremental BLOB support not available") |
const err_char_t * | wxERRMSG_NOBLOBREBIND = wxTRANSLATE("Rebind BLOB support not available") |
const err_char_t * | wxERRMSG_NOPOINTER = wxTRANSLATE("Pointer parameter support not available") |
const err_char_t * | wxERRMSG_NOSAVEPOINT = wxTRANSLATE("Savepoint support not available") |
const err_char_t * | wxERRMSG_NOBACKUP = wxTRANSLATE("Backup/restore support not available") |
const err_char_t * | wxERRMSG_NOWAL = wxTRANSLATE("Write Ahead Log support not available") |
const err_char_t * | wxERRMSG_NOCOLLECTIONS = wxTRANSLATE("Named collection support not available") |
const err_char_t * | wxERRMSG_SHARED_CACHE = wxTRANSLATE("Setting SQLite shared cache mode failed") |
const err_char_t * | wxERRMSG_INITIALIZE = wxTRANSLATE("Initialization of SQLite failed") |
const err_char_t * | wxERRMSG_SHUTDOWN = wxTRANSLATE("Shutdown of SQLite failed") |
const err_char_t * | wxERRMSG_TEMPDIR = wxTRANSLATE("Setting temporary directory failed") |
const err_char_t * | wxERRMSG_SOURCEDB_BUSY = wxTRANSLATE("Source database is busy") |
const err_char_t * | wxERRMSG_DBOPEN_FAILED = wxTRANSLATE("Database open failed") |
const err_char_t * | wxERRMSG_DBCLOSE_FAILED = wxTRANSLATE("Database close failed") |
const err_char_t * | wxERRMSG_DBASSIGN_FAILED = wxTRANSLATE("Database assignment failed") |
const err_char_t * | wxERRMSG_FINALIZE_FAILED = wxTRANSLATE("Finalize failed") |
const err_char_t * | wxERRMSG_CIPHER_APPLY_FAILED = wxTRANSLATE("Application of cipher failed") |
const err_char_t * | wxERRMSG_CIPHER_NOT_SUPPORTED = wxTRANSLATE("Cipher not supported") |
const err_char_t * | wxERRMSG_INVALID_COLLECTION = wxTRANSLATE("Collection instance not properly initialized") |
const err_char_t * | wxERRMSG_SCHEMANAME_UNKNOWN = wxTRANSLATE("Schema name unknown") |
static const wxChar * | limitCodeString [] |
static const wxChar * | authCodeString [] |
static sqlite3_module | intarrayModule |
static sqlite3_module | chararrayModule |
Implementation of the wxSQLite3 class.
typedef struct chararray_cursor chararray_cursor |
typedef struct chararray_vtab chararray_vtab |
typedef wxChar err_char_t |
typedef struct intarray_cursor intarray_cursor |
typedef struct intarray_vtab intarray_vtab |
typedef int(* sqlite3_xauth) (void *, int, const char *, const char *, const char *, const char *) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const err_char_t* wxERRMSG_BIND_BLOB = wxTRANSLATE("Error binding blob param") |
const err_char_t* wxERRMSG_BIND_CLEAR = wxTRANSLATE("Error clearing bindings") |
const err_char_t* wxERRMSG_BIND_DATETIME = wxTRANSLATE("Error binding date/time param") |
const err_char_t* wxERRMSG_BIND_DBL = wxTRANSLATE("Error binding double param") |
const err_char_t* wxERRMSG_BIND_INT = wxTRANSLATE("Error binding int param") |
const err_char_t* wxERRMSG_BIND_INT64 = wxTRANSLATE("Error binding int64 param") |
const err_char_t* wxERRMSG_BIND_NULL = wxTRANSLATE("Error binding NULL param") |
const err_char_t* wxERRMSG_BIND_POINTER = wxTRANSLATE("Error binding pointer param") |
const err_char_t* wxERRMSG_BIND_STR = wxTRANSLATE("Error binding string param") |
const err_char_t* wxERRMSG_BIND_ZEROBLOB = wxTRANSLATE("Error binding zero blob param") |
const err_char_t* wxERRMSG_CIPHER_APPLY_FAILED = wxTRANSLATE("Application of cipher failed") |
const err_char_t* wxERRMSG_CIPHER_NOT_SUPPORTED = wxTRANSLATE("Cipher not supported") |
const err_char_t* wxERRMSG_DBASSIGN_FAILED = wxTRANSLATE("Database assignment failed") |
const err_char_t* wxERRMSG_DBCLOSE_FAILED = wxTRANSLATE("Database close failed") |
const err_char_t* wxERRMSG_DBOPEN_FAILED = wxTRANSLATE("Database open failed") |
const err_char_t* wxERRMSG_DECODE = wxTRANSLATE("Cannot decode binary") |
const err_char_t* wxERRMSG_FINALIZE_FAILED = wxTRANSLATE("Finalize failed") |
const err_char_t* wxERRMSG_INITIALIZE = wxTRANSLATE("Initialization of SQLite failed") |
const err_char_t* wxERRMSG_INVALID_BLOB = wxTRANSLATE("Invalid BLOB handle") |
const err_char_t* wxERRMSG_INVALID_COLLECTION = wxTRANSLATE("Collection instance not properly initialized") |
const err_char_t* wxERRMSG_INVALID_INDEX = wxTRANSLATE("Invalid field index") |
const err_char_t* wxERRMSG_INVALID_NAME = wxTRANSLATE("Invalid field name") |
const err_char_t* wxERRMSG_INVALID_QUERY = wxTRANSLATE("Invalid scalar query") |
const err_char_t* wxERRMSG_INVALID_ROW = wxTRANSLATE("Invalid row index") |
const err_char_t* wxERRMSG_NOBACKUP = wxTRANSLATE("Backup/restore support not available") |
const err_char_t* wxERRMSG_NOBLOBREBIND = wxTRANSLATE("Rebind BLOB support not available") |
const err_char_t* wxERRMSG_NOCODEC = wxTRANSLATE("Encryption support not available") |
const err_char_t* wxERRMSG_NOCOLLECTIONS = wxTRANSLATE("Named collection support not available") |
const err_char_t* wxERRMSG_NODB = wxTRANSLATE("No Database opened") |
const err_char_t* wxERRMSG_NOINCBLOB = wxTRANSLATE("Incremental BLOB support not available") |
const err_char_t* wxERRMSG_NOLOADEXT = wxTRANSLATE("Loadable extension support not available") |
const err_char_t* wxERRMSG_NOMEM = wxTRANSLATE("Out of memory") |
const err_char_t* wxERRMSG_NOMETADATA = wxTRANSLATE("Meta data support not available") |
const err_char_t* wxERRMSG_NOPOINTER = wxTRANSLATE("Pointer parameter support not available") |
const err_char_t* wxERRMSG_NORESULT = wxTRANSLATE("Null Results pointer") |
const err_char_t* wxERRMSG_NOSAVEPOINT = wxTRANSLATE("Savepoint support not available") |
const err_char_t* wxERRMSG_NOSTMT = wxTRANSLATE("Statement not accessible") |
const err_char_t* wxERRMSG_NOWAL = wxTRANSLATE("Write Ahead Log support not available") |
const err_char_t* wxERRMSG_SCHEMANAME_UNKNOWN = wxTRANSLATE("Schema name unknown") |
const err_char_t* wxERRMSG_SHARED_CACHE = wxTRANSLATE("Setting SQLite shared cache mode failed") |
const err_char_t* wxERRMSG_SHUTDOWN = wxTRANSLATE("Shutdown of SQLite failed") |
const err_char_t* wxERRMSG_SOURCEDB_BUSY = wxTRANSLATE("Source database is busy") |
const err_char_t* wxERRMSG_TEMPDIR = wxTRANSLATE("Setting temporary directory failed") |