| 1 |
/* automatically generated by rust-bindgen 0.70.1 */ |
| 2 |
|
| 3 |
extern "C" { |
| 4 |
pub fn sqlite3_auto_extension( |
| 5 |
xEntryPoint: ::std::option::Option< |
| 6 |
unsafe extern "C" fn( |
| 7 |
db: *mut sqlite3, |
| 8 |
pzErrMsg: *mut *mut ::std::os::raw::c_char, |
| 9 |
_: *const sqlite3_api_routines, |
| 10 |
) -> ::std::os::raw::c_int, |
| 11 |
>, |
| 12 |
) -> ::std::os::raw::c_int; |
| 13 |
} |
| 14 |
extern "C" { |
| 15 |
pub fn sqlite3_cancel_auto_extension( |
| 16 |
xEntryPoint: ::std::option::Option< |
| 17 |
unsafe extern "C" fn( |
| 18 |
db: *mut sqlite3, |
| 19 |
pzErrMsg: *mut *mut ::std::os::raw::c_char, |
| 20 |
_: *const sqlite3_api_routines, |
| 21 |
) -> ::std::os::raw::c_int, |
| 22 |
>, |
| 23 |
) -> ::std::os::raw::c_int; |
| 24 |
} |
| 25 |
|
| 26 |
pub const SQLITE_VERSION: &[u8; 7] = b"3.46.1\0"; |
| 27 |
pub const SQLITE_VERSION_NUMBER: i32 = 3046001; |
| 28 |
pub const SQLITE_SOURCE_ID: &[u8; 85] = |
| 29 |
b"2024-08-13 09:16:08 c9c2ab54ba1f5f46360f1b4f35d849cd3f080e6fc2b6c60e91b16c63f69aalt1\0"; |
| 30 |
pub const SQLITE_OK: i32 = 0; |
| 31 |
pub const SQLITE_ERROR: i32 = 1; |
| 32 |
pub const SQLITE_INTERNAL: i32 = 2; |
| 33 |
pub const SQLITE_PERM: i32 = 3; |
| 34 |
pub const SQLITE_ABORT: i32 = 4; |
| 35 |
pub const SQLITE_BUSY: i32 = 5; |
| 36 |
pub const SQLITE_LOCKED: i32 = 6; |
| 37 |
pub const SQLITE_NOMEM: i32 = 7; |
| 38 |
pub const SQLITE_READONLY: i32 = 8; |
| 39 |
pub const SQLITE_INTERRUPT: i32 = 9; |
| 40 |
pub const SQLITE_IOERR: i32 = 10; |
| 41 |
pub const SQLITE_CORRUPT: i32 = 11; |
| 42 |
pub const SQLITE_NOTFOUND: i32 = 12; |
| 43 |
pub const SQLITE_FULL: i32 = 13; |
| 44 |
pub const SQLITE_CANTOPEN: i32 = 14; |
| 45 |
pub const SQLITE_PROTOCOL: i32 = 15; |
| 46 |
pub const SQLITE_EMPTY: i32 = 16; |
| 47 |
pub const SQLITE_SCHEMA: i32 = 17; |
| 48 |
pub const SQLITE_TOOBIG: i32 = 18; |
| 49 |
pub const SQLITE_CONSTRAINT: i32 = 19; |
| 50 |
pub const SQLITE_MISMATCH: i32 = 20; |
| 51 |
pub const SQLITE_MISUSE: i32 = 21; |
| 52 |
pub const SQLITE_NOLFS: i32 = 22; |
| 53 |
pub const SQLITE_AUTH: i32 = 23; |
| 54 |
pub const SQLITE_FORMAT: i32 = 24; |
| 55 |
pub const SQLITE_RANGE: i32 = 25; |
| 56 |
pub const SQLITE_NOTADB: i32 = 26; |
| 57 |
pub const SQLITE_NOTICE: i32 = 27; |
| 58 |
pub const SQLITE_WARNING: i32 = 28; |
| 59 |
pub const SQLITE_ROW: i32 = 100; |
| 60 |
pub const SQLITE_DONE: i32 = 101; |
| 61 |
pub const SQLITE_ERROR_MISSING_COLLSEQ: i32 = 257; |
| 62 |
pub const SQLITE_ERROR_RETRY: i32 = 513; |
| 63 |
pub const SQLITE_ERROR_SNAPSHOT: i32 = 769; |
| 64 |
pub const SQLITE_IOERR_READ: i32 = 266; |
| 65 |
pub const SQLITE_IOERR_SHORT_READ: i32 = 522; |
| 66 |
pub const SQLITE_IOERR_WRITE: i32 = 778; |
| 67 |
pub const SQLITE_IOERR_FSYNC: i32 = 1034; |
| 68 |
pub const SQLITE_IOERR_DIR_FSYNC: i32 = 1290; |
| 69 |
pub const SQLITE_IOERR_TRUNCATE: i32 = 1546; |
| 70 |
pub const SQLITE_IOERR_FSTAT: i32 = 1802; |
| 71 |
pub const SQLITE_IOERR_UNLOCK: i32 = 2058; |
| 72 |
pub const SQLITE_IOERR_RDLOCK: i32 = 2314; |
| 73 |
pub const SQLITE_IOERR_DELETE: i32 = 2570; |
| 74 |
pub const SQLITE_IOERR_BLOCKED: i32 = 2826; |
| 75 |
pub const SQLITE_IOERR_NOMEM: i32 = 3082; |
| 76 |
pub const SQLITE_IOERR_ACCESS: i32 = 3338; |
| 77 |
pub const SQLITE_IOERR_CHECKRESERVEDLOCK: i32 = 3594; |
| 78 |
pub const SQLITE_IOERR_LOCK: i32 = 3850; |
| 79 |
pub const SQLITE_IOERR_CLOSE: i32 = 4106; |
| 80 |
pub const SQLITE_IOERR_DIR_CLOSE: i32 = 4362; |
| 81 |
pub const SQLITE_IOERR_SHMOPEN: i32 = 4618; |
| 82 |
pub const SQLITE_IOERR_SHMSIZE: i32 = 4874; |
| 83 |
pub const SQLITE_IOERR_SHMLOCK: i32 = 5130; |
| 84 |
pub const SQLITE_IOERR_SHMMAP: i32 = 5386; |
| 85 |
pub const SQLITE_IOERR_SEEK: i32 = 5642; |
| 86 |
pub const SQLITE_IOERR_DELETE_NOENT: i32 = 5898; |
| 87 |
pub const SQLITE_IOERR_MMAP: i32 = 6154; |
| 88 |
pub const SQLITE_IOERR_GETTEMPPATH: i32 = 6410; |
| 89 |
pub const SQLITE_IOERR_CONVPATH: i32 = 6666; |
| 90 |
pub const SQLITE_IOERR_VNODE: i32 = 6922; |
| 91 |
pub const SQLITE_IOERR_AUTH: i32 = 7178; |
| 92 |
pub const SQLITE_IOERR_BEGIN_ATOMIC: i32 = 7434; |
| 93 |
pub const SQLITE_IOERR_COMMIT_ATOMIC: i32 = 7690; |
| 94 |
pub const SQLITE_IOERR_ROLLBACK_ATOMIC: i32 = 7946; |
| 95 |
pub const SQLITE_IOERR_DATA: i32 = 8202; |
| 96 |
pub const SQLITE_IOERR_CORRUPTFS: i32 = 8458; |
| 97 |
pub const SQLITE_IOERR_IN_PAGE: i32 = 8714; |
| 98 |
pub const SQLITE_LOCKED_SHAREDCACHE: i32 = 262; |
| 99 |
pub const SQLITE_LOCKED_VTAB: i32 = 518; |
| 100 |
pub const SQLITE_BUSY_RECOVERY: i32 = 261; |
| 101 |
pub const SQLITE_BUSY_SNAPSHOT: i32 = 517; |
| 102 |
pub const SQLITE_BUSY_TIMEOUT: i32 = 773; |
| 103 |
pub const SQLITE_CANTOPEN_NOTEMPDIR: i32 = 270; |
| 104 |
pub const SQLITE_CANTOPEN_ISDIR: i32 = 526; |
| 105 |
pub const SQLITE_CANTOPEN_FULLPATH: i32 = 782; |
| 106 |
pub const SQLITE_CANTOPEN_CONVPATH: i32 = 1038; |
| 107 |
pub const SQLITE_CANTOPEN_DIRTYWAL: i32 = 1294; |
| 108 |
pub const SQLITE_CANTOPEN_SYMLINK: i32 = 1550; |
| 109 |
pub const SQLITE_CORRUPT_VTAB: i32 = 267; |
| 110 |
pub const SQLITE_CORRUPT_SEQUENCE: i32 = 523; |
| 111 |
pub const SQLITE_CORRUPT_INDEX: i32 = 779; |
| 112 |
pub const SQLITE_READONLY_RECOVERY: i32 = 264; |
| 113 |
pub const SQLITE_READONLY_CANTLOCK: i32 = 520; |
| 114 |
pub const SQLITE_READONLY_ROLLBACK: i32 = 776; |
| 115 |
pub const SQLITE_READONLY_DBMOVED: i32 = 1032; |
| 116 |
pub const SQLITE_READONLY_CANTINIT: i32 = 1288; |
| 117 |
pub const SQLITE_READONLY_DIRECTORY: i32 = 1544; |
| 118 |
pub const SQLITE_ABORT_ROLLBACK: i32 = 516; |
| 119 |
pub const SQLITE_CONSTRAINT_CHECK: i32 = 275; |
| 120 |
pub const SQLITE_CONSTRAINT_COMMITHOOK: i32 = 531; |
| 121 |
pub const SQLITE_CONSTRAINT_FOREIGNKEY: i32 = 787; |
| 122 |
pub const SQLITE_CONSTRAINT_FUNCTION: i32 = 1043; |
| 123 |
pub const SQLITE_CONSTRAINT_NOTNULL: i32 = 1299; |
| 124 |
pub const SQLITE_CONSTRAINT_PRIMARYKEY: i32 = 1555; |
| 125 |
pub const SQLITE_CONSTRAINT_TRIGGER: i32 = 1811; |
| 126 |
pub const SQLITE_CONSTRAINT_UNIQUE: i32 = 2067; |
| 127 |
pub const SQLITE_CONSTRAINT_VTAB: i32 = 2323; |
| 128 |
pub const SQLITE_CONSTRAINT_ROWID: i32 = 2579; |
| 129 |
pub const SQLITE_CONSTRAINT_PINNED: i32 = 2835; |
| 130 |
pub const SQLITE_CONSTRAINT_DATATYPE: i32 = 3091; |
| 131 |
pub const SQLITE_NOTICE_RECOVER_WAL: i32 = 283; |
| 132 |
pub const SQLITE_NOTICE_RECOVER_ROLLBACK: i32 = 539; |
| 133 |
pub const SQLITE_NOTICE_RBU: i32 = 795; |
| 134 |
pub const SQLITE_WARNING_AUTOINDEX: i32 = 284; |
| 135 |
pub const SQLITE_AUTH_USER: i32 = 279; |
| 136 |
pub const SQLITE_OK_LOAD_PERMANENTLY: i32 = 256; |
| 137 |
pub const SQLITE_OK_SYMLINK: i32 = 512; |
| 138 |
pub const SQLITE_OPEN_READONLY: i32 = 1; |
| 139 |
pub const SQLITE_OPEN_READWRITE: i32 = 2; |
| 140 |
pub const SQLITE_OPEN_CREATE: i32 = 4; |
| 141 |
pub const SQLITE_OPEN_DELETEONCLOSE: i32 = 8; |
| 142 |
pub const SQLITE_OPEN_EXCLUSIVE: i32 = 16; |
| 143 |
pub const SQLITE_OPEN_AUTOPROXY: i32 = 32; |
| 144 |
pub const SQLITE_OPEN_URI: i32 = 64; |
| 145 |
pub const SQLITE_OPEN_MEMORY: i32 = 128; |
| 146 |
pub const SQLITE_OPEN_MAIN_DB: i32 = 256; |
| 147 |
pub const SQLITE_OPEN_TEMP_DB: i32 = 512; |
| 148 |
pub const SQLITE_OPEN_TRANSIENT_DB: i32 = 1024; |
| 149 |
pub const SQLITE_OPEN_MAIN_JOURNAL: i32 = 2048; |
| 150 |
pub const SQLITE_OPEN_TEMP_JOURNAL: i32 = 4096; |
| 151 |
pub const SQLITE_OPEN_SUBJOURNAL: i32 = 8192; |
| 152 |
pub const SQLITE_OPEN_SUPER_JOURNAL: i32 = 16384; |
| 153 |
pub const SQLITE_OPEN_NOMUTEX: i32 = 32768; |
| 154 |
pub const SQLITE_OPEN_FULLMUTEX: i32 = 65536; |
| 155 |
pub const SQLITE_OPEN_SHAREDCACHE: i32 = 131072; |
| 156 |
pub const SQLITE_OPEN_PRIVATECACHE: i32 = 262144; |
| 157 |
pub const SQLITE_OPEN_WAL: i32 = 524288; |
| 158 |
pub const SQLITE_OPEN_NOFOLLOW: i32 = 16777216; |
| 159 |
pub const SQLITE_OPEN_EXRESCODE: i32 = 33554432; |
| 160 |
pub const SQLITE_OPEN_MASTER_JOURNAL: i32 = 16384; |
| 161 |
pub const SQLITE_IOCAP_ATOMIC: i32 = 1; |
| 162 |
pub const SQLITE_IOCAP_ATOMIC512: i32 = 2; |
| 163 |
pub const SQLITE_IOCAP_ATOMIC1K: i32 = 4; |
| 164 |
pub const SQLITE_IOCAP_ATOMIC2K: i32 = 8; |
| 165 |
pub const SQLITE_IOCAP_ATOMIC4K: i32 = 16; |
| 166 |
pub const SQLITE_IOCAP_ATOMIC8K: i32 = 32; |
| 167 |
pub const SQLITE_IOCAP_ATOMIC16K: i32 = 64; |
| 168 |
pub const SQLITE_IOCAP_ATOMIC32K: i32 = 128; |
| 169 |
pub const SQLITE_IOCAP_ATOMIC64K: i32 = 256; |
| 170 |
pub const SQLITE_IOCAP_SAFE_APPEND: i32 = 512; |
| 171 |
pub const SQLITE_IOCAP_SEQUENTIAL: i32 = 1024; |
| 172 |
pub const SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN: i32 = 2048; |
| 173 |
pub const SQLITE_IOCAP_POWERSAFE_OVERWRITE: i32 = 4096; |
| 174 |
pub const SQLITE_IOCAP_IMMUTABLE: i32 = 8192; |
| 175 |
pub const SQLITE_IOCAP_BATCH_ATOMIC: i32 = 16384; |
| 176 |
pub const SQLITE_LOCK_NONE: i32 = 0; |
| 177 |
pub const SQLITE_LOCK_SHARED: i32 = 1; |
| 178 |
pub const SQLITE_LOCK_RESERVED: i32 = 2; |
| 179 |
pub const SQLITE_LOCK_PENDING: i32 = 3; |
| 180 |
pub const SQLITE_LOCK_EXCLUSIVE: i32 = 4; |
| 181 |
pub const SQLITE_SYNC_NORMAL: i32 = 2; |
| 182 |
pub const SQLITE_SYNC_FULL: i32 = 3; |
| 183 |
pub const SQLITE_SYNC_DATAONLY: i32 = 16; |
| 184 |
pub const SQLITE_FCNTL_LOCKSTATE: i32 = 1; |
| 185 |
pub const SQLITE_FCNTL_GET_LOCKPROXYFILE: i32 = 2; |
| 186 |
pub const SQLITE_FCNTL_SET_LOCKPROXYFILE: i32 = 3; |
| 187 |
pub const SQLITE_FCNTL_LAST_ERRNO: i32 = 4; |
| 188 |
pub const SQLITE_FCNTL_SIZE_HINT: i32 = 5; |
| 189 |
pub const SQLITE_FCNTL_CHUNK_SIZE: i32 = 6; |
| 190 |
pub const SQLITE_FCNTL_FILE_POINTER: i32 = 7; |
| 191 |
pub const SQLITE_FCNTL_SYNC_OMITTED: i32 = 8; |
| 192 |
pub const SQLITE_FCNTL_WIN32_AV_RETRY: i32 = 9; |
| 193 |
pub const SQLITE_FCNTL_PERSIST_WAL: i32 = 10; |
| 194 |
pub const SQLITE_FCNTL_OVERWRITE: i32 = 11; |
| 195 |
pub const SQLITE_FCNTL_VFSNAME: i32 = 12; |
| 196 |
pub const SQLITE_FCNTL_POWERSAFE_OVERWRITE: i32 = 13; |
| 197 |
pub const SQLITE_FCNTL_PRAGMA: i32 = 14; |
| 198 |
pub const SQLITE_FCNTL_BUSYHANDLER: i32 = 15; |
| 199 |
pub const SQLITE_FCNTL_TEMPFILENAME: i32 = 16; |
| 200 |
pub const SQLITE_FCNTL_MMAP_SIZE: i32 = 18; |
| 201 |
pub const SQLITE_FCNTL_TRACE: i32 = 19; |
| 202 |
pub const SQLITE_FCNTL_HAS_MOVED: i32 = 20; |
| 203 |
pub const SQLITE_FCNTL_SYNC: i32 = 21; |
| 204 |
pub const SQLITE_FCNTL_COMMIT_PHASETWO: i32 = 22; |
| 205 |
pub const SQLITE_FCNTL_WIN32_SET_HANDLE: i32 = 23; |
| 206 |
pub const SQLITE_FCNTL_WAL_BLOCK: i32 = 24; |
| 207 |
pub const SQLITE_FCNTL_ZIPVFS: i32 = 25; |
| 208 |
pub const SQLITE_FCNTL_RBU: i32 = 26; |
| 209 |
pub const SQLITE_FCNTL_VFS_POINTER: i32 = 27; |
| 210 |
pub const SQLITE_FCNTL_JOURNAL_POINTER: i32 = 28; |
| 211 |
pub const SQLITE_FCNTL_WIN32_GET_HANDLE: i32 = 29; |
| 212 |
pub const SQLITE_FCNTL_PDB: i32 = 30; |
| 213 |
pub const SQLITE_FCNTL_BEGIN_ATOMIC_WRITE: i32 = 31; |
| 214 |
pub const SQLITE_FCNTL_COMMIT_ATOMIC_WRITE: i32 = 32; |
| 215 |
pub const SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE: i32 = 33; |
| 216 |
pub const SQLITE_FCNTL_LOCK_TIMEOUT: i32 = 34; |
| 217 |
pub const SQLITE_FCNTL_DATA_VERSION: i32 = 35; |
| 218 |
pub const SQLITE_FCNTL_SIZE_LIMIT: i32 = 36; |
| 219 |
pub const SQLITE_FCNTL_CKPT_DONE: i32 = 37; |
| 220 |
pub const SQLITE_FCNTL_RESERVE_BYTES: i32 = 38; |
| 221 |
pub const SQLITE_FCNTL_CKPT_START: i32 = 39; |
| 222 |
pub const SQLITE_FCNTL_EXTERNAL_READER: i32 = 40; |
| 223 |
pub const SQLITE_FCNTL_CKSM_FILE: i32 = 41; |
| 224 |
pub const SQLITE_FCNTL_RESET_CACHE: i32 = 42; |
| 225 |
pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2; |
| 226 |
pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3; |
| 227 |
pub const SQLITE_LAST_ERRNO: i32 = 4; |
| 228 |
pub const SQLITE_ACCESS_EXISTS: i32 = 0; |
| 229 |
pub const SQLITE_ACCESS_READWRITE: i32 = 1; |
| 230 |
pub const SQLITE_ACCESS_READ: i32 = 2; |
| 231 |
pub const SQLITE_SHM_UNLOCK: i32 = 1; |
| 232 |
pub const SQLITE_SHM_LOCK: i32 = 2; |
| 233 |
pub const SQLITE_SHM_SHARED: i32 = 4; |
| 234 |
pub const SQLITE_SHM_EXCLUSIVE: i32 = 8; |
| 235 |
pub const SQLITE_SHM_NLOCK: i32 = 8; |
| 236 |
pub const SQLITE_CONFIG_SINGLETHREAD: i32 = 1; |
| 237 |
pub const SQLITE_CONFIG_MULTITHREAD: i32 = 2; |
| 238 |
pub const SQLITE_CONFIG_SERIALIZED: i32 = 3; |
| 239 |
pub const SQLITE_CONFIG_MALLOC: i32 = 4; |
| 240 |
pub const SQLITE_CONFIG_GETMALLOC: i32 = 5; |
| 241 |
pub const SQLITE_CONFIG_SCRATCH: i32 = 6; |
| 242 |
pub const SQLITE_CONFIG_PAGECACHE: i32 = 7; |
| 243 |
pub const SQLITE_CONFIG_HEAP: i32 = 8; |
| 244 |
pub const SQLITE_CONFIG_MEMSTATUS: i32 = 9; |
| 245 |
pub const SQLITE_CONFIG_MUTEX: i32 = 10; |
| 246 |
pub const SQLITE_CONFIG_GETMUTEX: i32 = 11; |
| 247 |
pub const SQLITE_CONFIG_LOOKASIDE: i32 = 13; |
| 248 |
pub const SQLITE_CONFIG_PCACHE: i32 = 14; |
| 249 |
pub const SQLITE_CONFIG_GETPCACHE: i32 = 15; |
| 250 |
pub const SQLITE_CONFIG_LOG: i32 = 16; |
| 251 |
pub const SQLITE_CONFIG_URI: i32 = 17; |
| 252 |
pub const SQLITE_CONFIG_PCACHE2: i32 = 18; |
| 253 |
pub const SQLITE_CONFIG_GETPCACHE2: i32 = 19; |
| 254 |
pub const SQLITE_CONFIG_COVERING_INDEX_SCAN: i32 = 20; |
| 255 |
pub const SQLITE_CONFIG_SQLLOG: i32 = 21; |
| 256 |
pub const SQLITE_CONFIG_MMAP_SIZE: i32 = 22; |
| 257 |
pub const SQLITE_CONFIG_WIN32_HEAPSIZE: i32 = 23; |
| 258 |
pub const SQLITE_CONFIG_PCACHE_HDRSZ: i32 = 24; |
| 259 |
pub const SQLITE_CONFIG_PMASZ: i32 = 25; |
| 260 |
pub const SQLITE_CONFIG_STMTJRNL_SPILL: i32 = 26; |
| 261 |
pub const SQLITE_CONFIG_SMALL_MALLOC: i32 = 27; |
| 262 |
pub const SQLITE_CONFIG_SORTERREF_SIZE: i32 = 28; |
| 263 |
pub const SQLITE_CONFIG_MEMDB_MAXSIZE: i32 = 29; |
| 264 |
pub const SQLITE_CONFIG_ROWID_IN_VIEW: i32 = 30; |
| 265 |
pub const SQLITE_DBCONFIG_MAINDBNAME: i32 = 1000; |
| 266 |
pub const SQLITE_DBCONFIG_LOOKASIDE: i32 = 1001; |
| 267 |
pub const SQLITE_DBCONFIG_ENABLE_FKEY: i32 = 1002; |
| 268 |
pub const SQLITE_DBCONFIG_ENABLE_TRIGGER: i32 = 1003; |
| 269 |
pub const SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER: i32 = 1004; |
| 270 |
pub const SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION: i32 = 1005; |
| 271 |
pub const SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE: i32 = 1006; |
| 272 |
pub const SQLITE_DBCONFIG_ENABLE_QPSG: i32 = 1007; |
| 273 |
pub const SQLITE_DBCONFIG_TRIGGER_EQP: i32 = 1008; |
| 274 |
pub const SQLITE_DBCONFIG_RESET_DATABASE: i32 = 1009; |
| 275 |
pub const SQLITE_DBCONFIG_DEFENSIVE: i32 = 1010; |
| 276 |
pub const SQLITE_DBCONFIG_WRITABLE_SCHEMA: i32 = 1011; |
| 277 |
pub const SQLITE_DBCONFIG_LEGACY_ALTER_TABLE: i32 = 1012; |
| 278 |
pub const SQLITE_DBCONFIG_DQS_DML: i32 = 1013; |
| 279 |
pub const SQLITE_DBCONFIG_DQS_DDL: i32 = 1014; |
| 280 |
pub const SQLITE_DBCONFIG_ENABLE_VIEW: i32 = 1015; |
| 281 |
pub const SQLITE_DBCONFIG_LEGACY_FILE_FORMAT: i32 = 1016; |
| 282 |
pub const SQLITE_DBCONFIG_TRUSTED_SCHEMA: i32 = 1017; |
| 283 |
pub const SQLITE_DBCONFIG_STMT_SCANSTATUS: i32 = 1018; |
| 284 |
pub const SQLITE_DBCONFIG_REVERSE_SCANORDER: i32 = 1019; |
| 285 |
pub const SQLITE_DBCONFIG_MAX: i32 = 1019; |
| 286 |
pub const SQLITE_DENY: i32 = 1; |
| 287 |
pub const SQLITE_IGNORE: i32 = 2; |
| 288 |
pub const SQLITE_CREATE_INDEX: i32 = 1; |
| 289 |
pub const SQLITE_CREATE_TABLE: i32 = 2; |
| 290 |
pub const SQLITE_CREATE_TEMP_INDEX: i32 = 3; |
| 291 |
pub const SQLITE_CREATE_TEMP_TABLE: i32 = 4; |
| 292 |
pub const SQLITE_CREATE_TEMP_TRIGGER: i32 = 5; |
| 293 |
pub const SQLITE_CREATE_TEMP_VIEW: i32 = 6; |
| 294 |
pub const SQLITE_CREATE_TRIGGER: i32 = 7; |
| 295 |
pub const SQLITE_CREATE_VIEW: i32 = 8; |
| 296 |
pub const SQLITE_DELETE: i32 = 9; |
| 297 |
pub const SQLITE_DROP_INDEX: i32 = 10; |
| 298 |
pub const SQLITE_DROP_TABLE: i32 = 11; |
| 299 |
pub const SQLITE_DROP_TEMP_INDEX: i32 = 12; |
| 300 |
pub const SQLITE_DROP_TEMP_TABLE: i32 = 13; |
| 301 |
pub const SQLITE_DROP_TEMP_TRIGGER: i32 = 14; |
| 302 |
pub const SQLITE_DROP_TEMP_VIEW: i32 = 15; |
| 303 |
pub const SQLITE_DROP_TRIGGER: i32 = 16; |
| 304 |
pub const SQLITE_DROP_VIEW: i32 = 17; |
| 305 |
pub const SQLITE_INSERT: i32 = 18; |
| 306 |
pub const SQLITE_PRAGMA: i32 = 19; |
| 307 |
pub const SQLITE_READ: i32 = 20; |
| 308 |
pub const SQLITE_SELECT: i32 = 21; |
| 309 |
pub const SQLITE_TRANSACTION: i32 = 22; |
| 310 |
pub const SQLITE_UPDATE: i32 = 23; |
| 311 |
pub const SQLITE_ATTACH: i32 = 24; |
| 312 |
pub const SQLITE_DETACH: i32 = 25; |
| 313 |
pub const SQLITE_ALTER_TABLE: i32 = 26; |
| 314 |
pub const SQLITE_REINDEX: i32 = 27; |
| 315 |
pub const SQLITE_ANALYZE: i32 = 28; |
| 316 |
pub const SQLITE_CREATE_VTABLE: i32 = 29; |
| 317 |
pub const SQLITE_DROP_VTABLE: i32 = 30; |
| 318 |
pub const SQLITE_FUNCTION: i32 = 31; |
| 319 |
pub const SQLITE_SAVEPOINT: i32 = 32; |
| 320 |
pub const SQLITE_COPY: i32 = 0; |
| 321 |
pub const SQLITE_RECURSIVE: i32 = 33; |
| 322 |
pub const SQLITE_TRACE_STMT: ::std::os::raw::c_uint = 1; |
| 323 |
pub const SQLITE_TRACE_PROFILE: ::std::os::raw::c_uint = 2; |
| 324 |
pub const SQLITE_TRACE_ROW: ::std::os::raw::c_uint = 4; |
| 325 |
pub const SQLITE_TRACE_CLOSE: ::std::os::raw::c_uint = 8; |
| 326 |
pub const SQLITE_LIMIT_LENGTH: i32 = 0; |
| 327 |
pub const SQLITE_LIMIT_SQL_LENGTH: i32 = 1; |
| 328 |
pub const SQLITE_LIMIT_COLUMN: i32 = 2; |
| 329 |
pub const SQLITE_LIMIT_EXPR_DEPTH: i32 = 3; |
| 330 |
pub const SQLITE_LIMIT_COMPOUND_SELECT: i32 = 4; |
| 331 |
pub const SQLITE_LIMIT_VDBE_OP: i32 = 5; |
| 332 |
pub const SQLITE_LIMIT_FUNCTION_ARG: i32 = 6; |
| 333 |
pub const SQLITE_LIMIT_ATTACHED: i32 = 7; |
| 334 |
pub const SQLITE_LIMIT_LIKE_PATTERN_LENGTH: i32 = 8; |
| 335 |
pub const SQLITE_LIMIT_VARIABLE_NUMBER: i32 = 9; |
| 336 |
pub const SQLITE_LIMIT_TRIGGER_DEPTH: i32 = 10; |
| 337 |
pub const SQLITE_LIMIT_WORKER_THREADS: i32 = 11; |
| 338 |
pub const SQLITE_PREPARE_PERSISTENT: ::std::os::raw::c_uint = 1; |
| 339 |
pub const SQLITE_PREPARE_NORMALIZE: ::std::os::raw::c_uint = 2; |
| 340 |
pub const SQLITE_PREPARE_NO_VTAB: ::std::os::raw::c_uint = 4; |
| 341 |
pub const SQLITE_INTEGER: i32 = 1; |
| 342 |
pub const SQLITE_FLOAT: i32 = 2; |
| 343 |
pub const SQLITE_BLOB: i32 = 4; |
| 344 |
pub const SQLITE_NULL: i32 = 5; |
| 345 |
pub const SQLITE_TEXT: i32 = 3; |
| 346 |
pub const SQLITE3_TEXT: i32 = 3; |
| 347 |
pub const SQLITE_UTF8: i32 = 1; |
| 348 |
pub const SQLITE_UTF16LE: i32 = 2; |
| 349 |
pub const SQLITE_UTF16BE: i32 = 3; |
| 350 |
pub const SQLITE_UTF16: i32 = 4; |
| 351 |
pub const SQLITE_ANY: i32 = 5; |
| 352 |
pub const SQLITE_UTF16_ALIGNED: i32 = 8; |
| 353 |
pub const SQLITE_DETERMINISTIC: i32 = 2048; |
| 354 |
pub const SQLITE_DIRECTONLY: i32 = 524288; |
| 355 |
pub const SQLITE_SUBTYPE: i32 = 1048576; |
| 356 |
pub const SQLITE_INNOCUOUS: i32 = 2097152; |
| 357 |
pub const SQLITE_RESULT_SUBTYPE: i32 = 16777216; |
| 358 |
pub const SQLITE_WIN32_DATA_DIRECTORY_TYPE: i32 = 1; |
| 359 |
pub const SQLITE_WIN32_TEMP_DIRECTORY_TYPE: i32 = 2; |
| 360 |
pub const SQLITE_TXN_NONE: i32 = 0; |
| 361 |
pub const SQLITE_TXN_READ: i32 = 1; |
| 362 |
pub const SQLITE_TXN_WRITE: i32 = 2; |
| 363 |
pub const SQLITE_INDEX_SCAN_UNIQUE: i32 = 1; |
| 364 |
pub const SQLITE_INDEX_CONSTRAINT_EQ: i32 = 2; |
| 365 |
pub const SQLITE_INDEX_CONSTRAINT_GT: i32 = 4; |
| 366 |
pub const SQLITE_INDEX_CONSTRAINT_LE: i32 = 8; |
| 367 |
pub const SQLITE_INDEX_CONSTRAINT_LT: i32 = 16; |
| 368 |
pub const SQLITE_INDEX_CONSTRAINT_GE: i32 = 32; |
| 369 |
pub const SQLITE_INDEX_CONSTRAINT_MATCH: i32 = 64; |
| 370 |
pub const SQLITE_INDEX_CONSTRAINT_LIKE: i32 = 65; |
| 371 |
pub const SQLITE_INDEX_CONSTRAINT_GLOB: i32 = 66; |
| 372 |
pub const SQLITE_INDEX_CONSTRAINT_REGEXP: i32 = 67; |
| 373 |
pub const SQLITE_INDEX_CONSTRAINT_NE: i32 = 68; |
| 374 |
pub const SQLITE_INDEX_CONSTRAINT_ISNOT: i32 = 69; |
| 375 |
pub const SQLITE_INDEX_CONSTRAINT_ISNOTNULL: i32 = 70; |
| 376 |
pub const SQLITE_INDEX_CONSTRAINT_ISNULL: i32 = 71; |
| 377 |
pub const SQLITE_INDEX_CONSTRAINT_IS: i32 = 72; |
| 378 |
pub const SQLITE_INDEX_CONSTRAINT_LIMIT: i32 = 73; |
| 379 |
pub const SQLITE_INDEX_CONSTRAINT_OFFSET: i32 = 74; |
| 380 |
pub const SQLITE_INDEX_CONSTRAINT_FUNCTION: i32 = 150; |
| 381 |
pub const SQLITE_MUTEX_FAST: i32 = 0; |
| 382 |
pub const SQLITE_MUTEX_RECURSIVE: i32 = 1; |
| 383 |
pub const SQLITE_MUTEX_STATIC_MAIN: i32 = 2; |
| 384 |
pub const SQLITE_MUTEX_STATIC_MEM: i32 = 3; |
| 385 |
pub const SQLITE_MUTEX_STATIC_MEM2: i32 = 4; |
| 386 |
pub const SQLITE_MUTEX_STATIC_OPEN: i32 = 4; |
| 387 |
pub const SQLITE_MUTEX_STATIC_PRNG: i32 = 5; |
| 388 |
pub const SQLITE_MUTEX_STATIC_LRU: i32 = 6; |
| 389 |
pub const SQLITE_MUTEX_STATIC_LRU2: i32 = 7; |
| 390 |
pub const SQLITE_MUTEX_STATIC_PMEM: i32 = 7; |
| 391 |
pub const SQLITE_MUTEX_STATIC_APP1: i32 = 8; |
| 392 |
pub const SQLITE_MUTEX_STATIC_APP2: i32 = 9; |
| 393 |
pub const SQLITE_MUTEX_STATIC_APP3: i32 = 10; |
| 394 |
pub const SQLITE_MUTEX_STATIC_VFS1: i32 = 11; |
| 395 |
pub const SQLITE_MUTEX_STATIC_VFS2: i32 = 12; |
| 396 |
pub const SQLITE_MUTEX_STATIC_VFS3: i32 = 13; |
| 397 |
pub const SQLITE_MUTEX_STATIC_MASTER: i32 = 2; |
| 398 |
pub const SQLITE_TESTCTRL_FIRST: i32 = 5; |
| 399 |
pub const SQLITE_TESTCTRL_PRNG_SAVE: i32 = 5; |
| 400 |
pub const SQLITE_TESTCTRL_PRNG_RESTORE: i32 = 6; |
| 401 |
pub const SQLITE_TESTCTRL_PRNG_RESET: i32 = 7; |
| 402 |
pub const SQLITE_TESTCTRL_FK_NO_ACTION: i32 = 7; |
| 403 |
pub const SQLITE_TESTCTRL_BITVEC_TEST: i32 = 8; |
| 404 |
pub const SQLITE_TESTCTRL_FAULT_INSTALL: i32 = 9; |
| 405 |
pub const SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS: i32 = 10; |
| 406 |
pub const SQLITE_TESTCTRL_PENDING_BYTE: i32 = 11; |
| 407 |
pub const SQLITE_TESTCTRL_ASSERT: i32 = 12; |
| 408 |
pub const SQLITE_TESTCTRL_ALWAYS: i32 = 13; |
| 409 |
pub const SQLITE_TESTCTRL_RESERVE: i32 = 14; |
| 410 |
pub const SQLITE_TESTCTRL_JSON_SELFCHECK: i32 = 14; |
| 411 |
pub const SQLITE_TESTCTRL_OPTIMIZATIONS: i32 = 15; |
| 412 |
pub const SQLITE_TESTCTRL_ISKEYWORD: i32 = 16; |
| 413 |
pub const SQLITE_TESTCTRL_SCRATCHMALLOC: i32 = 17; |
| 414 |
pub const SQLITE_TESTCTRL_INTERNAL_FUNCTIONS: i32 = 17; |
| 415 |
pub const SQLITE_TESTCTRL_LOCALTIME_FAULT: i32 = 18; |
| 416 |
pub const SQLITE_TESTCTRL_EXPLAIN_STMT: i32 = 19; |
| 417 |
pub const SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD: i32 = 19; |
| 418 |
pub const SQLITE_TESTCTRL_NEVER_CORRUPT: i32 = 20; |
| 419 |
pub const SQLITE_TESTCTRL_VDBE_COVERAGE: i32 = 21; |
| 420 |
pub const SQLITE_TESTCTRL_BYTEORDER: i32 = 22; |
| 421 |
pub const SQLITE_TESTCTRL_ISINIT: i32 = 23; |
| 422 |
pub const SQLITE_TESTCTRL_SORTER_MMAP: i32 = 24; |
| 423 |
pub const SQLITE_TESTCTRL_IMPOSTER: i32 = 25; |
| 424 |
pub const SQLITE_TESTCTRL_PARSER_COVERAGE: i32 = 26; |
| 425 |
pub const SQLITE_TESTCTRL_RESULT_INTREAL: i32 = 27; |
| 426 |
pub const SQLITE_TESTCTRL_PRNG_SEED: i32 = 28; |
| 427 |
pub const SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS: i32 = 29; |
| 428 |
pub const SQLITE_TESTCTRL_SEEK_COUNT: i32 = 30; |
| 429 |
pub const SQLITE_TESTCTRL_TRACEFLAGS: i32 = 31; |
| 430 |
pub const SQLITE_TESTCTRL_TUNE: i32 = 32; |
| 431 |
pub const SQLITE_TESTCTRL_LOGEST: i32 = 33; |
| 432 |
pub const SQLITE_TESTCTRL_USELONGDOUBLE: i32 = 34; |
| 433 |
pub const SQLITE_TESTCTRL_LAST: i32 = 34; |
| 434 |
pub const SQLITE_STATUS_MEMORY_USED: i32 = 0; |
| 435 |
pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1; |
| 436 |
pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2; |
| 437 |
pub const SQLITE_STATUS_SCRATCH_USED: i32 = 3; |
| 438 |
pub const SQLITE_STATUS_SCRATCH_OVERFLOW: i32 = 4; |
| 439 |
pub const SQLITE_STATUS_MALLOC_SIZE: i32 = 5; |
| 440 |
pub const SQLITE_STATUS_PARSER_STACK: i32 = 6; |
| 441 |
pub const SQLITE_STATUS_PAGECACHE_SIZE: i32 = 7; |
| 442 |
pub const SQLITE_STATUS_SCRATCH_SIZE: i32 = 8; |
| 443 |
pub const SQLITE_STATUS_MALLOC_COUNT: i32 = 9; |
| 444 |
pub const SQLITE_DBSTATUS_LOOKASIDE_USED: i32 = 0; |
| 445 |
pub const SQLITE_DBSTATUS_CACHE_USED: i32 = 1; |
| 446 |
pub const SQLITE_DBSTATUS_SCHEMA_USED: i32 = 2; |
| 447 |
pub const SQLITE_DBSTATUS_STMT_USED: i32 = 3; |
| 448 |
pub const SQLITE_DBSTATUS_LOOKASIDE_HIT: i32 = 4; |
| 449 |
pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE: i32 = 5; |
| 450 |
pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL: i32 = 6; |
| 451 |
pub const SQLITE_DBSTATUS_CACHE_HIT: i32 = 7; |
| 452 |
pub const SQLITE_DBSTATUS_CACHE_MISS: i32 = 8; |
| 453 |
pub const SQLITE_DBSTATUS_CACHE_WRITE: i32 = 9; |
| 454 |
pub const SQLITE_DBSTATUS_DEFERRED_FKS: i32 = 10; |
| 455 |
pub const SQLITE_DBSTATUS_CACHE_USED_SHARED: i32 = 11; |
| 456 |
pub const SQLITE_DBSTATUS_CACHE_SPILL: i32 = 12; |
| 457 |
pub const SQLITE_DBSTATUS_MAX: i32 = 12; |
| 458 |
pub const SQLITE_STMTSTATUS_FULLSCAN_STEP: i32 = 1; |
| 459 |
pub const SQLITE_STMTSTATUS_SORT: i32 = 2; |
| 460 |
pub const SQLITE_STMTSTATUS_AUTOINDEX: i32 = 3; |
| 461 |
pub const SQLITE_STMTSTATUS_VM_STEP: i32 = 4; |
| 462 |
pub const SQLITE_STMTSTATUS_REPREPARE: i32 = 5; |
| 463 |
pub const SQLITE_STMTSTATUS_RUN: i32 = 6; |
| 464 |
pub const SQLITE_STMTSTATUS_FILTER_MISS: i32 = 7; |
| 465 |
pub const SQLITE_STMTSTATUS_FILTER_HIT: i32 = 8; |
| 466 |
pub const SQLITE_STMTSTATUS_MEMUSED: i32 = 99; |
| 467 |
pub const SQLITE_CHECKPOINT_PASSIVE: i32 = 0; |
| 468 |
pub const SQLITE_CHECKPOINT_FULL: i32 = 1; |
| 469 |
pub const SQLITE_CHECKPOINT_RESTART: i32 = 2; |
| 470 |
pub const SQLITE_CHECKPOINT_TRUNCATE: i32 = 3; |
| 471 |
pub const SQLITE_VTAB_CONSTRAINT_SUPPORT: i32 = 1; |
| 472 |
pub const SQLITE_VTAB_INNOCUOUS: i32 = 2; |
| 473 |
pub const SQLITE_VTAB_DIRECTONLY: i32 = 3; |
| 474 |
pub const SQLITE_VTAB_USES_ALL_SCHEMAS: i32 = 4; |
| 475 |
pub const SQLITE_ROLLBACK: i32 = 1; |
| 476 |
pub const SQLITE_FAIL: i32 = 3; |
| 477 |
pub const SQLITE_REPLACE: i32 = 5; |
| 478 |
pub const SQLITE_SCANSTAT_NLOOP: i32 = 0; |
| 479 |
pub const SQLITE_SCANSTAT_NVISIT: i32 = 1; |
| 480 |
pub const SQLITE_SCANSTAT_EST: i32 = 2; |
| 481 |
pub const SQLITE_SCANSTAT_NAME: i32 = 3; |
| 482 |
pub const SQLITE_SCANSTAT_EXPLAIN: i32 = 4; |
| 483 |
pub const SQLITE_SCANSTAT_SELECTID: i32 = 5; |
| 484 |
pub const SQLITE_SCANSTAT_PARENTID: i32 = 6; |
| 485 |
pub const SQLITE_SCANSTAT_NCYCLE: i32 = 7; |
| 486 |
pub const SQLITE_SCANSTAT_COMPLEX: i32 = 1; |
| 487 |
pub const SQLITE_SERIALIZE_NOCOPY: ::std::os::raw::c_uint = 1; |
| 488 |
pub const SQLITE_DESERIALIZE_FREEONCLOSE: ::std::os::raw::c_uint = 1; |
| 489 |
pub const SQLITE_DESERIALIZE_RESIZEABLE: ::std::os::raw::c_uint = 2; |
| 490 |
pub const SQLITE_DESERIALIZE_READONLY: ::std::os::raw::c_uint = 4; |
| 491 |
pub const NOT_WITHIN: i32 = 0; |
| 492 |
pub const PARTLY_WITHIN: i32 = 1; |
| 493 |
pub const FULLY_WITHIN: i32 = 2; |
| 494 |
pub const SQLITE_SESSION_OBJCONFIG_SIZE: i32 = 1; |
| 495 |
pub const SQLITE_SESSION_OBJCONFIG_ROWID: i32 = 2; |
| 496 |
pub const SQLITE_CHANGESETSTART_INVERT: i32 = 2; |
| 497 |
pub const SQLITE_CHANGESETAPPLY_NOSAVEPOINT: i32 = 1; |
| 498 |
pub const SQLITE_CHANGESETAPPLY_INVERT: i32 = 2; |
| 499 |
pub const SQLITE_CHANGESETAPPLY_IGNORENOOP: i32 = 4; |
| 500 |
pub const SQLITE_CHANGESETAPPLY_FKNOACTION: i32 = 8; |
| 501 |
pub const SQLITE_CHANGESET_DATA: i32 = 1; |
| 502 |
pub const SQLITE_CHANGESET_NOTFOUND: i32 = 2; |
| 503 |
pub const SQLITE_CHANGESET_CONFLICT: i32 = 3; |
| 504 |
pub const SQLITE_CHANGESET_CONSTRAINT: i32 = 4; |
| 505 |
pub const SQLITE_CHANGESET_FOREIGN_KEY: i32 = 5; |
| 506 |
pub const SQLITE_CHANGESET_OMIT: i32 = 0; |
| 507 |
pub const SQLITE_CHANGESET_REPLACE: i32 = 1; |
| 508 |
pub const SQLITE_CHANGESET_ABORT: i32 = 2; |
| 509 |
pub const SQLITE_SESSION_CONFIG_STRMSIZE: i32 = 1; |
| 510 |
pub const FTS5_TOKENIZE_QUERY: i32 = 1; |
| 511 |
pub const FTS5_TOKENIZE_PREFIX: i32 = 2; |
| 512 |
pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4; |
| 513 |
pub const FTS5_TOKENIZE_AUX: i32 = 8; |
| 514 |
pub const FTS5_TOKEN_COLOCATED: i32 = 1; |
| 515 |
extern "C" { |
| 516 |
pub static sqlite3_version: [::std::os::raw::c_char; 0usize]; |
| 517 |
} |
| 518 |
extern "C" { |
| 519 |
pub fn sqlite3_libversion() -> *const ::std::os::raw::c_char; |
| 520 |
} |
| 521 |
extern "C" { |
| 522 |
pub fn sqlite3_sourceid() -> *const ::std::os::raw::c_char; |
| 523 |
} |
| 524 |
extern "C" { |
| 525 |
pub fn sqlite3_libversion_number() -> ::std::os::raw::c_int; |
| 526 |
} |
| 527 |
extern "C" { |
| 528 |
pub fn sqlite3_compileoption_used( |
| 529 |
zOptName: *const ::std::os::raw::c_char, |
| 530 |
) -> ::std::os::raw::c_int; |
| 531 |
} |
| 532 |
extern "C" { |
| 533 |
pub fn sqlite3_compileoption_get(N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; |
| 534 |
} |
| 535 |
extern "C" { |
| 536 |
pub fn sqlite3_threadsafe() -> ::std::os::raw::c_int; |
| 537 |
} |
| 538 |
#[repr(C)] |
| 539 |
#[derive(Debug, Copy, Clone)] |
| 540 |
pub struct sqlite3 { |
| 541 |
_unused: [u8; 0], |
| 542 |
} |
| 543 |
pub type sqlite_int64 = ::std::os::raw::c_longlong; |
| 544 |
pub type sqlite_uint64 = ::std::os::raw::c_ulonglong; |
| 545 |
pub type sqlite3_int64 = sqlite_int64; |
| 546 |
pub type sqlite3_uint64 = sqlite_uint64; |
| 547 |
extern "C" { |
| 548 |
pub fn sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 549 |
} |
| 550 |
pub type sqlite3_callback = ::std::option::Option< |
| 551 |
unsafe extern "C" fn( |
| 552 |
arg1: *mut ::std::os::raw::c_void, |
| 553 |
arg2: ::std::os::raw::c_int, |
| 554 |
arg3: *mut *mut ::std::os::raw::c_char, |
| 555 |
arg4: *mut *mut ::std::os::raw::c_char, |
| 556 |
) -> ::std::os::raw::c_int, |
| 557 |
>; |
| 558 |
extern "C" { |
| 559 |
pub fn sqlite3_exec( |
| 560 |
arg1: *mut sqlite3, |
| 561 |
sql: *const ::std::os::raw::c_char, |
| 562 |
callback: ::std::option::Option< |
| 563 |
unsafe extern "C" fn( |
| 564 |
arg1: *mut ::std::os::raw::c_void, |
| 565 |
arg2: ::std::os::raw::c_int, |
| 566 |
arg3: *mut *mut ::std::os::raw::c_char, |
| 567 |
arg4: *mut *mut ::std::os::raw::c_char, |
| 568 |
) -> ::std::os::raw::c_int, |
| 569 |
>, |
| 570 |
arg2: *mut ::std::os::raw::c_void, |
| 571 |
errmsg: *mut *mut ::std::os::raw::c_char, |
| 572 |
) -> ::std::os::raw::c_int; |
| 573 |
} |
| 574 |
#[repr(C)] |
| 575 |
#[derive(Debug, Copy, Clone)] |
| 576 |
pub struct sqlite3_file { |
| 577 |
pub pMethods: *const sqlite3_io_methods, |
| 578 |
} |
| 579 |
#[repr(C)] |
| 580 |
#[derive(Debug, Copy, Clone)] |
| 581 |
pub struct sqlite3_io_methods { |
| 582 |
pub iVersion: ::std::os::raw::c_int, |
| 583 |
pub xClose: ::std::option::Option< |
| 584 |
unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, |
| 585 |
>, |
| 586 |
pub xRead: ::std::option::Option< |
| 587 |
unsafe extern "C" fn( |
| 588 |
arg1: *mut sqlite3_file, |
| 589 |
arg2: *mut ::std::os::raw::c_void, |
| 590 |
iAmt: ::std::os::raw::c_int, |
| 591 |
iOfst: sqlite3_int64, |
| 592 |
) -> ::std::os::raw::c_int, |
| 593 |
>, |
| 594 |
pub xWrite: ::std::option::Option< |
| 595 |
unsafe extern "C" fn( |
| 596 |
arg1: *mut sqlite3_file, |
| 597 |
arg2: *const ::std::os::raw::c_void, |
| 598 |
iAmt: ::std::os::raw::c_int, |
| 599 |
iOfst: sqlite3_int64, |
| 600 |
) -> ::std::os::raw::c_int, |
| 601 |
>, |
| 602 |
pub xTruncate: ::std::option::Option< |
| 603 |
unsafe extern "C" fn(arg1: *mut sqlite3_file, size: sqlite3_int64) -> ::std::os::raw::c_int, |
| 604 |
>, |
| 605 |
pub xSync: ::std::option::Option< |
| 606 |
unsafe extern "C" fn( |
| 607 |
arg1: *mut sqlite3_file, |
| 608 |
flags: ::std::os::raw::c_int, |
| 609 |
) -> ::std::os::raw::c_int, |
| 610 |
>, |
| 611 |
pub xFileSize: ::std::option::Option< |
| 612 |
unsafe extern "C" fn( |
| 613 |
arg1: *mut sqlite3_file, |
| 614 |
pSize: *mut sqlite3_int64, |
| 615 |
) -> ::std::os::raw::c_int, |
| 616 |
>, |
| 617 |
pub xLock: ::std::option::Option< |
| 618 |
unsafe extern "C" fn( |
| 619 |
arg1: *mut sqlite3_file, |
| 620 |
arg2: ::std::os::raw::c_int, |
| 621 |
) -> ::std::os::raw::c_int, |
| 622 |
>, |
| 623 |
pub xUnlock: ::std::option::Option< |
| 624 |
unsafe extern "C" fn( |
| 625 |
arg1: *mut sqlite3_file, |
| 626 |
arg2: ::std::os::raw::c_int, |
| 627 |
) -> ::std::os::raw::c_int, |
| 628 |
>, |
| 629 |
pub xCheckReservedLock: ::std::option::Option< |
| 630 |
unsafe extern "C" fn( |
| 631 |
arg1: *mut sqlite3_file, |
| 632 |
pResOut: *mut ::std::os::raw::c_int, |
| 633 |
) -> ::std::os::raw::c_int, |
| 634 |
>, |
| 635 |
pub xFileControl: ::std::option::Option< |
| 636 |
unsafe extern "C" fn( |
| 637 |
arg1: *mut sqlite3_file, |
| 638 |
op: ::std::os::raw::c_int, |
| 639 |
pArg: *mut ::std::os::raw::c_void, |
| 640 |
) -> ::std::os::raw::c_int, |
| 641 |
>, |
| 642 |
pub xSectorSize: ::std::option::Option< |
| 643 |
unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, |
| 644 |
>, |
| 645 |
pub xDeviceCharacteristics: ::std::option::Option< |
| 646 |
unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, |
| 647 |
>, |
| 648 |
pub xShmMap: ::std::option::Option< |
| 649 |
unsafe extern "C" fn( |
| 650 |
arg1: *mut sqlite3_file, |
| 651 |
iPg: ::std::os::raw::c_int, |
| 652 |
pgsz: ::std::os::raw::c_int, |
| 653 |
arg2: ::std::os::raw::c_int, |
| 654 |
arg3: *mut *mut ::std::os::raw::c_void, |
| 655 |
) -> ::std::os::raw::c_int, |
| 656 |
>, |
| 657 |
pub xShmLock: ::std::option::Option< |
| 658 |
unsafe extern "C" fn( |
| 659 |
arg1: *mut sqlite3_file, |
| 660 |
offset: ::std::os::raw::c_int, |
| 661 |
n: ::std::os::raw::c_int, |
| 662 |
flags: ::std::os::raw::c_int, |
| 663 |
) -> ::std::os::raw::c_int, |
| 664 |
>, |
| 665 |
pub xShmBarrier: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_file)>, |
| 666 |
pub xShmUnmap: ::std::option::Option< |
| 667 |
unsafe extern "C" fn( |
| 668 |
arg1: *mut sqlite3_file, |
| 669 |
deleteFlag: ::std::os::raw::c_int, |
| 670 |
) -> ::std::os::raw::c_int, |
| 671 |
>, |
| 672 |
pub xFetch: ::std::option::Option< |
| 673 |
unsafe extern "C" fn( |
| 674 |
arg1: *mut sqlite3_file, |
| 675 |
iOfst: sqlite3_int64, |
| 676 |
iAmt: ::std::os::raw::c_int, |
| 677 |
pp: *mut *mut ::std::os::raw::c_void, |
| 678 |
) -> ::std::os::raw::c_int, |
| 679 |
>, |
| 680 |
pub xUnfetch: ::std::option::Option< |
| 681 |
unsafe extern "C" fn( |
| 682 |
arg1: *mut sqlite3_file, |
| 683 |
iOfst: sqlite3_int64, |
| 684 |
p: *mut ::std::os::raw::c_void, |
| 685 |
) -> ::std::os::raw::c_int, |
| 686 |
>, |
| 687 |
} |
| 688 |
#[repr(C)] |
| 689 |
#[derive(Debug, Copy, Clone)] |
| 690 |
pub struct sqlite3_mutex { |
| 691 |
_unused: [u8; 0], |
| 692 |
} |
| 693 |
#[repr(C)] |
| 694 |
#[derive(Debug, Copy, Clone)] |
| 695 |
pub struct sqlite3_api_routines { |
| 696 |
_unused: [u8; 0], |
| 697 |
} |
| 698 |
pub type sqlite3_filename = *const ::std::os::raw::c_char; |
| 699 |
pub type sqlite3_syscall_ptr = ::std::option::Option<unsafe extern "C" fn()>; |
| 700 |
#[repr(C)] |
| 701 |
#[derive(Debug, Copy, Clone)] |
| 702 |
pub struct sqlite3_vfs { |
| 703 |
pub iVersion: ::std::os::raw::c_int, |
| 704 |
pub szOsFile: ::std::os::raw::c_int, |
| 705 |
pub mxPathname: ::std::os::raw::c_int, |
| 706 |
pub pNext: *mut sqlite3_vfs, |
| 707 |
pub zName: *const ::std::os::raw::c_char, |
| 708 |
pub pAppData: *mut ::std::os::raw::c_void, |
| 709 |
pub xOpen: ::std::option::Option< |
| 710 |
unsafe extern "C" fn( |
| 711 |
arg1: *mut sqlite3_vfs, |
| 712 |
zName: sqlite3_filename, |
| 713 |
arg2: *mut sqlite3_file, |
| 714 |
flags: ::std::os::raw::c_int, |
| 715 |
pOutFlags: *mut ::std::os::raw::c_int, |
| 716 |
) -> ::std::os::raw::c_int, |
| 717 |
>, |
| 718 |
pub xDelete: ::std::option::Option< |
| 719 |
unsafe extern "C" fn( |
| 720 |
arg1: *mut sqlite3_vfs, |
| 721 |
zName: *const ::std::os::raw::c_char, |
| 722 |
syncDir: ::std::os::raw::c_int, |
| 723 |
) -> ::std::os::raw::c_int, |
| 724 |
>, |
| 725 |
pub xAccess: ::std::option::Option< |
| 726 |
unsafe extern "C" fn( |
| 727 |
arg1: *mut sqlite3_vfs, |
| 728 |
zName: *const ::std::os::raw::c_char, |
| 729 |
flags: ::std::os::raw::c_int, |
| 730 |
pResOut: *mut ::std::os::raw::c_int, |
| 731 |
) -> ::std::os::raw::c_int, |
| 732 |
>, |
| 733 |
pub xFullPathname: ::std::option::Option< |
| 734 |
unsafe extern "C" fn( |
| 735 |
arg1: *mut sqlite3_vfs, |
| 736 |
zName: *const ::std::os::raw::c_char, |
| 737 |
nOut: ::std::os::raw::c_int, |
| 738 |
zOut: *mut ::std::os::raw::c_char, |
| 739 |
) -> ::std::os::raw::c_int, |
| 740 |
>, |
| 741 |
pub xDlOpen: ::std::option::Option< |
| 742 |
unsafe extern "C" fn( |
| 743 |
arg1: *mut sqlite3_vfs, |
| 744 |
zFilename: *const ::std::os::raw::c_char, |
| 745 |
) -> *mut ::std::os::raw::c_void, |
| 746 |
>, |
| 747 |
pub xDlError: ::std::option::Option< |
| 748 |
unsafe extern "C" fn( |
| 749 |
arg1: *mut sqlite3_vfs, |
| 750 |
nByte: ::std::os::raw::c_int, |
| 751 |
zErrMsg: *mut ::std::os::raw::c_char, |
| 752 |
), |
| 753 |
>, |
| 754 |
pub xDlSym: ::std::option::Option< |
| 755 |
unsafe extern "C" fn( |
| 756 |
arg1: *mut sqlite3_vfs, |
| 757 |
arg2: *mut ::std::os::raw::c_void, |
| 758 |
zSymbol: *const ::std::os::raw::c_char, |
| 759 |
) -> ::std::option::Option< |
| 760 |
unsafe extern "C" fn( |
| 761 |
arg1: *mut sqlite3_vfs, |
| 762 |
arg2: *mut ::std::os::raw::c_void, |
| 763 |
zSymbol: *const ::std::os::raw::c_char, |
| 764 |
), |
| 765 |
>, |
| 766 |
>, |
| 767 |
pub xDlClose: ::std::option::Option< |
| 768 |
unsafe extern "C" fn(arg1: *mut sqlite3_vfs, arg2: *mut ::std::os::raw::c_void), |
| 769 |
>, |
| 770 |
pub xRandomness: ::std::option::Option< |
| 771 |
unsafe extern "C" fn( |
| 772 |
arg1: *mut sqlite3_vfs, |
| 773 |
nByte: ::std::os::raw::c_int, |
| 774 |
zOut: *mut ::std::os::raw::c_char, |
| 775 |
) -> ::std::os::raw::c_int, |
| 776 |
>, |
| 777 |
pub xSleep: ::std::option::Option< |
| 778 |
unsafe extern "C" fn( |
| 779 |
arg1: *mut sqlite3_vfs, |
| 780 |
microseconds: ::std::os::raw::c_int, |
| 781 |
) -> ::std::os::raw::c_int, |
| 782 |
>, |
| 783 |
pub xCurrentTime: ::std::option::Option< |
| 784 |
unsafe extern "C" fn(arg1: *mut sqlite3_vfs, arg2: *mut f64) -> ::std::os::raw::c_int, |
| 785 |
>, |
| 786 |
pub xGetLastError: ::std::option::Option< |
| 787 |
unsafe extern "C" fn( |
| 788 |
arg1: *mut sqlite3_vfs, |
| 789 |
arg2: ::std::os::raw::c_int, |
| 790 |
arg3: *mut ::std::os::raw::c_char, |
| 791 |
) -> ::std::os::raw::c_int, |
| 792 |
>, |
| 793 |
pub xCurrentTimeInt64: ::std::option::Option< |
| 794 |
unsafe extern "C" fn( |
| 795 |
arg1: *mut sqlite3_vfs, |
| 796 |
arg2: *mut sqlite3_int64, |
| 797 |
) -> ::std::os::raw::c_int, |
| 798 |
>, |
| 799 |
pub xSetSystemCall: ::std::option::Option< |
| 800 |
unsafe extern "C" fn( |
| 801 |
arg1: *mut sqlite3_vfs, |
| 802 |
zName: *const ::std::os::raw::c_char, |
| 803 |
arg2: sqlite3_syscall_ptr, |
| 804 |
) -> ::std::os::raw::c_int, |
| 805 |
>, |
| 806 |
pub xGetSystemCall: ::std::option::Option< |
| 807 |
unsafe extern "C" fn( |
| 808 |
arg1: *mut sqlite3_vfs, |
| 809 |
zName: *const ::std::os::raw::c_char, |
| 810 |
) -> sqlite3_syscall_ptr, |
| 811 |
>, |
| 812 |
pub xNextSystemCall: ::std::option::Option< |
| 813 |
unsafe extern "C" fn( |
| 814 |
arg1: *mut sqlite3_vfs, |
| 815 |
zName: *const ::std::os::raw::c_char, |
| 816 |
) -> *const ::std::os::raw::c_char, |
| 817 |
>, |
| 818 |
} |
| 819 |
extern "C" { |
| 820 |
pub fn sqlite3_initialize() -> ::std::os::raw::c_int; |
| 821 |
} |
| 822 |
extern "C" { |
| 823 |
pub fn sqlite3_shutdown() -> ::std::os::raw::c_int; |
| 824 |
} |
| 825 |
extern "C" { |
| 826 |
pub fn sqlite3_os_init() -> ::std::os::raw::c_int; |
| 827 |
} |
| 828 |
extern "C" { |
| 829 |
pub fn sqlite3_os_end() -> ::std::os::raw::c_int; |
| 830 |
} |
| 831 |
extern "C" { |
| 832 |
pub fn sqlite3_config(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; |
| 833 |
} |
| 834 |
extern "C" { |
| 835 |
pub fn sqlite3_db_config( |
| 836 |
arg1: *mut sqlite3, |
| 837 |
op: ::std::os::raw::c_int, |
| 838 |
... |
| 839 |
) -> ::std::os::raw::c_int; |
| 840 |
} |
| 841 |
#[repr(C)] |
| 842 |
#[derive(Debug, Copy, Clone)] |
| 843 |
pub struct sqlite3_mem_methods { |
| 844 |
pub xMalloc: ::std::option::Option< |
| 845 |
unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void, |
| 846 |
>, |
| 847 |
pub xFree: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 848 |
pub xRealloc: ::std::option::Option< |
| 849 |
unsafe extern "C" fn( |
| 850 |
arg1: *mut ::std::os::raw::c_void, |
| 851 |
arg2: ::std::os::raw::c_int, |
| 852 |
) -> *mut ::std::os::raw::c_void, |
| 853 |
>, |
| 854 |
pub xSize: ::std::option::Option< |
| 855 |
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 856 |
>, |
| 857 |
pub xRoundup: ::std::option::Option< |
| 858 |
unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int, |
| 859 |
>, |
| 860 |
pub xInit: ::std::option::Option< |
| 861 |
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 862 |
>, |
| 863 |
pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 864 |
pub pAppData: *mut ::std::os::raw::c_void, |
| 865 |
} |
| 866 |
extern "C" { |
| 867 |
pub fn sqlite3_extended_result_codes( |
| 868 |
arg1: *mut sqlite3, |
| 869 |
onoff: ::std::os::raw::c_int, |
| 870 |
) -> ::std::os::raw::c_int; |
| 871 |
} |
| 872 |
extern "C" { |
| 873 |
pub fn sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64; |
| 874 |
} |
| 875 |
extern "C" { |
| 876 |
pub fn sqlite3_set_last_insert_rowid(arg1: *mut sqlite3, arg2: sqlite3_int64); |
| 877 |
} |
| 878 |
extern "C" { |
| 879 |
pub fn sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 880 |
} |
| 881 |
extern "C" { |
| 882 |
pub fn sqlite3_changes64(arg1: *mut sqlite3) -> sqlite3_int64; |
| 883 |
} |
| 884 |
extern "C" { |
| 885 |
pub fn sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 886 |
} |
| 887 |
extern "C" { |
| 888 |
pub fn sqlite3_total_changes64(arg1: *mut sqlite3) -> sqlite3_int64; |
| 889 |
} |
| 890 |
extern "C" { |
| 891 |
pub fn sqlite3_interrupt(arg1: *mut sqlite3); |
| 892 |
} |
| 893 |
extern "C" { |
| 894 |
pub fn sqlite3_is_interrupted(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 895 |
} |
| 896 |
extern "C" { |
| 897 |
pub fn sqlite3_complete(sql: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; |
| 898 |
} |
| 899 |
extern "C" { |
| 900 |
pub fn sqlite3_busy_handler( |
| 901 |
arg1: *mut sqlite3, |
| 902 |
arg2: ::std::option::Option< |
| 903 |
unsafe extern "C" fn( |
| 904 |
arg1: *mut ::std::os::raw::c_void, |
| 905 |
arg2: ::std::os::raw::c_int, |
| 906 |
) -> ::std::os::raw::c_int, |
| 907 |
>, |
| 908 |
arg3: *mut ::std::os::raw::c_void, |
| 909 |
) -> ::std::os::raw::c_int; |
| 910 |
} |
| 911 |
extern "C" { |
| 912 |
pub fn sqlite3_busy_timeout( |
| 913 |
arg1: *mut sqlite3, |
| 914 |
ms: ::std::os::raw::c_int, |
| 915 |
) -> ::std::os::raw::c_int; |
| 916 |
} |
| 917 |
extern "C" { |
| 918 |
pub fn sqlite3_get_table( |
| 919 |
db: *mut sqlite3, |
| 920 |
zSql: *const ::std::os::raw::c_char, |
| 921 |
pazResult: *mut *mut *mut ::std::os::raw::c_char, |
| 922 |
pnRow: *mut ::std::os::raw::c_int, |
| 923 |
pnColumn: *mut ::std::os::raw::c_int, |
| 924 |
pzErrmsg: *mut *mut ::std::os::raw::c_char, |
| 925 |
) -> ::std::os::raw::c_int; |
| 926 |
} |
| 927 |
extern "C" { |
| 928 |
pub fn sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char); |
| 929 |
} |
| 930 |
extern "C" { |
| 931 |
pub fn sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...) |
| 932 |
-> *mut ::std::os::raw::c_char; |
| 933 |
} |
| 934 |
extern "C" { |
| 935 |
pub fn sqlite3_snprintf( |
| 936 |
arg1: ::std::os::raw::c_int, |
| 937 |
arg2: *mut ::std::os::raw::c_char, |
| 938 |
arg3: *const ::std::os::raw::c_char, |
| 939 |
... |
| 940 |
) -> *mut ::std::os::raw::c_char; |
| 941 |
} |
| 942 |
extern "C" { |
| 943 |
pub fn sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void; |
| 944 |
} |
| 945 |
extern "C" { |
| 946 |
pub fn sqlite3_malloc64(arg1: sqlite3_uint64) -> *mut ::std::os::raw::c_void; |
| 947 |
} |
| 948 |
extern "C" { |
| 949 |
pub fn sqlite3_realloc( |
| 950 |
arg1: *mut ::std::os::raw::c_void, |
| 951 |
arg2: ::std::os::raw::c_int, |
| 952 |
) -> *mut ::std::os::raw::c_void; |
| 953 |
} |
| 954 |
extern "C" { |
| 955 |
pub fn sqlite3_realloc64( |
| 956 |
arg1: *mut ::std::os::raw::c_void, |
| 957 |
arg2: sqlite3_uint64, |
| 958 |
) -> *mut ::std::os::raw::c_void; |
| 959 |
} |
| 960 |
extern "C" { |
| 961 |
pub fn sqlite3_free(arg1: *mut ::std::os::raw::c_void); |
| 962 |
} |
| 963 |
extern "C" { |
| 964 |
pub fn sqlite3_msize(arg1: *mut ::std::os::raw::c_void) -> sqlite3_uint64; |
| 965 |
} |
| 966 |
extern "C" { |
| 967 |
pub fn sqlite3_memory_used() -> sqlite3_int64; |
| 968 |
} |
| 969 |
extern "C" { |
| 970 |
pub fn sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int) -> sqlite3_int64; |
| 971 |
} |
| 972 |
extern "C" { |
| 973 |
pub fn sqlite3_randomness(N: ::std::os::raw::c_int, P: *mut ::std::os::raw::c_void); |
| 974 |
} |
| 975 |
extern "C" { |
| 976 |
pub fn sqlite3_set_authorizer( |
| 977 |
arg1: *mut sqlite3, |
| 978 |
xAuth: ::std::option::Option< |
| 979 |
unsafe extern "C" fn( |
| 980 |
arg1: *mut ::std::os::raw::c_void, |
| 981 |
arg2: ::std::os::raw::c_int, |
| 982 |
arg3: *const ::std::os::raw::c_char, |
| 983 |
arg4: *const ::std::os::raw::c_char, |
| 984 |
arg5: *const ::std::os::raw::c_char, |
| 985 |
arg6: *const ::std::os::raw::c_char, |
| 986 |
) -> ::std::os::raw::c_int, |
| 987 |
>, |
| 988 |
pUserData: *mut ::std::os::raw::c_void, |
| 989 |
) -> ::std::os::raw::c_int; |
| 990 |
} |
| 991 |
extern "C" { |
| 992 |
pub fn sqlite3_trace( |
| 993 |
arg1: *mut sqlite3, |
| 994 |
xTrace: ::std::option::Option< |
| 995 |
unsafe extern "C" fn( |
| 996 |
arg1: *mut ::std::os::raw::c_void, |
| 997 |
arg2: *const ::std::os::raw::c_char, |
| 998 |
), |
| 999 |
>, |
| 1000 |
arg2: *mut ::std::os::raw::c_void, |
| 1001 |
) -> *mut ::std::os::raw::c_void; |
| 1002 |
} |
| 1003 |
extern "C" { |
| 1004 |
pub fn sqlite3_profile( |
| 1005 |
arg1: *mut sqlite3, |
| 1006 |
xProfile: ::std::option::Option< |
| 1007 |
unsafe extern "C" fn( |
| 1008 |
arg1: *mut ::std::os::raw::c_void, |
| 1009 |
arg2: *const ::std::os::raw::c_char, |
| 1010 |
arg3: sqlite3_uint64, |
| 1011 |
), |
| 1012 |
>, |
| 1013 |
arg2: *mut ::std::os::raw::c_void, |
| 1014 |
) -> *mut ::std::os::raw::c_void; |
| 1015 |
} |
| 1016 |
extern "C" { |
| 1017 |
pub fn sqlite3_trace_v2( |
| 1018 |
arg1: *mut sqlite3, |
| 1019 |
uMask: ::std::os::raw::c_uint, |
| 1020 |
xCallback: ::std::option::Option< |
| 1021 |
unsafe extern "C" fn( |
| 1022 |
arg1: ::std::os::raw::c_uint, |
| 1023 |
arg2: *mut ::std::os::raw::c_void, |
| 1024 |
arg3: *mut ::std::os::raw::c_void, |
| 1025 |
arg4: *mut ::std::os::raw::c_void, |
| 1026 |
) -> ::std::os::raw::c_int, |
| 1027 |
>, |
| 1028 |
pCtx: *mut ::std::os::raw::c_void, |
| 1029 |
) -> ::std::os::raw::c_int; |
| 1030 |
} |
| 1031 |
extern "C" { |
| 1032 |
pub fn sqlite3_progress_handler( |
| 1033 |
arg1: *mut sqlite3, |
| 1034 |
arg2: ::std::os::raw::c_int, |
| 1035 |
arg3: ::std::option::Option< |
| 1036 |
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 1037 |
>, |
| 1038 |
arg4: *mut ::std::os::raw::c_void, |
| 1039 |
); |
| 1040 |
} |
| 1041 |
extern "C" { |
| 1042 |
pub fn sqlite3_open( |
| 1043 |
filename: *const ::std::os::raw::c_char, |
| 1044 |
ppDb: *mut *mut sqlite3, |
| 1045 |
) -> ::std::os::raw::c_int; |
| 1046 |
} |
| 1047 |
extern "C" { |
| 1048 |
pub fn sqlite3_open_v2( |
| 1049 |
filename: *const ::std::os::raw::c_char, |
| 1050 |
ppDb: *mut *mut sqlite3, |
| 1051 |
flags: ::std::os::raw::c_int, |
| 1052 |
zVfs: *const ::std::os::raw::c_char, |
| 1053 |
) -> ::std::os::raw::c_int; |
| 1054 |
} |
| 1055 |
extern "C" { |
| 1056 |
pub fn sqlite3_uri_parameter( |
| 1057 |
z: sqlite3_filename, |
| 1058 |
zParam: *const ::std::os::raw::c_char, |
| 1059 |
) -> *const ::std::os::raw::c_char; |
| 1060 |
} |
| 1061 |
extern "C" { |
| 1062 |
pub fn sqlite3_uri_boolean( |
| 1063 |
z: sqlite3_filename, |
| 1064 |
zParam: *const ::std::os::raw::c_char, |
| 1065 |
bDefault: ::std::os::raw::c_int, |
| 1066 |
) -> ::std::os::raw::c_int; |
| 1067 |
} |
| 1068 |
extern "C" { |
| 1069 |
pub fn sqlite3_uri_int64( |
| 1070 |
arg1: sqlite3_filename, |
| 1071 |
arg2: *const ::std::os::raw::c_char, |
| 1072 |
arg3: sqlite3_int64, |
| 1073 |
) -> sqlite3_int64; |
| 1074 |
} |
| 1075 |
extern "C" { |
| 1076 |
pub fn sqlite3_uri_key( |
| 1077 |
z: sqlite3_filename, |
| 1078 |
N: ::std::os::raw::c_int, |
| 1079 |
) -> *const ::std::os::raw::c_char; |
| 1080 |
} |
| 1081 |
extern "C" { |
| 1082 |
pub fn sqlite3_filename_database(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char; |
| 1083 |
} |
| 1084 |
extern "C" { |
| 1085 |
pub fn sqlite3_filename_journal(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char; |
| 1086 |
} |
| 1087 |
extern "C" { |
| 1088 |
pub fn sqlite3_filename_wal(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char; |
| 1089 |
} |
| 1090 |
extern "C" { |
| 1091 |
pub fn sqlite3_database_file_object(arg1: *const ::std::os::raw::c_char) -> *mut sqlite3_file; |
| 1092 |
} |
| 1093 |
extern "C" { |
| 1094 |
pub fn sqlite3_create_filename( |
| 1095 |
zDatabase: *const ::std::os::raw::c_char, |
| 1096 |
zJournal: *const ::std::os::raw::c_char, |
| 1097 |
zWal: *const ::std::os::raw::c_char, |
| 1098 |
nParam: ::std::os::raw::c_int, |
| 1099 |
azParam: *mut *const ::std::os::raw::c_char, |
| 1100 |
) -> sqlite3_filename; |
| 1101 |
} |
| 1102 |
extern "C" { |
| 1103 |
pub fn sqlite3_free_filename(arg1: sqlite3_filename); |
| 1104 |
} |
| 1105 |
extern "C" { |
| 1106 |
pub fn sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; |
| 1107 |
} |
| 1108 |
extern "C" { |
| 1109 |
pub fn sqlite3_extended_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; |
| 1110 |
} |
| 1111 |
extern "C" { |
| 1112 |
pub fn sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::std::os::raw::c_char; |
| 1113 |
} |
| 1114 |
extern "C" { |
| 1115 |
pub fn sqlite3_errstr(arg1: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; |
| 1116 |
} |
| 1117 |
extern "C" { |
| 1118 |
pub fn sqlite3_error_offset(db: *mut sqlite3) -> ::std::os::raw::c_int; |
| 1119 |
} |
| 1120 |
#[repr(C)] |
| 1121 |
#[derive(Debug, Copy, Clone)] |
| 1122 |
pub struct sqlite3_stmt { |
| 1123 |
_unused: [u8; 0], |
| 1124 |
} |
| 1125 |
extern "C" { |
| 1126 |
pub fn sqlite3_limit( |
| 1127 |
arg1: *mut sqlite3, |
| 1128 |
id: ::std::os::raw::c_int, |
| 1129 |
newVal: ::std::os::raw::c_int, |
| 1130 |
) -> ::std::os::raw::c_int; |
| 1131 |
} |
| 1132 |
extern "C" { |
| 1133 |
pub fn sqlite3_prepare_v2( |
| 1134 |
db: *mut sqlite3, |
| 1135 |
zSql: *const ::std::os::raw::c_char, |
| 1136 |
nByte: ::std::os::raw::c_int, |
| 1137 |
ppStmt: *mut *mut sqlite3_stmt, |
| 1138 |
pzTail: *mut *const ::std::os::raw::c_char, |
| 1139 |
) -> ::std::os::raw::c_int; |
| 1140 |
} |
| 1141 |
extern "C" { |
| 1142 |
pub fn sqlite3_prepare_v3( |
| 1143 |
db: *mut sqlite3, |
| 1144 |
zSql: *const ::std::os::raw::c_char, |
| 1145 |
nByte: ::std::os::raw::c_int, |
| 1146 |
prepFlags: ::std::os::raw::c_uint, |
| 1147 |
ppStmt: *mut *mut sqlite3_stmt, |
| 1148 |
pzTail: *mut *const ::std::os::raw::c_char, |
| 1149 |
) -> ::std::os::raw::c_int; |
| 1150 |
} |
| 1151 |
extern "C" { |
| 1152 |
pub fn sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char; |
| 1153 |
} |
| 1154 |
extern "C" { |
| 1155 |
pub fn sqlite3_expanded_sql(pStmt: *mut sqlite3_stmt) -> *mut ::std::os::raw::c_char; |
| 1156 |
} |
| 1157 |
extern "C" { |
| 1158 |
pub fn sqlite3_stmt_readonly(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1159 |
} |
| 1160 |
extern "C" { |
| 1161 |
pub fn sqlite3_stmt_isexplain(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1162 |
} |
| 1163 |
extern "C" { |
| 1164 |
pub fn sqlite3_stmt_explain( |
| 1165 |
pStmt: *mut sqlite3_stmt, |
| 1166 |
eMode: ::std::os::raw::c_int, |
| 1167 |
) -> ::std::os::raw::c_int; |
| 1168 |
} |
| 1169 |
extern "C" { |
| 1170 |
pub fn sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1171 |
} |
| 1172 |
#[repr(C)] |
| 1173 |
#[derive(Debug, Copy, Clone)] |
| 1174 |
pub struct sqlite3_value { |
| 1175 |
_unused: [u8; 0], |
| 1176 |
} |
| 1177 |
#[repr(C)] |
| 1178 |
#[derive(Debug, Copy, Clone)] |
| 1179 |
pub struct sqlite3_context { |
| 1180 |
_unused: [u8; 0], |
| 1181 |
} |
| 1182 |
extern "C" { |
| 1183 |
pub fn sqlite3_bind_blob( |
| 1184 |
arg1: *mut sqlite3_stmt, |
| 1185 |
arg2: ::std::os::raw::c_int, |
| 1186 |
arg3: *const ::std::os::raw::c_void, |
| 1187 |
n: ::std::os::raw::c_int, |
| 1188 |
arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1189 |
) -> ::std::os::raw::c_int; |
| 1190 |
} |
| 1191 |
extern "C" { |
| 1192 |
pub fn sqlite3_bind_blob64( |
| 1193 |
arg1: *mut sqlite3_stmt, |
| 1194 |
arg2: ::std::os::raw::c_int, |
| 1195 |
arg3: *const ::std::os::raw::c_void, |
| 1196 |
arg4: sqlite3_uint64, |
| 1197 |
arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1198 |
) -> ::std::os::raw::c_int; |
| 1199 |
} |
| 1200 |
extern "C" { |
| 1201 |
pub fn sqlite3_bind_double( |
| 1202 |
arg1: *mut sqlite3_stmt, |
| 1203 |
arg2: ::std::os::raw::c_int, |
| 1204 |
arg3: f64, |
| 1205 |
) -> ::std::os::raw::c_int; |
| 1206 |
} |
| 1207 |
extern "C" { |
| 1208 |
pub fn sqlite3_bind_int( |
| 1209 |
arg1: *mut sqlite3_stmt, |
| 1210 |
arg2: ::std::os::raw::c_int, |
| 1211 |
arg3: ::std::os::raw::c_int, |
| 1212 |
) -> ::std::os::raw::c_int; |
| 1213 |
} |
| 1214 |
extern "C" { |
| 1215 |
pub fn sqlite3_bind_int64( |
| 1216 |
arg1: *mut sqlite3_stmt, |
| 1217 |
arg2: ::std::os::raw::c_int, |
| 1218 |
arg3: sqlite3_int64, |
| 1219 |
) -> ::std::os::raw::c_int; |
| 1220 |
} |
| 1221 |
extern "C" { |
| 1222 |
pub fn sqlite3_bind_null( |
| 1223 |
arg1: *mut sqlite3_stmt, |
| 1224 |
arg2: ::std::os::raw::c_int, |
| 1225 |
) -> ::std::os::raw::c_int; |
| 1226 |
} |
| 1227 |
extern "C" { |
| 1228 |
pub fn sqlite3_bind_text( |
| 1229 |
arg1: *mut sqlite3_stmt, |
| 1230 |
arg2: ::std::os::raw::c_int, |
| 1231 |
arg3: *const ::std::os::raw::c_char, |
| 1232 |
arg4: ::std::os::raw::c_int, |
| 1233 |
arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1234 |
) -> ::std::os::raw::c_int; |
| 1235 |
} |
| 1236 |
extern "C" { |
| 1237 |
pub fn sqlite3_bind_text64( |
| 1238 |
arg1: *mut sqlite3_stmt, |
| 1239 |
arg2: ::std::os::raw::c_int, |
| 1240 |
arg3: *const ::std::os::raw::c_char, |
| 1241 |
arg4: sqlite3_uint64, |
| 1242 |
arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1243 |
encoding: ::std::os::raw::c_uchar, |
| 1244 |
) -> ::std::os::raw::c_int; |
| 1245 |
} |
| 1246 |
extern "C" { |
| 1247 |
pub fn sqlite3_bind_value( |
| 1248 |
arg1: *mut sqlite3_stmt, |
| 1249 |
arg2: ::std::os::raw::c_int, |
| 1250 |
arg3: *const sqlite3_value, |
| 1251 |
) -> ::std::os::raw::c_int; |
| 1252 |
} |
| 1253 |
extern "C" { |
| 1254 |
pub fn sqlite3_bind_pointer( |
| 1255 |
arg1: *mut sqlite3_stmt, |
| 1256 |
arg2: ::std::os::raw::c_int, |
| 1257 |
arg3: *mut ::std::os::raw::c_void, |
| 1258 |
arg4: *const ::std::os::raw::c_char, |
| 1259 |
arg5: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1260 |
) -> ::std::os::raw::c_int; |
| 1261 |
} |
| 1262 |
extern "C" { |
| 1263 |
pub fn sqlite3_bind_zeroblob( |
| 1264 |
arg1: *mut sqlite3_stmt, |
| 1265 |
arg2: ::std::os::raw::c_int, |
| 1266 |
n: ::std::os::raw::c_int, |
| 1267 |
) -> ::std::os::raw::c_int; |
| 1268 |
} |
| 1269 |
extern "C" { |
| 1270 |
pub fn sqlite3_bind_zeroblob64( |
| 1271 |
arg1: *mut sqlite3_stmt, |
| 1272 |
arg2: ::std::os::raw::c_int, |
| 1273 |
arg3: sqlite3_uint64, |
| 1274 |
) -> ::std::os::raw::c_int; |
| 1275 |
} |
| 1276 |
extern "C" { |
| 1277 |
pub fn sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1278 |
} |
| 1279 |
extern "C" { |
| 1280 |
pub fn sqlite3_bind_parameter_name( |
| 1281 |
arg1: *mut sqlite3_stmt, |
| 1282 |
arg2: ::std::os::raw::c_int, |
| 1283 |
) -> *const ::std::os::raw::c_char; |
| 1284 |
} |
| 1285 |
extern "C" { |
| 1286 |
pub fn sqlite3_bind_parameter_index( |
| 1287 |
arg1: *mut sqlite3_stmt, |
| 1288 |
zName: *const ::std::os::raw::c_char, |
| 1289 |
) -> ::std::os::raw::c_int; |
| 1290 |
} |
| 1291 |
extern "C" { |
| 1292 |
pub fn sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1293 |
} |
| 1294 |
extern "C" { |
| 1295 |
pub fn sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1296 |
} |
| 1297 |
extern "C" { |
| 1298 |
pub fn sqlite3_column_name( |
| 1299 |
arg1: *mut sqlite3_stmt, |
| 1300 |
N: ::std::os::raw::c_int, |
| 1301 |
) -> *const ::std::os::raw::c_char; |
| 1302 |
} |
| 1303 |
extern "C" { |
| 1304 |
pub fn sqlite3_column_database_name( |
| 1305 |
arg1: *mut sqlite3_stmt, |
| 1306 |
arg2: ::std::os::raw::c_int, |
| 1307 |
) -> *const ::std::os::raw::c_char; |
| 1308 |
} |
| 1309 |
extern "C" { |
| 1310 |
pub fn sqlite3_column_table_name( |
| 1311 |
arg1: *mut sqlite3_stmt, |
| 1312 |
arg2: ::std::os::raw::c_int, |
| 1313 |
) -> *const ::std::os::raw::c_char; |
| 1314 |
} |
| 1315 |
extern "C" { |
| 1316 |
pub fn sqlite3_column_origin_name( |
| 1317 |
arg1: *mut sqlite3_stmt, |
| 1318 |
arg2: ::std::os::raw::c_int, |
| 1319 |
) -> *const ::std::os::raw::c_char; |
| 1320 |
} |
| 1321 |
extern "C" { |
| 1322 |
pub fn sqlite3_column_decltype( |
| 1323 |
arg1: *mut sqlite3_stmt, |
| 1324 |
arg2: ::std::os::raw::c_int, |
| 1325 |
) -> *const ::std::os::raw::c_char; |
| 1326 |
} |
| 1327 |
extern "C" { |
| 1328 |
pub fn sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1329 |
} |
| 1330 |
extern "C" { |
| 1331 |
pub fn sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1332 |
} |
| 1333 |
extern "C" { |
| 1334 |
pub fn sqlite3_column_blob( |
| 1335 |
arg1: *mut sqlite3_stmt, |
| 1336 |
iCol: ::std::os::raw::c_int, |
| 1337 |
) -> *const ::std::os::raw::c_void; |
| 1338 |
} |
| 1339 |
extern "C" { |
| 1340 |
pub fn sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> f64; |
| 1341 |
} |
| 1342 |
extern "C" { |
| 1343 |
pub fn sqlite3_column_int( |
| 1344 |
arg1: *mut sqlite3_stmt, |
| 1345 |
iCol: ::std::os::raw::c_int, |
| 1346 |
) -> ::std::os::raw::c_int; |
| 1347 |
} |
| 1348 |
extern "C" { |
| 1349 |
pub fn sqlite3_column_int64( |
| 1350 |
arg1: *mut sqlite3_stmt, |
| 1351 |
iCol: ::std::os::raw::c_int, |
| 1352 |
) -> sqlite3_int64; |
| 1353 |
} |
| 1354 |
extern "C" { |
| 1355 |
pub fn sqlite3_column_text( |
| 1356 |
arg1: *mut sqlite3_stmt, |
| 1357 |
iCol: ::std::os::raw::c_int, |
| 1358 |
) -> *const ::std::os::raw::c_uchar; |
| 1359 |
} |
| 1360 |
extern "C" { |
| 1361 |
pub fn sqlite3_column_value( |
| 1362 |
arg1: *mut sqlite3_stmt, |
| 1363 |
iCol: ::std::os::raw::c_int, |
| 1364 |
) -> *mut sqlite3_value; |
| 1365 |
} |
| 1366 |
extern "C" { |
| 1367 |
pub fn sqlite3_column_bytes( |
| 1368 |
arg1: *mut sqlite3_stmt, |
| 1369 |
iCol: ::std::os::raw::c_int, |
| 1370 |
) -> ::std::os::raw::c_int; |
| 1371 |
} |
| 1372 |
extern "C" { |
| 1373 |
pub fn sqlite3_column_type( |
| 1374 |
arg1: *mut sqlite3_stmt, |
| 1375 |
iCol: ::std::os::raw::c_int, |
| 1376 |
) -> ::std::os::raw::c_int; |
| 1377 |
} |
| 1378 |
extern "C" { |
| 1379 |
pub fn sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1380 |
} |
| 1381 |
extern "C" { |
| 1382 |
pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1383 |
} |
| 1384 |
extern "C" { |
| 1385 |
pub fn sqlite3_create_function_v2( |
| 1386 |
db: *mut sqlite3, |
| 1387 |
zFunctionName: *const ::std::os::raw::c_char, |
| 1388 |
nArg: ::std::os::raw::c_int, |
| 1389 |
eTextRep: ::std::os::raw::c_int, |
| 1390 |
pApp: *mut ::std::os::raw::c_void, |
| 1391 |
xFunc: ::std::option::Option< |
| 1392 |
unsafe extern "C" fn( |
| 1393 |
arg1: *mut sqlite3_context, |
| 1394 |
arg2: ::std::os::raw::c_int, |
| 1395 |
arg3: *mut *mut sqlite3_value, |
| 1396 |
), |
| 1397 |
>, |
| 1398 |
xStep: ::std::option::Option< |
| 1399 |
unsafe extern "C" fn( |
| 1400 |
arg1: *mut sqlite3_context, |
| 1401 |
arg2: ::std::os::raw::c_int, |
| 1402 |
arg3: *mut *mut sqlite3_value, |
| 1403 |
), |
| 1404 |
>, |
| 1405 |
xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, |
| 1406 |
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1407 |
) -> ::std::os::raw::c_int; |
| 1408 |
} |
| 1409 |
extern "C" { |
| 1410 |
pub fn sqlite3_create_window_function( |
| 1411 |
db: *mut sqlite3, |
| 1412 |
zFunctionName: *const ::std::os::raw::c_char, |
| 1413 |
nArg: ::std::os::raw::c_int, |
| 1414 |
eTextRep: ::std::os::raw::c_int, |
| 1415 |
pApp: *mut ::std::os::raw::c_void, |
| 1416 |
xStep: ::std::option::Option< |
| 1417 |
unsafe extern "C" fn( |
| 1418 |
arg1: *mut sqlite3_context, |
| 1419 |
arg2: ::std::os::raw::c_int, |
| 1420 |
arg3: *mut *mut sqlite3_value, |
| 1421 |
), |
| 1422 |
>, |
| 1423 |
xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, |
| 1424 |
xValue: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>, |
| 1425 |
xInverse: ::std::option::Option< |
| 1426 |
unsafe extern "C" fn( |
| 1427 |
arg1: *mut sqlite3_context, |
| 1428 |
arg2: ::std::os::raw::c_int, |
| 1429 |
arg3: *mut *mut sqlite3_value, |
| 1430 |
), |
| 1431 |
>, |
| 1432 |
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1433 |
) -> ::std::os::raw::c_int; |
| 1434 |
} |
| 1435 |
extern "C" { |
| 1436 |
pub fn sqlite3_aggregate_count(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int; |
| 1437 |
} |
| 1438 |
extern "C" { |
| 1439 |
pub fn sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; |
| 1440 |
} |
| 1441 |
extern "C" { |
| 1442 |
pub fn sqlite3_transfer_bindings( |
| 1443 |
arg1: *mut sqlite3_stmt, |
| 1444 |
arg2: *mut sqlite3_stmt, |
| 1445 |
) -> ::std::os::raw::c_int; |
| 1446 |
} |
| 1447 |
extern "C" { |
| 1448 |
pub fn sqlite3_global_recover() -> ::std::os::raw::c_int; |
| 1449 |
} |
| 1450 |
extern "C" { |
| 1451 |
pub fn sqlite3_thread_cleanup(); |
| 1452 |
} |
| 1453 |
extern "C" { |
| 1454 |
pub fn sqlite3_memory_alarm( |
| 1455 |
arg1: ::std::option::Option< |
| 1456 |
unsafe extern "C" fn( |
| 1457 |
arg1: *mut ::std::os::raw::c_void, |
| 1458 |
arg2: sqlite3_int64, |
| 1459 |
arg3: ::std::os::raw::c_int, |
| 1460 |
), |
| 1461 |
>, |
| 1462 |
arg2: *mut ::std::os::raw::c_void, |
| 1463 |
arg3: sqlite3_int64, |
| 1464 |
) -> ::std::os::raw::c_int; |
| 1465 |
} |
| 1466 |
extern "C" { |
| 1467 |
pub fn sqlite3_value_blob(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; |
| 1468 |
} |
| 1469 |
extern "C" { |
| 1470 |
pub fn sqlite3_value_double(arg1: *mut sqlite3_value) -> f64; |
| 1471 |
} |
| 1472 |
extern "C" { |
| 1473 |
pub fn sqlite3_value_int(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 1474 |
} |
| 1475 |
extern "C" { |
| 1476 |
pub fn sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int64; |
| 1477 |
} |
| 1478 |
extern "C" { |
| 1479 |
pub fn sqlite3_value_pointer( |
| 1480 |
arg1: *mut sqlite3_value, |
| 1481 |
arg2: *const ::std::os::raw::c_char, |
| 1482 |
) -> *mut ::std::os::raw::c_void; |
| 1483 |
} |
| 1484 |
extern "C" { |
| 1485 |
pub fn sqlite3_value_text(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_uchar; |
| 1486 |
} |
| 1487 |
extern "C" { |
| 1488 |
pub fn sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 1489 |
} |
| 1490 |
extern "C" { |
| 1491 |
pub fn sqlite3_value_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 1492 |
} |
| 1493 |
extern "C" { |
| 1494 |
pub fn sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 1495 |
} |
| 1496 |
extern "C" { |
| 1497 |
pub fn sqlite3_value_nochange(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 1498 |
} |
| 1499 |
extern "C" { |
| 1500 |
pub fn sqlite3_value_frombind(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 1501 |
} |
| 1502 |
extern "C" { |
| 1503 |
pub fn sqlite3_value_encoding(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; |
| 1504 |
} |
| 1505 |
extern "C" { |
| 1506 |
pub fn sqlite3_value_subtype(arg1: *mut sqlite3_value) -> ::std::os::raw::c_uint; |
| 1507 |
} |
| 1508 |
extern "C" { |
| 1509 |
pub fn sqlite3_value_dup(arg1: *const sqlite3_value) -> *mut sqlite3_value; |
| 1510 |
} |
| 1511 |
extern "C" { |
| 1512 |
pub fn sqlite3_value_free(arg1: *mut sqlite3_value); |
| 1513 |
} |
| 1514 |
extern "C" { |
| 1515 |
pub fn sqlite3_aggregate_context( |
| 1516 |
arg1: *mut sqlite3_context, |
| 1517 |
nBytes: ::std::os::raw::c_int, |
| 1518 |
) -> *mut ::std::os::raw::c_void; |
| 1519 |
} |
| 1520 |
extern "C" { |
| 1521 |
pub fn sqlite3_user_data(arg1: *mut sqlite3_context) -> *mut ::std::os::raw::c_void; |
| 1522 |
} |
| 1523 |
extern "C" { |
| 1524 |
pub fn sqlite3_context_db_handle(arg1: *mut sqlite3_context) -> *mut sqlite3; |
| 1525 |
} |
| 1526 |
extern "C" { |
| 1527 |
pub fn sqlite3_get_auxdata( |
| 1528 |
arg1: *mut sqlite3_context, |
| 1529 |
N: ::std::os::raw::c_int, |
| 1530 |
) -> *mut ::std::os::raw::c_void; |
| 1531 |
} |
| 1532 |
extern "C" { |
| 1533 |
pub fn sqlite3_set_auxdata( |
| 1534 |
arg1: *mut sqlite3_context, |
| 1535 |
N: ::std::os::raw::c_int, |
| 1536 |
arg2: *mut ::std::os::raw::c_void, |
| 1537 |
arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1538 |
); |
| 1539 |
} |
| 1540 |
extern "C" { |
| 1541 |
pub fn sqlite3_get_clientdata( |
| 1542 |
arg1: *mut sqlite3, |
| 1543 |
arg2: *const ::std::os::raw::c_char, |
| 1544 |
) -> *mut ::std::os::raw::c_void; |
| 1545 |
} |
| 1546 |
extern "C" { |
| 1547 |
pub fn sqlite3_set_clientdata( |
| 1548 |
arg1: *mut sqlite3, |
| 1549 |
arg2: *const ::std::os::raw::c_char, |
| 1550 |
arg3: *mut ::std::os::raw::c_void, |
| 1551 |
arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1552 |
) -> ::std::os::raw::c_int; |
| 1553 |
} |
| 1554 |
pub type sqlite3_destructor_type = |
| 1555 |
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>; |
| 1556 |
extern "C" { |
| 1557 |
pub fn sqlite3_result_blob( |
| 1558 |
arg1: *mut sqlite3_context, |
| 1559 |
arg2: *const ::std::os::raw::c_void, |
| 1560 |
arg3: ::std::os::raw::c_int, |
| 1561 |
arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1562 |
); |
| 1563 |
} |
| 1564 |
extern "C" { |
| 1565 |
pub fn sqlite3_result_blob64( |
| 1566 |
arg1: *mut sqlite3_context, |
| 1567 |
arg2: *const ::std::os::raw::c_void, |
| 1568 |
arg3: sqlite3_uint64, |
| 1569 |
arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1570 |
); |
| 1571 |
} |
| 1572 |
extern "C" { |
| 1573 |
pub fn sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64); |
| 1574 |
} |
| 1575 |
extern "C" { |
| 1576 |
pub fn sqlite3_result_error( |
| 1577 |
arg1: *mut sqlite3_context, |
| 1578 |
arg2: *const ::std::os::raw::c_char, |
| 1579 |
arg3: ::std::os::raw::c_int, |
| 1580 |
); |
| 1581 |
} |
| 1582 |
extern "C" { |
| 1583 |
pub fn sqlite3_result_error_toobig(arg1: *mut sqlite3_context); |
| 1584 |
} |
| 1585 |
extern "C" { |
| 1586 |
pub fn sqlite3_result_error_nomem(arg1: *mut sqlite3_context); |
| 1587 |
} |
| 1588 |
extern "C" { |
| 1589 |
pub fn sqlite3_result_error_code(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int); |
| 1590 |
} |
| 1591 |
extern "C" { |
| 1592 |
pub fn sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int); |
| 1593 |
} |
| 1594 |
extern "C" { |
| 1595 |
pub fn sqlite3_result_int64(arg1: *mut sqlite3_context, arg2: sqlite3_int64); |
| 1596 |
} |
| 1597 |
extern "C" { |
| 1598 |
pub fn sqlite3_result_null(arg1: *mut sqlite3_context); |
| 1599 |
} |
| 1600 |
extern "C" { |
| 1601 |
pub fn sqlite3_result_text( |
| 1602 |
arg1: *mut sqlite3_context, |
| 1603 |
arg2: *const ::std::os::raw::c_char, |
| 1604 |
arg3: ::std::os::raw::c_int, |
| 1605 |
arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1606 |
); |
| 1607 |
} |
| 1608 |
extern "C" { |
| 1609 |
pub fn sqlite3_result_text64( |
| 1610 |
arg1: *mut sqlite3_context, |
| 1611 |
arg2: *const ::std::os::raw::c_char, |
| 1612 |
arg3: sqlite3_uint64, |
| 1613 |
arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1614 |
encoding: ::std::os::raw::c_uchar, |
| 1615 |
); |
| 1616 |
} |
| 1617 |
extern "C" { |
| 1618 |
pub fn sqlite3_result_value(arg1: *mut sqlite3_context, arg2: *mut sqlite3_value); |
| 1619 |
} |
| 1620 |
extern "C" { |
| 1621 |
pub fn sqlite3_result_pointer( |
| 1622 |
arg1: *mut sqlite3_context, |
| 1623 |
arg2: *mut ::std::os::raw::c_void, |
| 1624 |
arg3: *const ::std::os::raw::c_char, |
| 1625 |
arg4: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1626 |
); |
| 1627 |
} |
| 1628 |
extern "C" { |
| 1629 |
pub fn sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int); |
| 1630 |
} |
| 1631 |
extern "C" { |
| 1632 |
pub fn sqlite3_result_zeroblob64( |
| 1633 |
arg1: *mut sqlite3_context, |
| 1634 |
n: sqlite3_uint64, |
| 1635 |
) -> ::std::os::raw::c_int; |
| 1636 |
} |
| 1637 |
extern "C" { |
| 1638 |
pub fn sqlite3_result_subtype(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_uint); |
| 1639 |
} |
| 1640 |
extern "C" { |
| 1641 |
pub fn sqlite3_create_collation_v2( |
| 1642 |
arg1: *mut sqlite3, |
| 1643 |
zName: *const ::std::os::raw::c_char, |
| 1644 |
eTextRep: ::std::os::raw::c_int, |
| 1645 |
pArg: *mut ::std::os::raw::c_void, |
| 1646 |
xCompare: ::std::option::Option< |
| 1647 |
unsafe extern "C" fn( |
| 1648 |
arg1: *mut ::std::os::raw::c_void, |
| 1649 |
arg2: ::std::os::raw::c_int, |
| 1650 |
arg3: *const ::std::os::raw::c_void, |
| 1651 |
arg4: ::std::os::raw::c_int, |
| 1652 |
arg5: *const ::std::os::raw::c_void, |
| 1653 |
) -> ::std::os::raw::c_int, |
| 1654 |
>, |
| 1655 |
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1656 |
) -> ::std::os::raw::c_int; |
| 1657 |
} |
| 1658 |
extern "C" { |
| 1659 |
pub fn sqlite3_collation_needed( |
| 1660 |
arg1: *mut sqlite3, |
| 1661 |
arg2: *mut ::std::os::raw::c_void, |
| 1662 |
arg3: ::std::option::Option< |
| 1663 |
unsafe extern "C" fn( |
| 1664 |
arg1: *mut ::std::os::raw::c_void, |
| 1665 |
arg2: *mut sqlite3, |
| 1666 |
eTextRep: ::std::os::raw::c_int, |
| 1667 |
arg3: *const ::std::os::raw::c_char, |
| 1668 |
), |
| 1669 |
>, |
| 1670 |
) -> ::std::os::raw::c_int; |
| 1671 |
} |
| 1672 |
extern "C" { |
| 1673 |
pub fn sqlite3_key( |
| 1674 |
db: *mut sqlite3, |
| 1675 |
pKey: *const ::std::os::raw::c_void, |
| 1676 |
nKey: ::std::os::raw::c_int, |
| 1677 |
) -> ::std::os::raw::c_int; |
| 1678 |
} |
| 1679 |
extern "C" { |
| 1680 |
pub fn sqlite3_key_v2( |
| 1681 |
db: *mut sqlite3, |
| 1682 |
zDbName: *const ::std::os::raw::c_char, |
| 1683 |
pKey: *const ::std::os::raw::c_void, |
| 1684 |
nKey: ::std::os::raw::c_int, |
| 1685 |
) -> ::std::os::raw::c_int; |
| 1686 |
} |
| 1687 |
extern "C" { |
| 1688 |
pub fn sqlite3_rekey( |
| 1689 |
db: *mut sqlite3, |
| 1690 |
pKey: *const ::std::os::raw::c_void, |
| 1691 |
nKey: ::std::os::raw::c_int, |
| 1692 |
) -> ::std::os::raw::c_int; |
| 1693 |
} |
| 1694 |
extern "C" { |
| 1695 |
pub fn sqlite3_rekey_v2( |
| 1696 |
db: *mut sqlite3, |
| 1697 |
zDbName: *const ::std::os::raw::c_char, |
| 1698 |
pKey: *const ::std::os::raw::c_void, |
| 1699 |
nKey: ::std::os::raw::c_int, |
| 1700 |
) -> ::std::os::raw::c_int; |
| 1701 |
} |
| 1702 |
extern "C" { |
| 1703 |
pub fn sqlite3_activate_see(zPassPhrase: *const ::std::os::raw::c_char); |
| 1704 |
} |
| 1705 |
extern "C" { |
| 1706 |
pub fn sqlite3_sleep(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; |
| 1707 |
} |
| 1708 |
extern "C" { |
| 1709 |
pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char; |
| 1710 |
} |
| 1711 |
extern "C" { |
| 1712 |
pub static mut sqlite3_data_directory: *mut ::std::os::raw::c_char; |
| 1713 |
} |
| 1714 |
extern "C" { |
| 1715 |
pub fn sqlite3_win32_set_directory( |
| 1716 |
type_: ::std::os::raw::c_ulong, |
| 1717 |
zValue: *mut ::std::os::raw::c_void, |
| 1718 |
) -> ::std::os::raw::c_int; |
| 1719 |
} |
| 1720 |
extern "C" { |
| 1721 |
pub fn sqlite3_win32_set_directory8( |
| 1722 |
type_: ::std::os::raw::c_ulong, |
| 1723 |
zValue: *const ::std::os::raw::c_char, |
| 1724 |
) -> ::std::os::raw::c_int; |
| 1725 |
} |
| 1726 |
extern "C" { |
| 1727 |
pub fn sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 1728 |
} |
| 1729 |
extern "C" { |
| 1730 |
pub fn sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite3; |
| 1731 |
} |
| 1732 |
extern "C" { |
| 1733 |
pub fn sqlite3_db_name( |
| 1734 |
db: *mut sqlite3, |
| 1735 |
N: ::std::os::raw::c_int, |
| 1736 |
) -> *const ::std::os::raw::c_char; |
| 1737 |
} |
| 1738 |
extern "C" { |
| 1739 |
pub fn sqlite3_db_filename( |
| 1740 |
db: *mut sqlite3, |
| 1741 |
zDbName: *const ::std::os::raw::c_char, |
| 1742 |
) -> sqlite3_filename; |
| 1743 |
} |
| 1744 |
extern "C" { |
| 1745 |
pub fn sqlite3_db_readonly( |
| 1746 |
db: *mut sqlite3, |
| 1747 |
zDbName: *const ::std::os::raw::c_char, |
| 1748 |
) -> ::std::os::raw::c_int; |
| 1749 |
} |
| 1750 |
extern "C" { |
| 1751 |
pub fn sqlite3_txn_state( |
| 1752 |
arg1: *mut sqlite3, |
| 1753 |
zSchema: *const ::std::os::raw::c_char, |
| 1754 |
) -> ::std::os::raw::c_int; |
| 1755 |
} |
| 1756 |
extern "C" { |
| 1757 |
pub fn sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt; |
| 1758 |
} |
| 1759 |
extern "C" { |
| 1760 |
pub fn sqlite3_commit_hook( |
| 1761 |
arg1: *mut sqlite3, |
| 1762 |
arg2: ::std::option::Option< |
| 1763 |
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 1764 |
>, |
| 1765 |
arg3: *mut ::std::os::raw::c_void, |
| 1766 |
) -> *mut ::std::os::raw::c_void; |
| 1767 |
} |
| 1768 |
extern "C" { |
| 1769 |
pub fn sqlite3_rollback_hook( |
| 1770 |
arg1: *mut sqlite3, |
| 1771 |
arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1772 |
arg3: *mut ::std::os::raw::c_void, |
| 1773 |
) -> *mut ::std::os::raw::c_void; |
| 1774 |
} |
| 1775 |
extern "C" { |
| 1776 |
pub fn sqlite3_autovacuum_pages( |
| 1777 |
db: *mut sqlite3, |
| 1778 |
arg1: ::std::option::Option< |
| 1779 |
unsafe extern "C" fn( |
| 1780 |
arg1: *mut ::std::os::raw::c_void, |
| 1781 |
arg2: *const ::std::os::raw::c_char, |
| 1782 |
arg3: ::std::os::raw::c_uint, |
| 1783 |
arg4: ::std::os::raw::c_uint, |
| 1784 |
arg5: ::std::os::raw::c_uint, |
| 1785 |
) -> ::std::os::raw::c_uint, |
| 1786 |
>, |
| 1787 |
arg2: *mut ::std::os::raw::c_void, |
| 1788 |
arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 1789 |
) -> ::std::os::raw::c_int; |
| 1790 |
} |
| 1791 |
extern "C" { |
| 1792 |
pub fn sqlite3_update_hook( |
| 1793 |
arg1: *mut sqlite3, |
| 1794 |
arg2: ::std::option::Option< |
| 1795 |
unsafe extern "C" fn( |
| 1796 |
arg1: *mut ::std::os::raw::c_void, |
| 1797 |
arg2: ::std::os::raw::c_int, |
| 1798 |
arg3: *const ::std::os::raw::c_char, |
| 1799 |
arg4: *const ::std::os::raw::c_char, |
| 1800 |
arg5: sqlite3_int64, |
| 1801 |
), |
| 1802 |
>, |
| 1803 |
arg3: *mut ::std::os::raw::c_void, |
| 1804 |
) -> *mut ::std::os::raw::c_void; |
| 1805 |
} |
| 1806 |
extern "C" { |
| 1807 |
pub fn sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; |
| 1808 |
} |
| 1809 |
extern "C" { |
| 1810 |
pub fn sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; |
| 1811 |
} |
| 1812 |
extern "C" { |
| 1813 |
pub fn sqlite3_db_release_memory(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 1814 |
} |
| 1815 |
extern "C" { |
| 1816 |
pub fn sqlite3_soft_heap_limit64(N: sqlite3_int64) -> sqlite3_int64; |
| 1817 |
} |
| 1818 |
extern "C" { |
| 1819 |
pub fn sqlite3_hard_heap_limit64(N: sqlite3_int64) -> sqlite3_int64; |
| 1820 |
} |
| 1821 |
extern "C" { |
| 1822 |
pub fn sqlite3_soft_heap_limit(N: ::std::os::raw::c_int); |
| 1823 |
} |
| 1824 |
extern "C" { |
| 1825 |
pub fn sqlite3_table_column_metadata( |
| 1826 |
db: *mut sqlite3, |
| 1827 |
zDbName: *const ::std::os::raw::c_char, |
| 1828 |
zTableName: *const ::std::os::raw::c_char, |
| 1829 |
zColumnName: *const ::std::os::raw::c_char, |
| 1830 |
pzDataType: *mut *const ::std::os::raw::c_char, |
| 1831 |
pzCollSeq: *mut *const ::std::os::raw::c_char, |
| 1832 |
pNotNull: *mut ::std::os::raw::c_int, |
| 1833 |
pPrimaryKey: *mut ::std::os::raw::c_int, |
| 1834 |
pAutoinc: *mut ::std::os::raw::c_int, |
| 1835 |
) -> ::std::os::raw::c_int; |
| 1836 |
} |
| 1837 |
extern "C" { |
| 1838 |
pub fn sqlite3_load_extension( |
| 1839 |
db: *mut sqlite3, |
| 1840 |
zFile: *const ::std::os::raw::c_char, |
| 1841 |
zProc: *const ::std::os::raw::c_char, |
| 1842 |
pzErrMsg: *mut *mut ::std::os::raw::c_char, |
| 1843 |
) -> ::std::os::raw::c_int; |
| 1844 |
} |
| 1845 |
extern "C" { |
| 1846 |
pub fn sqlite3_enable_load_extension( |
| 1847 |
db: *mut sqlite3, |
| 1848 |
onoff: ::std::os::raw::c_int, |
| 1849 |
) -> ::std::os::raw::c_int; |
| 1850 |
} |
| 1851 |
extern "C" { |
| 1852 |
pub fn sqlite3_reset_auto_extension(); |
| 1853 |
} |
| 1854 |
#[repr(C)] |
| 1855 |
#[derive(Debug, Copy, Clone)] |
| 1856 |
pub struct sqlite3_module { |
| 1857 |
pub iVersion: ::std::os::raw::c_int, |
| 1858 |
pub xCreate: ::std::option::Option< |
| 1859 |
unsafe extern "C" fn( |
| 1860 |
arg1: *mut sqlite3, |
| 1861 |
pAux: *mut ::std::os::raw::c_void, |
| 1862 |
argc: ::std::os::raw::c_int, |
| 1863 |
argv: *const *const ::std::os::raw::c_char, |
| 1864 |
ppVTab: *mut *mut sqlite3_vtab, |
| 1865 |
arg2: *mut *mut ::std::os::raw::c_char, |
| 1866 |
) -> ::std::os::raw::c_int, |
| 1867 |
>, |
| 1868 |
pub xConnect: ::std::option::Option< |
| 1869 |
unsafe extern "C" fn( |
| 1870 |
arg1: *mut sqlite3, |
| 1871 |
pAux: *mut ::std::os::raw::c_void, |
| 1872 |
argc: ::std::os::raw::c_int, |
| 1873 |
argv: *const *const ::std::os::raw::c_char, |
| 1874 |
ppVTab: *mut *mut sqlite3_vtab, |
| 1875 |
arg2: *mut *mut ::std::os::raw::c_char, |
| 1876 |
) -> ::std::os::raw::c_int, |
| 1877 |
>, |
| 1878 |
pub xBestIndex: ::std::option::Option< |
| 1879 |
unsafe extern "C" fn( |
| 1880 |
pVTab: *mut sqlite3_vtab, |
| 1881 |
arg1: *mut sqlite3_index_info, |
| 1882 |
) -> ::std::os::raw::c_int, |
| 1883 |
>, |
| 1884 |
pub xDisconnect: ::std::option::Option< |
| 1885 |
unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 1886 |
>, |
| 1887 |
pub xDestroy: ::std::option::Option< |
| 1888 |
unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 1889 |
>, |
| 1890 |
pub xOpen: ::std::option::Option< |
| 1891 |
unsafe extern "C" fn( |
| 1892 |
pVTab: *mut sqlite3_vtab, |
| 1893 |
ppCursor: *mut *mut sqlite3_vtab_cursor, |
| 1894 |
) -> ::std::os::raw::c_int, |
| 1895 |
>, |
| 1896 |
pub xClose: ::std::option::Option< |
| 1897 |
unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, |
| 1898 |
>, |
| 1899 |
pub xFilter: ::std::option::Option< |
| 1900 |
unsafe extern "C" fn( |
| 1901 |
arg1: *mut sqlite3_vtab_cursor, |
| 1902 |
idxNum: ::std::os::raw::c_int, |
| 1903 |
idxStr: *const ::std::os::raw::c_char, |
| 1904 |
argc: ::std::os::raw::c_int, |
| 1905 |
argv: *mut *mut sqlite3_value, |
| 1906 |
) -> ::std::os::raw::c_int, |
| 1907 |
>, |
| 1908 |
pub xNext: ::std::option::Option< |
| 1909 |
unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, |
| 1910 |
>, |
| 1911 |
pub xEof: ::std::option::Option< |
| 1912 |
unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, |
| 1913 |
>, |
| 1914 |
pub xColumn: ::std::option::Option< |
| 1915 |
unsafe extern "C" fn( |
| 1916 |
arg1: *mut sqlite3_vtab_cursor, |
| 1917 |
arg2: *mut sqlite3_context, |
| 1918 |
arg3: ::std::os::raw::c_int, |
| 1919 |
) -> ::std::os::raw::c_int, |
| 1920 |
>, |
| 1921 |
pub xRowid: ::std::option::Option< |
| 1922 |
unsafe extern "C" fn( |
| 1923 |
arg1: *mut sqlite3_vtab_cursor, |
| 1924 |
pRowid: *mut sqlite3_int64, |
| 1925 |
) -> ::std::os::raw::c_int, |
| 1926 |
>, |
| 1927 |
pub xUpdate: ::std::option::Option< |
| 1928 |
unsafe extern "C" fn( |
| 1929 |
arg1: *mut sqlite3_vtab, |
| 1930 |
arg2: ::std::os::raw::c_int, |
| 1931 |
arg3: *mut *mut sqlite3_value, |
| 1932 |
arg4: *mut sqlite3_int64, |
| 1933 |
) -> ::std::os::raw::c_int, |
| 1934 |
>, |
| 1935 |
pub xBegin: ::std::option::Option< |
| 1936 |
unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 1937 |
>, |
| 1938 |
pub xSync: ::std::option::Option< |
| 1939 |
unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 1940 |
>, |
| 1941 |
pub xCommit: ::std::option::Option< |
| 1942 |
unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 1943 |
>, |
| 1944 |
pub xRollback: ::std::option::Option< |
| 1945 |
unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, |
| 1946 |
>, |
| 1947 |
pub xFindFunction: ::std::option::Option< |
| 1948 |
unsafe extern "C" fn( |
| 1949 |
pVtab: *mut sqlite3_vtab, |
| 1950 |
nArg: ::std::os::raw::c_int, |
| 1951 |
zName: *const ::std::os::raw::c_char, |
| 1952 |
pxFunc: *mut ::std::option::Option< |
| 1953 |
unsafe extern "C" fn( |
| 1954 |
arg1: *mut sqlite3_context, |
| 1955 |
arg2: ::std::os::raw::c_int, |
| 1956 |
arg3: *mut *mut sqlite3_value, |
| 1957 |
), |
| 1958 |
>, |
| 1959 |
ppArg: *mut *mut ::std::os::raw::c_void, |
| 1960 |
) -> ::std::os::raw::c_int, |
| 1961 |
>, |
| 1962 |
pub xRename: ::std::option::Option< |
| 1963 |
unsafe extern "C" fn( |
| 1964 |
pVtab: *mut sqlite3_vtab, |
| 1965 |
zNew: *const ::std::os::raw::c_char, |
| 1966 |
) -> ::std::os::raw::c_int, |
| 1967 |
>, |
| 1968 |
pub xSavepoint: ::std::option::Option< |
| 1969 |
unsafe extern "C" fn( |
| 1970 |
pVTab: *mut sqlite3_vtab, |
| 1971 |
arg1: ::std::os::raw::c_int, |
| 1972 |
) -> ::std::os::raw::c_int, |
| 1973 |
>, |
| 1974 |
pub xRelease: ::std::option::Option< |
| 1975 |
unsafe extern "C" fn( |
| 1976 |
pVTab: *mut sqlite3_vtab, |
| 1977 |
arg1: ::std::os::raw::c_int, |
| 1978 |
) -> ::std::os::raw::c_int, |
| 1979 |
>, |
| 1980 |
pub xRollbackTo: ::std::option::Option< |
| 1981 |
unsafe extern "C" fn( |
| 1982 |
pVTab: *mut sqlite3_vtab, |
| 1983 |
arg1: ::std::os::raw::c_int, |
| 1984 |
) -> ::std::os::raw::c_int, |
| 1985 |
>, |
| 1986 |
pub xShadowName: ::std::option::Option< |
| 1987 |
unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int, |
| 1988 |
>, |
| 1989 |
pub xIntegrity: ::std::option::Option< |
| 1990 |
unsafe extern "C" fn( |
| 1991 |
pVTab: *mut sqlite3_vtab, |
| 1992 |
zSchema: *const ::std::os::raw::c_char, |
| 1993 |
zTabName: *const ::std::os::raw::c_char, |
| 1994 |
mFlags: ::std::os::raw::c_int, |
| 1995 |
pzErr: *mut *mut ::std::os::raw::c_char, |
| 1996 |
) -> ::std::os::raw::c_int, |
| 1997 |
>, |
| 1998 |
} |
| 1999 |
#[repr(C)] |
| 2000 |
#[derive(Debug, Copy, Clone)] |
| 2001 |
pub struct sqlite3_index_info { |
| 2002 |
pub nConstraint: ::std::os::raw::c_int, |
| 2003 |
pub aConstraint: *mut sqlite3_index_constraint, |
| 2004 |
pub nOrderBy: ::std::os::raw::c_int, |
| 2005 |
pub aOrderBy: *mut sqlite3_index_orderby, |
| 2006 |
pub aConstraintUsage: *mut sqlite3_index_constraint_usage, |
| 2007 |
pub idxNum: ::std::os::raw::c_int, |
| 2008 |
pub idxStr: *mut ::std::os::raw::c_char, |
| 2009 |
pub needToFreeIdxStr: ::std::os::raw::c_int, |
| 2010 |
pub orderByConsumed: ::std::os::raw::c_int, |
| 2011 |
pub estimatedCost: f64, |
| 2012 |
pub estimatedRows: sqlite3_int64, |
| 2013 |
pub idxFlags: ::std::os::raw::c_int, |
| 2014 |
pub colUsed: sqlite3_uint64, |
| 2015 |
} |
| 2016 |
#[repr(C)] |
| 2017 |
#[derive(Debug, Copy, Clone)] |
| 2018 |
pub struct sqlite3_index_constraint { |
| 2019 |
pub iColumn: ::std::os::raw::c_int, |
| 2020 |
pub op: ::std::os::raw::c_uchar, |
| 2021 |
pub usable: ::std::os::raw::c_uchar, |
| 2022 |
pub iTermOffset: ::std::os::raw::c_int, |
| 2023 |
} |
| 2024 |
#[repr(C)] |
| 2025 |
#[derive(Debug, Copy, Clone)] |
| 2026 |
pub struct sqlite3_index_orderby { |
| 2027 |
pub iColumn: ::std::os::raw::c_int, |
| 2028 |
pub desc: ::std::os::raw::c_uchar, |
| 2029 |
} |
| 2030 |
#[repr(C)] |
| 2031 |
#[derive(Debug, Copy, Clone)] |
| 2032 |
pub struct sqlite3_index_constraint_usage { |
| 2033 |
pub argvIndex: ::std::os::raw::c_int, |
| 2034 |
pub omit: ::std::os::raw::c_uchar, |
| 2035 |
} |
| 2036 |
extern "C" { |
| 2037 |
pub fn sqlite3_create_module_v2( |
| 2038 |
db: *mut sqlite3, |
| 2039 |
zName: *const ::std::os::raw::c_char, |
| 2040 |
p: *const sqlite3_module, |
| 2041 |
pClientData: *mut ::std::os::raw::c_void, |
| 2042 |
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2043 |
) -> ::std::os::raw::c_int; |
| 2044 |
} |
| 2045 |
extern "C" { |
| 2046 |
pub fn sqlite3_drop_modules( |
| 2047 |
db: *mut sqlite3, |
| 2048 |
azKeep: *mut *const ::std::os::raw::c_char, |
| 2049 |
) -> ::std::os::raw::c_int; |
| 2050 |
} |
| 2051 |
#[repr(C)] |
| 2052 |
#[derive(Debug, Copy, Clone)] |
| 2053 |
pub struct sqlite3_vtab { |
| 2054 |
pub pModule: *const sqlite3_module, |
| 2055 |
pub nRef: ::std::os::raw::c_int, |
| 2056 |
pub zErrMsg: *mut ::std::os::raw::c_char, |
| 2057 |
} |
| 2058 |
#[repr(C)] |
| 2059 |
#[derive(Debug, Copy, Clone)] |
| 2060 |
pub struct sqlite3_vtab_cursor { |
| 2061 |
pub pVtab: *mut sqlite3_vtab, |
| 2062 |
} |
| 2063 |
extern "C" { |
| 2064 |
pub fn sqlite3_declare_vtab( |
| 2065 |
arg1: *mut sqlite3, |
| 2066 |
zSQL: *const ::std::os::raw::c_char, |
| 2067 |
) -> ::std::os::raw::c_int; |
| 2068 |
} |
| 2069 |
extern "C" { |
| 2070 |
pub fn sqlite3_overload_function( |
| 2071 |
arg1: *mut sqlite3, |
| 2072 |
zFuncName: *const ::std::os::raw::c_char, |
| 2073 |
nArg: ::std::os::raw::c_int, |
| 2074 |
) -> ::std::os::raw::c_int; |
| 2075 |
} |
| 2076 |
#[repr(C)] |
| 2077 |
#[derive(Debug, Copy, Clone)] |
| 2078 |
pub struct sqlite3_blob { |
| 2079 |
_unused: [u8; 0], |
| 2080 |
} |
| 2081 |
extern "C" { |
| 2082 |
pub fn sqlite3_blob_open( |
| 2083 |
arg1: *mut sqlite3, |
| 2084 |
zDb: *const ::std::os::raw::c_char, |
| 2085 |
zTable: *const ::std::os::raw::c_char, |
| 2086 |
zColumn: *const ::std::os::raw::c_char, |
| 2087 |
iRow: sqlite3_int64, |
| 2088 |
flags: ::std::os::raw::c_int, |
| 2089 |
ppBlob: *mut *mut sqlite3_blob, |
| 2090 |
) -> ::std::os::raw::c_int; |
| 2091 |
} |
| 2092 |
extern "C" { |
| 2093 |
pub fn sqlite3_blob_reopen( |
| 2094 |
arg1: *mut sqlite3_blob, |
| 2095 |
arg2: sqlite3_int64, |
| 2096 |
) -> ::std::os::raw::c_int; |
| 2097 |
} |
| 2098 |
extern "C" { |
| 2099 |
pub fn sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int; |
| 2100 |
} |
| 2101 |
extern "C" { |
| 2102 |
pub fn sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int; |
| 2103 |
} |
| 2104 |
extern "C" { |
| 2105 |
pub fn sqlite3_blob_read( |
| 2106 |
arg1: *mut sqlite3_blob, |
| 2107 |
Z: *mut ::std::os::raw::c_void, |
| 2108 |
N: ::std::os::raw::c_int, |
| 2109 |
iOffset: ::std::os::raw::c_int, |
| 2110 |
) -> ::std::os::raw::c_int; |
| 2111 |
} |
| 2112 |
extern "C" { |
| 2113 |
pub fn sqlite3_blob_write( |
| 2114 |
arg1: *mut sqlite3_blob, |
| 2115 |
z: *const ::std::os::raw::c_void, |
| 2116 |
n: ::std::os::raw::c_int, |
| 2117 |
iOffset: ::std::os::raw::c_int, |
| 2118 |
) -> ::std::os::raw::c_int; |
| 2119 |
} |
| 2120 |
extern "C" { |
| 2121 |
pub fn sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char) -> *mut sqlite3_vfs; |
| 2122 |
} |
| 2123 |
extern "C" { |
| 2124 |
pub fn sqlite3_vfs_register( |
| 2125 |
arg1: *mut sqlite3_vfs, |
| 2126 |
makeDflt: ::std::os::raw::c_int, |
| 2127 |
) -> ::std::os::raw::c_int; |
| 2128 |
} |
| 2129 |
extern "C" { |
| 2130 |
pub fn sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::std::os::raw::c_int; |
| 2131 |
} |
| 2132 |
extern "C" { |
| 2133 |
pub fn sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex; |
| 2134 |
} |
| 2135 |
extern "C" { |
| 2136 |
pub fn sqlite3_mutex_free(arg1: *mut sqlite3_mutex); |
| 2137 |
} |
| 2138 |
extern "C" { |
| 2139 |
pub fn sqlite3_mutex_enter(arg1: *mut sqlite3_mutex); |
| 2140 |
} |
| 2141 |
extern "C" { |
| 2142 |
pub fn sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; |
| 2143 |
} |
| 2144 |
extern "C" { |
| 2145 |
pub fn sqlite3_mutex_leave(arg1: *mut sqlite3_mutex); |
| 2146 |
} |
| 2147 |
#[repr(C)] |
| 2148 |
#[derive(Debug, Copy, Clone)] |
| 2149 |
pub struct sqlite3_mutex_methods { |
| 2150 |
pub xMutexInit: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, |
| 2151 |
pub xMutexEnd: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>, |
| 2152 |
pub xMutexAlloc: ::std::option::Option< |
| 2153 |
unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex, |
| 2154 |
>, |
| 2155 |
pub xMutexFree: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>, |
| 2156 |
pub xMutexEnter: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>, |
| 2157 |
pub xMutexTry: ::std::option::Option< |
| 2158 |
unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, |
| 2159 |
>, |
| 2160 |
pub xMutexLeave: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_mutex)>, |
| 2161 |
pub xMutexHeld: ::std::option::Option< |
| 2162 |
unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, |
| 2163 |
>, |
| 2164 |
pub xMutexNotheld: ::std::option::Option< |
| 2165 |
unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, |
| 2166 |
>, |
| 2167 |
} |
| 2168 |
extern "C" { |
| 2169 |
pub fn sqlite3_mutex_held(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; |
| 2170 |
} |
| 2171 |
extern "C" { |
| 2172 |
pub fn sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; |
| 2173 |
} |
| 2174 |
extern "C" { |
| 2175 |
pub fn sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex; |
| 2176 |
} |
| 2177 |
extern "C" { |
| 2178 |
pub fn sqlite3_file_control( |
| 2179 |
arg1: *mut sqlite3, |
| 2180 |
zDbName: *const ::std::os::raw::c_char, |
| 2181 |
op: ::std::os::raw::c_int, |
| 2182 |
arg2: *mut ::std::os::raw::c_void, |
| 2183 |
) -> ::std::os::raw::c_int; |
| 2184 |
} |
| 2185 |
extern "C" { |
| 2186 |
pub fn sqlite3_test_control(op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; |
| 2187 |
} |
| 2188 |
extern "C" { |
| 2189 |
pub fn sqlite3_keyword_count() -> ::std::os::raw::c_int; |
| 2190 |
} |
| 2191 |
extern "C" { |
| 2192 |
pub fn sqlite3_keyword_name( |
| 2193 |
arg1: ::std::os::raw::c_int, |
| 2194 |
arg2: *mut *const ::std::os::raw::c_char, |
| 2195 |
arg3: *mut ::std::os::raw::c_int, |
| 2196 |
) -> ::std::os::raw::c_int; |
| 2197 |
} |
| 2198 |
extern "C" { |
| 2199 |
pub fn sqlite3_keyword_check( |
| 2200 |
arg1: *const ::std::os::raw::c_char, |
| 2201 |
arg2: ::std::os::raw::c_int, |
| 2202 |
) -> ::std::os::raw::c_int; |
| 2203 |
} |
| 2204 |
#[repr(C)] |
| 2205 |
#[derive(Debug, Copy, Clone)] |
| 2206 |
pub struct sqlite3_str { |
| 2207 |
_unused: [u8; 0], |
| 2208 |
} |
| 2209 |
extern "C" { |
| 2210 |
pub fn sqlite3_str_new(arg1: *mut sqlite3) -> *mut sqlite3_str; |
| 2211 |
} |
| 2212 |
extern "C" { |
| 2213 |
pub fn sqlite3_str_finish(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char; |
| 2214 |
} |
| 2215 |
extern "C" { |
| 2216 |
pub fn sqlite3_str_appendf(arg1: *mut sqlite3_str, zFormat: *const ::std::os::raw::c_char, ...); |
| 2217 |
} |
| 2218 |
extern "C" { |
| 2219 |
pub fn sqlite3_str_append( |
| 2220 |
arg1: *mut sqlite3_str, |
| 2221 |
zIn: *const ::std::os::raw::c_char, |
| 2222 |
N: ::std::os::raw::c_int, |
| 2223 |
); |
| 2224 |
} |
| 2225 |
extern "C" { |
| 2226 |
pub fn sqlite3_str_appendall(arg1: *mut sqlite3_str, zIn: *const ::std::os::raw::c_char); |
| 2227 |
} |
| 2228 |
extern "C" { |
| 2229 |
pub fn sqlite3_str_appendchar( |
| 2230 |
arg1: *mut sqlite3_str, |
| 2231 |
N: ::std::os::raw::c_int, |
| 2232 |
C: ::std::os::raw::c_char, |
| 2233 |
); |
| 2234 |
} |
| 2235 |
extern "C" { |
| 2236 |
pub fn sqlite3_str_reset(arg1: *mut sqlite3_str); |
| 2237 |
} |
| 2238 |
extern "C" { |
| 2239 |
pub fn sqlite3_str_errcode(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int; |
| 2240 |
} |
| 2241 |
extern "C" { |
| 2242 |
pub fn sqlite3_str_length(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int; |
| 2243 |
} |
| 2244 |
extern "C" { |
| 2245 |
pub fn sqlite3_str_value(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char; |
| 2246 |
} |
| 2247 |
extern "C" { |
| 2248 |
pub fn sqlite3_status( |
| 2249 |
op: ::std::os::raw::c_int, |
| 2250 |
pCurrent: *mut ::std::os::raw::c_int, |
| 2251 |
pHighwater: *mut ::std::os::raw::c_int, |
| 2252 |
resetFlag: ::std::os::raw::c_int, |
| 2253 |
) -> ::std::os::raw::c_int; |
| 2254 |
} |
| 2255 |
extern "C" { |
| 2256 |
pub fn sqlite3_status64( |
| 2257 |
op: ::std::os::raw::c_int, |
| 2258 |
pCurrent: *mut sqlite3_int64, |
| 2259 |
pHighwater: *mut sqlite3_int64, |
| 2260 |
resetFlag: ::std::os::raw::c_int, |
| 2261 |
) -> ::std::os::raw::c_int; |
| 2262 |
} |
| 2263 |
extern "C" { |
| 2264 |
pub fn sqlite3_db_status( |
| 2265 |
arg1: *mut sqlite3, |
| 2266 |
op: ::std::os::raw::c_int, |
| 2267 |
pCur: *mut ::std::os::raw::c_int, |
| 2268 |
pHiwtr: *mut ::std::os::raw::c_int, |
| 2269 |
resetFlg: ::std::os::raw::c_int, |
| 2270 |
) -> ::std::os::raw::c_int; |
| 2271 |
} |
| 2272 |
extern "C" { |
| 2273 |
pub fn sqlite3_stmt_status( |
| 2274 |
arg1: *mut sqlite3_stmt, |
| 2275 |
op: ::std::os::raw::c_int, |
| 2276 |
resetFlg: ::std::os::raw::c_int, |
| 2277 |
) -> ::std::os::raw::c_int; |
| 2278 |
} |
| 2279 |
#[repr(C)] |
| 2280 |
#[derive(Debug, Copy, Clone)] |
| 2281 |
pub struct sqlite3_pcache { |
| 2282 |
_unused: [u8; 0], |
| 2283 |
} |
| 2284 |
#[repr(C)] |
| 2285 |
#[derive(Debug, Copy, Clone)] |
| 2286 |
pub struct sqlite3_pcache_page { |
| 2287 |
pub pBuf: *mut ::std::os::raw::c_void, |
| 2288 |
pub pExtra: *mut ::std::os::raw::c_void, |
| 2289 |
} |
| 2290 |
#[repr(C)] |
| 2291 |
#[derive(Debug, Copy, Clone)] |
| 2292 |
pub struct sqlite3_pcache_methods2 { |
| 2293 |
pub iVersion: ::std::os::raw::c_int, |
| 2294 |
pub pArg: *mut ::std::os::raw::c_void, |
| 2295 |
pub xInit: ::std::option::Option< |
| 2296 |
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 2297 |
>, |
| 2298 |
pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2299 |
pub xCreate: ::std::option::Option< |
| 2300 |
unsafe extern "C" fn( |
| 2301 |
szPage: ::std::os::raw::c_int, |
| 2302 |
szExtra: ::std::os::raw::c_int, |
| 2303 |
bPurgeable: ::std::os::raw::c_int, |
| 2304 |
) -> *mut sqlite3_pcache, |
| 2305 |
>, |
| 2306 |
pub xCachesize: ::std::option::Option< |
| 2307 |
unsafe extern "C" fn(arg1: *mut sqlite3_pcache, nCachesize: ::std::os::raw::c_int), |
| 2308 |
>, |
| 2309 |
pub xPagecount: ::std::option::Option< |
| 2310 |
unsafe extern "C" fn(arg1: *mut sqlite3_pcache) -> ::std::os::raw::c_int, |
| 2311 |
>, |
| 2312 |
pub xFetch: ::std::option::Option< |
| 2313 |
unsafe extern "C" fn( |
| 2314 |
arg1: *mut sqlite3_pcache, |
| 2315 |
key: ::std::os::raw::c_uint, |
| 2316 |
createFlag: ::std::os::raw::c_int, |
| 2317 |
) -> *mut sqlite3_pcache_page, |
| 2318 |
>, |
| 2319 |
pub xUnpin: ::std::option::Option< |
| 2320 |
unsafe extern "C" fn( |
| 2321 |
arg1: *mut sqlite3_pcache, |
| 2322 |
arg2: *mut sqlite3_pcache_page, |
| 2323 |
discard: ::std::os::raw::c_int, |
| 2324 |
), |
| 2325 |
>, |
| 2326 |
pub xRekey: ::std::option::Option< |
| 2327 |
unsafe extern "C" fn( |
| 2328 |
arg1: *mut sqlite3_pcache, |
| 2329 |
arg2: *mut sqlite3_pcache_page, |
| 2330 |
oldKey: ::std::os::raw::c_uint, |
| 2331 |
newKey: ::std::os::raw::c_uint, |
| 2332 |
), |
| 2333 |
>, |
| 2334 |
pub xTruncate: ::std::option::Option< |
| 2335 |
unsafe extern "C" fn(arg1: *mut sqlite3_pcache, iLimit: ::std::os::raw::c_uint), |
| 2336 |
>, |
| 2337 |
pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>, |
| 2338 |
pub xShrink: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>, |
| 2339 |
} |
| 2340 |
#[repr(C)] |
| 2341 |
#[derive(Debug, Copy, Clone)] |
| 2342 |
pub struct sqlite3_pcache_methods { |
| 2343 |
pub pArg: *mut ::std::os::raw::c_void, |
| 2344 |
pub xInit: ::std::option::Option< |
| 2345 |
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, |
| 2346 |
>, |
| 2347 |
pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2348 |
pub xCreate: ::std::option::Option< |
| 2349 |
unsafe extern "C" fn( |
| 2350 |
szPage: ::std::os::raw::c_int, |
| 2351 |
bPurgeable: ::std::os::raw::c_int, |
| 2352 |
) -> *mut sqlite3_pcache, |
| 2353 |
>, |
| 2354 |
pub xCachesize: ::std::option::Option< |
| 2355 |
unsafe extern "C" fn(arg1: *mut sqlite3_pcache, nCachesize: ::std::os::raw::c_int), |
| 2356 |
>, |
| 2357 |
pub xPagecount: ::std::option::Option< |
| 2358 |
unsafe extern "C" fn(arg1: *mut sqlite3_pcache) -> ::std::os::raw::c_int, |
| 2359 |
>, |
| 2360 |
pub xFetch: ::std::option::Option< |
| 2361 |
unsafe extern "C" fn( |
| 2362 |
arg1: *mut sqlite3_pcache, |
| 2363 |
key: ::std::os::raw::c_uint, |
| 2364 |
createFlag: ::std::os::raw::c_int, |
| 2365 |
) -> *mut ::std::os::raw::c_void, |
| 2366 |
>, |
| 2367 |
pub xUnpin: ::std::option::Option< |
| 2368 |
unsafe extern "C" fn( |
| 2369 |
arg1: *mut sqlite3_pcache, |
| 2370 |
arg2: *mut ::std::os::raw::c_void, |
| 2371 |
discard: ::std::os::raw::c_int, |
| 2372 |
), |
| 2373 |
>, |
| 2374 |
pub xRekey: ::std::option::Option< |
| 2375 |
unsafe extern "C" fn( |
| 2376 |
arg1: *mut sqlite3_pcache, |
| 2377 |
arg2: *mut ::std::os::raw::c_void, |
| 2378 |
oldKey: ::std::os::raw::c_uint, |
| 2379 |
newKey: ::std::os::raw::c_uint, |
| 2380 |
), |
| 2381 |
>, |
| 2382 |
pub xTruncate: ::std::option::Option< |
| 2383 |
unsafe extern "C" fn(arg1: *mut sqlite3_pcache, iLimit: ::std::os::raw::c_uint), |
| 2384 |
>, |
| 2385 |
pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_pcache)>, |
| 2386 |
} |
| 2387 |
#[repr(C)] |
| 2388 |
#[derive(Debug, Copy, Clone)] |
| 2389 |
pub struct sqlite3_backup { |
| 2390 |
_unused: [u8; 0], |
| 2391 |
} |
| 2392 |
extern "C" { |
| 2393 |
pub fn sqlite3_backup_init( |
| 2394 |
pDest: *mut sqlite3, |
| 2395 |
zDestName: *const ::std::os::raw::c_char, |
| 2396 |
pSource: *mut sqlite3, |
| 2397 |
zSourceName: *const ::std::os::raw::c_char, |
| 2398 |
) -> *mut sqlite3_backup; |
| 2399 |
} |
| 2400 |
extern "C" { |
| 2401 |
pub fn sqlite3_backup_step( |
| 2402 |
p: *mut sqlite3_backup, |
| 2403 |
nPage: ::std::os::raw::c_int, |
| 2404 |
) -> ::std::os::raw::c_int; |
| 2405 |
} |
| 2406 |
extern "C" { |
| 2407 |
pub fn sqlite3_backup_finish(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; |
| 2408 |
} |
| 2409 |
extern "C" { |
| 2410 |
pub fn sqlite3_backup_remaining(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; |
| 2411 |
} |
| 2412 |
extern "C" { |
| 2413 |
pub fn sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; |
| 2414 |
} |
| 2415 |
extern "C" { |
| 2416 |
pub fn sqlite3_unlock_notify( |
| 2417 |
pBlocked: *mut sqlite3, |
| 2418 |
xNotify: ::std::option::Option< |
| 2419 |
unsafe extern "C" fn( |
| 2420 |
apArg: *mut *mut ::std::os::raw::c_void, |
| 2421 |
nArg: ::std::os::raw::c_int, |
| 2422 |
), |
| 2423 |
>, |
| 2424 |
pNotifyArg: *mut ::std::os::raw::c_void, |
| 2425 |
) -> ::std::os::raw::c_int; |
| 2426 |
} |
| 2427 |
extern "C" { |
| 2428 |
pub fn sqlite3_stricmp( |
| 2429 |
arg1: *const ::std::os::raw::c_char, |
| 2430 |
arg2: *const ::std::os::raw::c_char, |
| 2431 |
) -> ::std::os::raw::c_int; |
| 2432 |
} |
| 2433 |
extern "C" { |
| 2434 |
pub fn sqlite3_strnicmp( |
| 2435 |
arg1: *const ::std::os::raw::c_char, |
| 2436 |
arg2: *const ::std::os::raw::c_char, |
| 2437 |
arg3: ::std::os::raw::c_int, |
| 2438 |
) -> ::std::os::raw::c_int; |
| 2439 |
} |
| 2440 |
extern "C" { |
| 2441 |
pub fn sqlite3_strglob( |
| 2442 |
zGlob: *const ::std::os::raw::c_char, |
| 2443 |
zStr: *const ::std::os::raw::c_char, |
| 2444 |
) -> ::std::os::raw::c_int; |
| 2445 |
} |
| 2446 |
extern "C" { |
| 2447 |
pub fn sqlite3_strlike( |
| 2448 |
zGlob: *const ::std::os::raw::c_char, |
| 2449 |
zStr: *const ::std::os::raw::c_char, |
| 2450 |
cEsc: ::std::os::raw::c_uint, |
| 2451 |
) -> ::std::os::raw::c_int; |
| 2452 |
} |
| 2453 |
extern "C" { |
| 2454 |
pub fn sqlite3_log( |
| 2455 |
iErrCode: ::std::os::raw::c_int, |
| 2456 |
zFormat: *const ::std::os::raw::c_char, |
| 2457 |
... |
| 2458 |
); |
| 2459 |
} |
| 2460 |
extern "C" { |
| 2461 |
pub fn sqlite3_wal_hook( |
| 2462 |
arg1: *mut sqlite3, |
| 2463 |
arg2: ::std::option::Option< |
| 2464 |
unsafe extern "C" fn( |
| 2465 |
arg1: *mut ::std::os::raw::c_void, |
| 2466 |
arg2: *mut sqlite3, |
| 2467 |
arg3: *const ::std::os::raw::c_char, |
| 2468 |
arg4: ::std::os::raw::c_int, |
| 2469 |
) -> ::std::os::raw::c_int, |
| 2470 |
>, |
| 2471 |
arg3: *mut ::std::os::raw::c_void, |
| 2472 |
) -> *mut ::std::os::raw::c_void; |
| 2473 |
} |
| 2474 |
extern "C" { |
| 2475 |
pub fn sqlite3_wal_autocheckpoint( |
| 2476 |
db: *mut sqlite3, |
| 2477 |
N: ::std::os::raw::c_int, |
| 2478 |
) -> ::std::os::raw::c_int; |
| 2479 |
} |
| 2480 |
extern "C" { |
| 2481 |
pub fn sqlite3_wal_checkpoint( |
| 2482 |
db: *mut sqlite3, |
| 2483 |
zDb: *const ::std::os::raw::c_char, |
| 2484 |
) -> ::std::os::raw::c_int; |
| 2485 |
} |
| 2486 |
extern "C" { |
| 2487 |
pub fn sqlite3_wal_checkpoint_v2( |
| 2488 |
db: *mut sqlite3, |
| 2489 |
zDb: *const ::std::os::raw::c_char, |
| 2490 |
eMode: ::std::os::raw::c_int, |
| 2491 |
pnLog: *mut ::std::os::raw::c_int, |
| 2492 |
pnCkpt: *mut ::std::os::raw::c_int, |
| 2493 |
) -> ::std::os::raw::c_int; |
| 2494 |
} |
| 2495 |
extern "C" { |
| 2496 |
pub fn sqlite3_vtab_config( |
| 2497 |
arg1: *mut sqlite3, |
| 2498 |
op: ::std::os::raw::c_int, |
| 2499 |
... |
| 2500 |
) -> ::std::os::raw::c_int; |
| 2501 |
} |
| 2502 |
extern "C" { |
| 2503 |
pub fn sqlite3_vtab_on_conflict(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 2504 |
} |
| 2505 |
extern "C" { |
| 2506 |
pub fn sqlite3_vtab_nochange(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int; |
| 2507 |
} |
| 2508 |
extern "C" { |
| 2509 |
pub fn sqlite3_vtab_collation( |
| 2510 |
arg1: *mut sqlite3_index_info, |
| 2511 |
arg2: ::std::os::raw::c_int, |
| 2512 |
) -> *const ::std::os::raw::c_char; |
| 2513 |
} |
| 2514 |
extern "C" { |
| 2515 |
pub fn sqlite3_vtab_distinct(arg1: *mut sqlite3_index_info) -> ::std::os::raw::c_int; |
| 2516 |
} |
| 2517 |
extern "C" { |
| 2518 |
pub fn sqlite3_vtab_in( |
| 2519 |
arg1: *mut sqlite3_index_info, |
| 2520 |
iCons: ::std::os::raw::c_int, |
| 2521 |
bHandle: ::std::os::raw::c_int, |
| 2522 |
) -> ::std::os::raw::c_int; |
| 2523 |
} |
| 2524 |
extern "C" { |
| 2525 |
pub fn sqlite3_vtab_in_first( |
| 2526 |
pVal: *mut sqlite3_value, |
| 2527 |
ppOut: *mut *mut sqlite3_value, |
| 2528 |
) -> ::std::os::raw::c_int; |
| 2529 |
} |
| 2530 |
extern "C" { |
| 2531 |
pub fn sqlite3_vtab_in_next( |
| 2532 |
pVal: *mut sqlite3_value, |
| 2533 |
ppOut: *mut *mut sqlite3_value, |
| 2534 |
) -> ::std::os::raw::c_int; |
| 2535 |
} |
| 2536 |
extern "C" { |
| 2537 |
pub fn sqlite3_vtab_rhs_value( |
| 2538 |
arg1: *mut sqlite3_index_info, |
| 2539 |
arg2: ::std::os::raw::c_int, |
| 2540 |
ppVal: *mut *mut sqlite3_value, |
| 2541 |
) -> ::std::os::raw::c_int; |
| 2542 |
} |
| 2543 |
extern "C" { |
| 2544 |
pub fn sqlite3_stmt_scanstatus( |
| 2545 |
pStmt: *mut sqlite3_stmt, |
| 2546 |
idx: ::std::os::raw::c_int, |
| 2547 |
iScanStatusOp: ::std::os::raw::c_int, |
| 2548 |
pOut: *mut ::std::os::raw::c_void, |
| 2549 |
) -> ::std::os::raw::c_int; |
| 2550 |
} |
| 2551 |
extern "C" { |
| 2552 |
pub fn sqlite3_stmt_scanstatus_v2( |
| 2553 |
pStmt: *mut sqlite3_stmt, |
| 2554 |
idx: ::std::os::raw::c_int, |
| 2555 |
iScanStatusOp: ::std::os::raw::c_int, |
| 2556 |
flags: ::std::os::raw::c_int, |
| 2557 |
pOut: *mut ::std::os::raw::c_void, |
| 2558 |
) -> ::std::os::raw::c_int; |
| 2559 |
} |
| 2560 |
extern "C" { |
| 2561 |
pub fn sqlite3_stmt_scanstatus_reset(arg1: *mut sqlite3_stmt); |
| 2562 |
} |
| 2563 |
extern "C" { |
| 2564 |
pub fn sqlite3_db_cacheflush(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 2565 |
} |
| 2566 |
extern "C" { |
| 2567 |
pub fn sqlite3_preupdate_hook( |
| 2568 |
db: *mut sqlite3, |
| 2569 |
xPreUpdate: ::std::option::Option< |
| 2570 |
unsafe extern "C" fn( |
| 2571 |
pCtx: *mut ::std::os::raw::c_void, |
| 2572 |
db: *mut sqlite3, |
| 2573 |
op: ::std::os::raw::c_int, |
| 2574 |
zDb: *const ::std::os::raw::c_char, |
| 2575 |
zName: *const ::std::os::raw::c_char, |
| 2576 |
iKey1: sqlite3_int64, |
| 2577 |
iKey2: sqlite3_int64, |
| 2578 |
), |
| 2579 |
>, |
| 2580 |
arg1: *mut ::std::os::raw::c_void, |
| 2581 |
) -> *mut ::std::os::raw::c_void; |
| 2582 |
} |
| 2583 |
extern "C" { |
| 2584 |
pub fn sqlite3_preupdate_old( |
| 2585 |
arg1: *mut sqlite3, |
| 2586 |
arg2: ::std::os::raw::c_int, |
| 2587 |
arg3: *mut *mut sqlite3_value, |
| 2588 |
) -> ::std::os::raw::c_int; |
| 2589 |
} |
| 2590 |
extern "C" { |
| 2591 |
pub fn sqlite3_preupdate_count(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 2592 |
} |
| 2593 |
extern "C" { |
| 2594 |
pub fn sqlite3_preupdate_depth(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 2595 |
} |
| 2596 |
extern "C" { |
| 2597 |
pub fn sqlite3_preupdate_new( |
| 2598 |
arg1: *mut sqlite3, |
| 2599 |
arg2: ::std::os::raw::c_int, |
| 2600 |
arg3: *mut *mut sqlite3_value, |
| 2601 |
) -> ::std::os::raw::c_int; |
| 2602 |
} |
| 2603 |
extern "C" { |
| 2604 |
pub fn sqlite3_preupdate_blobwrite(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 2605 |
} |
| 2606 |
extern "C" { |
| 2607 |
pub fn sqlite3_system_errno(arg1: *mut sqlite3) -> ::std::os::raw::c_int; |
| 2608 |
} |
| 2609 |
#[repr(C)] |
| 2610 |
#[derive(Debug, Copy, Clone)] |
| 2611 |
pub struct sqlite3_snapshot { |
| 2612 |
pub hidden: [::std::os::raw::c_uchar; 48usize], |
| 2613 |
} |
| 2614 |
extern "C" { |
| 2615 |
pub fn sqlite3_snapshot_get( |
| 2616 |
db: *mut sqlite3, |
| 2617 |
zSchema: *const ::std::os::raw::c_char, |
| 2618 |
ppSnapshot: *mut *mut sqlite3_snapshot, |
| 2619 |
) -> ::std::os::raw::c_int; |
| 2620 |
} |
| 2621 |
extern "C" { |
| 2622 |
pub fn sqlite3_snapshot_open( |
| 2623 |
db: *mut sqlite3, |
| 2624 |
zSchema: *const ::std::os::raw::c_char, |
| 2625 |
pSnapshot: *mut sqlite3_snapshot, |
| 2626 |
) -> ::std::os::raw::c_int; |
| 2627 |
} |
| 2628 |
extern "C" { |
| 2629 |
pub fn sqlite3_snapshot_free(arg1: *mut sqlite3_snapshot); |
| 2630 |
} |
| 2631 |
extern "C" { |
| 2632 |
pub fn sqlite3_snapshot_cmp( |
| 2633 |
p1: *mut sqlite3_snapshot, |
| 2634 |
p2: *mut sqlite3_snapshot, |
| 2635 |
) -> ::std::os::raw::c_int; |
| 2636 |
} |
| 2637 |
extern "C" { |
| 2638 |
pub fn sqlite3_snapshot_recover( |
| 2639 |
db: *mut sqlite3, |
| 2640 |
zDb: *const ::std::os::raw::c_char, |
| 2641 |
) -> ::std::os::raw::c_int; |
| 2642 |
} |
| 2643 |
extern "C" { |
| 2644 |
pub fn sqlite3_serialize( |
| 2645 |
db: *mut sqlite3, |
| 2646 |
zSchema: *const ::std::os::raw::c_char, |
| 2647 |
piSize: *mut sqlite3_int64, |
| 2648 |
mFlags: ::std::os::raw::c_uint, |
| 2649 |
) -> *mut ::std::os::raw::c_uchar; |
| 2650 |
} |
| 2651 |
extern "C" { |
| 2652 |
pub fn sqlite3_deserialize( |
| 2653 |
db: *mut sqlite3, |
| 2654 |
zSchema: *const ::std::os::raw::c_char, |
| 2655 |
pData: *mut ::std::os::raw::c_uchar, |
| 2656 |
szDb: sqlite3_int64, |
| 2657 |
szBuf: sqlite3_int64, |
| 2658 |
mFlags: ::std::os::raw::c_uint, |
| 2659 |
) -> ::std::os::raw::c_int; |
| 2660 |
} |
| 2661 |
pub type sqlite3_rtree_dbl = f64; |
| 2662 |
extern "C" { |
| 2663 |
pub fn sqlite3_rtree_geometry_callback( |
| 2664 |
db: *mut sqlite3, |
| 2665 |
zGeom: *const ::std::os::raw::c_char, |
| 2666 |
xGeom: ::std::option::Option< |
| 2667 |
unsafe extern "C" fn( |
| 2668 |
arg1: *mut sqlite3_rtree_geometry, |
| 2669 |
arg2: ::std::os::raw::c_int, |
| 2670 |
arg3: *mut sqlite3_rtree_dbl, |
| 2671 |
arg4: *mut ::std::os::raw::c_int, |
| 2672 |
) -> ::std::os::raw::c_int, |
| 2673 |
>, |
| 2674 |
pContext: *mut ::std::os::raw::c_void, |
| 2675 |
) -> ::std::os::raw::c_int; |
| 2676 |
} |
| 2677 |
#[repr(C)] |
| 2678 |
#[derive(Debug, Copy, Clone)] |
| 2679 |
pub struct sqlite3_rtree_geometry { |
| 2680 |
pub pContext: *mut ::std::os::raw::c_void, |
| 2681 |
pub nParam: ::std::os::raw::c_int, |
| 2682 |
pub aParam: *mut sqlite3_rtree_dbl, |
| 2683 |
pub pUser: *mut ::std::os::raw::c_void, |
| 2684 |
pub xDelUser: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2685 |
} |
| 2686 |
extern "C" { |
| 2687 |
pub fn sqlite3_rtree_query_callback( |
| 2688 |
db: *mut sqlite3, |
| 2689 |
zQueryFunc: *const ::std::os::raw::c_char, |
| 2690 |
xQueryFunc: ::std::option::Option< |
| 2691 |
unsafe extern "C" fn(arg1: *mut sqlite3_rtree_query_info) -> ::std::os::raw::c_int, |
| 2692 |
>, |
| 2693 |
pContext: *mut ::std::os::raw::c_void, |
| 2694 |
xDestructor: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2695 |
) -> ::std::os::raw::c_int; |
| 2696 |
} |
| 2697 |
#[repr(C)] |
| 2698 |
#[derive(Debug, Copy, Clone)] |
| 2699 |
pub struct sqlite3_rtree_query_info { |
| 2700 |
pub pContext: *mut ::std::os::raw::c_void, |
| 2701 |
pub nParam: ::std::os::raw::c_int, |
| 2702 |
pub aParam: *mut sqlite3_rtree_dbl, |
| 2703 |
pub pUser: *mut ::std::os::raw::c_void, |
| 2704 |
pub xDelUser: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 2705 |
pub aCoord: *mut sqlite3_rtree_dbl, |
| 2706 |
pub anQueue: *mut ::std::os::raw::c_uint, |
| 2707 |
pub nCoord: ::std::os::raw::c_int, |
| 2708 |
pub iLevel: ::std::os::raw::c_int, |
| 2709 |
pub mxLevel: ::std::os::raw::c_int, |
| 2710 |
pub iRowid: sqlite3_int64, |
| 2711 |
pub rParentScore: sqlite3_rtree_dbl, |
| 2712 |
pub eParentWithin: ::std::os::raw::c_int, |
| 2713 |
pub eWithin: ::std::os::raw::c_int, |
| 2714 |
pub rScore: sqlite3_rtree_dbl, |
| 2715 |
pub apSqlParam: *mut *mut sqlite3_value, |
| 2716 |
} |
| 2717 |
#[repr(C)] |
| 2718 |
#[derive(Debug, Copy, Clone)] |
| 2719 |
pub struct sqlite3_session { |
| 2720 |
_unused: [u8; 0], |
| 2721 |
} |
| 2722 |
#[repr(C)] |
| 2723 |
#[derive(Debug, Copy, Clone)] |
| 2724 |
pub struct sqlite3_changeset_iter { |
| 2725 |
_unused: [u8; 0], |
| 2726 |
} |
| 2727 |
extern "C" { |
| 2728 |
pub fn sqlite3session_create( |
| 2729 |
db: *mut sqlite3, |
| 2730 |
zDb: *const ::std::os::raw::c_char, |
| 2731 |
ppSession: *mut *mut sqlite3_session, |
| 2732 |
) -> ::std::os::raw::c_int; |
| 2733 |
} |
| 2734 |
extern "C" { |
| 2735 |
pub fn sqlite3session_delete(pSession: *mut sqlite3_session); |
| 2736 |
} |
| 2737 |
extern "C" { |
| 2738 |
pub fn sqlite3session_object_config( |
| 2739 |
arg1: *mut sqlite3_session, |
| 2740 |
op: ::std::os::raw::c_int, |
| 2741 |
pArg: *mut ::std::os::raw::c_void, |
| 2742 |
) -> ::std::os::raw::c_int; |
| 2743 |
} |
| 2744 |
extern "C" { |
| 2745 |
pub fn sqlite3session_enable( |
| 2746 |
pSession: *mut sqlite3_session, |
| 2747 |
bEnable: ::std::os::raw::c_int, |
| 2748 |
) -> ::std::os::raw::c_int; |
| 2749 |
} |
| 2750 |
extern "C" { |
| 2751 |
pub fn sqlite3session_indirect( |
| 2752 |
pSession: *mut sqlite3_session, |
| 2753 |
bIndirect: ::std::os::raw::c_int, |
| 2754 |
) -> ::std::os::raw::c_int; |
| 2755 |
} |
| 2756 |
extern "C" { |
| 2757 |
pub fn sqlite3session_attach( |
| 2758 |
pSession: *mut sqlite3_session, |
| 2759 |
zTab: *const ::std::os::raw::c_char, |
| 2760 |
) -> ::std::os::raw::c_int; |
| 2761 |
} |
| 2762 |
extern "C" { |
| 2763 |
pub fn sqlite3session_table_filter( |
| 2764 |
pSession: *mut sqlite3_session, |
| 2765 |
xFilter: ::std::option::Option< |
| 2766 |
unsafe extern "C" fn( |
| 2767 |
pCtx: *mut ::std::os::raw::c_void, |
| 2768 |
zTab: *const ::std::os::raw::c_char, |
| 2769 |
) -> ::std::os::raw::c_int, |
| 2770 |
>, |
| 2771 |
pCtx: *mut ::std::os::raw::c_void, |
| 2772 |
); |
| 2773 |
} |
| 2774 |
extern "C" { |
| 2775 |
pub fn sqlite3session_changeset( |
| 2776 |
pSession: *mut sqlite3_session, |
| 2777 |
pnChangeset: *mut ::std::os::raw::c_int, |
| 2778 |
ppChangeset: *mut *mut ::std::os::raw::c_void, |
| 2779 |
) -> ::std::os::raw::c_int; |
| 2780 |
} |
| 2781 |
extern "C" { |
| 2782 |
pub fn sqlite3session_changeset_size(pSession: *mut sqlite3_session) -> sqlite3_int64; |
| 2783 |
} |
| 2784 |
extern "C" { |
| 2785 |
pub fn sqlite3session_diff( |
| 2786 |
pSession: *mut sqlite3_session, |
| 2787 |
zFromDb: *const ::std::os::raw::c_char, |
| 2788 |
zTbl: *const ::std::os::raw::c_char, |
| 2789 |
pzErrMsg: *mut *mut ::std::os::raw::c_char, |
| 2790 |
) -> ::std::os::raw::c_int; |
| 2791 |
} |
| 2792 |
extern "C" { |
| 2793 |
pub fn sqlite3session_patchset( |
| 2794 |
pSession: *mut sqlite3_session, |
| 2795 |
pnPatchset: *mut ::std::os::raw::c_int, |
| 2796 |
ppPatchset: *mut *mut ::std::os::raw::c_void, |
| 2797 |
) -> ::std::os::raw::c_int; |
| 2798 |
} |
| 2799 |
extern "C" { |
| 2800 |
pub fn sqlite3session_isempty(pSession: *mut sqlite3_session) -> ::std::os::raw::c_int; |
| 2801 |
} |
| 2802 |
extern "C" { |
| 2803 |
pub fn sqlite3session_memory_used(pSession: *mut sqlite3_session) -> sqlite3_int64; |
| 2804 |
} |
| 2805 |
extern "C" { |
| 2806 |
pub fn sqlite3changeset_start( |
| 2807 |
pp: *mut *mut sqlite3_changeset_iter, |
| 2808 |
nChangeset: ::std::os::raw::c_int, |
| 2809 |
pChangeset: *mut ::std::os::raw::c_void, |
| 2810 |
) -> ::std::os::raw::c_int; |
| 2811 |
} |
| 2812 |
extern "C" { |
| 2813 |
pub fn sqlite3changeset_start_v2( |
| 2814 |
pp: *mut *mut sqlite3_changeset_iter, |
| 2815 |
nChangeset: ::std::os::raw::c_int, |
| 2816 |
pChangeset: *mut ::std::os::raw::c_void, |
| 2817 |
flags: ::std::os::raw::c_int, |
| 2818 |
) -> ::std::os::raw::c_int; |
| 2819 |
} |
| 2820 |
extern "C" { |
| 2821 |
pub fn sqlite3changeset_next(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int; |
| 2822 |
} |
| 2823 |
extern "C" { |
| 2824 |
pub fn sqlite3changeset_op( |
| 2825 |
pIter: *mut sqlite3_changeset_iter, |
| 2826 |
pzTab: *mut *const ::std::os::raw::c_char, |
| 2827 |
pnCol: *mut ::std::os::raw::c_int, |
| 2828 |
pOp: *mut ::std::os::raw::c_int, |
| 2829 |
pbIndirect: *mut ::std::os::raw::c_int, |
| 2830 |
) -> ::std::os::raw::c_int; |
| 2831 |
} |
| 2832 |
extern "C" { |
| 2833 |
pub fn sqlite3changeset_pk( |
| 2834 |
pIter: *mut sqlite3_changeset_iter, |
| 2835 |
pabPK: *mut *mut ::std::os::raw::c_uchar, |
| 2836 |
pnCol: *mut ::std::os::raw::c_int, |
| 2837 |
) -> ::std::os::raw::c_int; |
| 2838 |
} |
| 2839 |
extern "C" { |
| 2840 |
pub fn sqlite3changeset_old( |
| 2841 |
pIter: *mut sqlite3_changeset_iter, |
| 2842 |
iVal: ::std::os::raw::c_int, |
| 2843 |
ppValue: *mut *mut sqlite3_value, |
| 2844 |
) -> ::std::os::raw::c_int; |
| 2845 |
} |
| 2846 |
extern "C" { |
| 2847 |
pub fn sqlite3changeset_new( |
| 2848 |
pIter: *mut sqlite3_changeset_iter, |
| 2849 |
iVal: ::std::os::raw::c_int, |
| 2850 |
ppValue: *mut *mut sqlite3_value, |
| 2851 |
) -> ::std::os::raw::c_int; |
| 2852 |
} |
| 2853 |
extern "C" { |
| 2854 |
pub fn sqlite3changeset_conflict( |
| 2855 |
pIter: *mut sqlite3_changeset_iter, |
| 2856 |
iVal: ::std::os::raw::c_int, |
| 2857 |
ppValue: *mut *mut sqlite3_value, |
| 2858 |
) -> ::std::os::raw::c_int; |
| 2859 |
} |
| 2860 |
extern "C" { |
| 2861 |
pub fn sqlite3changeset_fk_conflicts( |
| 2862 |
pIter: *mut sqlite3_changeset_iter, |
| 2863 |
pnOut: *mut ::std::os::raw::c_int, |
| 2864 |
) -> ::std::os::raw::c_int; |
| 2865 |
} |
| 2866 |
extern "C" { |
| 2867 |
pub fn sqlite3changeset_finalize(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int; |
| 2868 |
} |
| 2869 |
extern "C" { |
| 2870 |
pub fn sqlite3changeset_invert( |
| 2871 |
nIn: ::std::os::raw::c_int, |
| 2872 |
pIn: *const ::std::os::raw::c_void, |
| 2873 |
pnOut: *mut ::std::os::raw::c_int, |
| 2874 |
ppOut: *mut *mut ::std::os::raw::c_void, |
| 2875 |
) -> ::std::os::raw::c_int; |
| 2876 |
} |
| 2877 |
extern "C" { |
| 2878 |
pub fn sqlite3changeset_concat( |
| 2879 |
nA: ::std::os::raw::c_int, |
| 2880 |
pA: *mut ::std::os::raw::c_void, |
| 2881 |
nB: ::std::os::raw::c_int, |
| 2882 |
pB: *mut ::std::os::raw::c_void, |
| 2883 |
pnOut: *mut ::std::os::raw::c_int, |
| 2884 |
ppOut: *mut *mut ::std::os::raw::c_void, |
| 2885 |
) -> ::std::os::raw::c_int; |
| 2886 |
} |
| 2887 |
extern "C" { |
| 2888 |
pub fn sqlite3changeset_upgrade( |
| 2889 |
db: *mut sqlite3, |
| 2890 |
zDb: *const ::std::os::raw::c_char, |
| 2891 |
nIn: ::std::os::raw::c_int, |
| 2892 |
pIn: *const ::std::os::raw::c_void, |
| 2893 |
pnOut: *mut ::std::os::raw::c_int, |
| 2894 |
ppOut: *mut *mut ::std::os::raw::c_void, |
| 2895 |
) -> ::std::os::raw::c_int; |
| 2896 |
} |
| 2897 |
#[repr(C)] |
| 2898 |
#[derive(Debug, Copy, Clone)] |
| 2899 |
pub struct sqlite3_changegroup { |
| 2900 |
_unused: [u8; 0], |
| 2901 |
} |
| 2902 |
extern "C" { |
| 2903 |
pub fn sqlite3changegroup_new(pp: *mut *mut sqlite3_changegroup) -> ::std::os::raw::c_int; |
| 2904 |
} |
| 2905 |
extern "C" { |
| 2906 |
pub fn sqlite3changegroup_schema( |
| 2907 |
arg1: *mut sqlite3_changegroup, |
| 2908 |
arg2: *mut sqlite3, |
| 2909 |
zDb: *const ::std::os::raw::c_char, |
| 2910 |
) -> ::std::os::raw::c_int; |
| 2911 |
} |
| 2912 |
extern "C" { |
| 2913 |
pub fn sqlite3changegroup_add( |
| 2914 |
arg1: *mut sqlite3_changegroup, |
| 2915 |
nData: ::std::os::raw::c_int, |
| 2916 |
pData: *mut ::std::os::raw::c_void, |
| 2917 |
) -> ::std::os::raw::c_int; |
| 2918 |
} |
| 2919 |
extern "C" { |
| 2920 |
pub fn sqlite3changegroup_add_change( |
| 2921 |
arg1: *mut sqlite3_changegroup, |
| 2922 |
arg2: *mut sqlite3_changeset_iter, |
| 2923 |
) -> ::std::os::raw::c_int; |
| 2924 |
} |
| 2925 |
extern "C" { |
| 2926 |
pub fn sqlite3changegroup_output( |
| 2927 |
arg1: *mut sqlite3_changegroup, |
| 2928 |
pnData: *mut ::std::os::raw::c_int, |
| 2929 |
ppData: *mut *mut ::std::os::raw::c_void, |
| 2930 |
) -> ::std::os::raw::c_int; |
| 2931 |
} |
| 2932 |
extern "C" { |
| 2933 |
pub fn sqlite3changegroup_delete(arg1: *mut sqlite3_changegroup); |
| 2934 |
} |
| 2935 |
extern "C" { |
| 2936 |
pub fn sqlite3changeset_apply( |
| 2937 |
db: *mut sqlite3, |
| 2938 |
nChangeset: ::std::os::raw::c_int, |
| 2939 |
pChangeset: *mut ::std::os::raw::c_void, |
| 2940 |
xFilter: ::std::option::Option< |
| 2941 |
unsafe extern "C" fn( |
| 2942 |
pCtx: *mut ::std::os::raw::c_void, |
| 2943 |
zTab: *const ::std::os::raw::c_char, |
| 2944 |
) -> ::std::os::raw::c_int, |
| 2945 |
>, |
| 2946 |
xConflict: ::std::option::Option< |
| 2947 |
unsafe extern "C" fn( |
| 2948 |
pCtx: *mut ::std::os::raw::c_void, |
| 2949 |
eConflict: ::std::os::raw::c_int, |
| 2950 |
p: *mut sqlite3_changeset_iter, |
| 2951 |
) -> ::std::os::raw::c_int, |
| 2952 |
>, |
| 2953 |
pCtx: *mut ::std::os::raw::c_void, |
| 2954 |
) -> ::std::os::raw::c_int; |
| 2955 |
} |
| 2956 |
extern "C" { |
| 2957 |
pub fn sqlite3changeset_apply_v2( |
| 2958 |
db: *mut sqlite3, |
| 2959 |
nChangeset: ::std::os::raw::c_int, |
| 2960 |
pChangeset: *mut ::std::os::raw::c_void, |
| 2961 |
xFilter: ::std::option::Option< |
| 2962 |
unsafe extern "C" fn( |
| 2963 |
pCtx: *mut ::std::os::raw::c_void, |
| 2964 |
zTab: *const ::std::os::raw::c_char, |
| 2965 |
) -> ::std::os::raw::c_int, |
| 2966 |
>, |
| 2967 |
xConflict: ::std::option::Option< |
| 2968 |
unsafe extern "C" fn( |
| 2969 |
pCtx: *mut ::std::os::raw::c_void, |
| 2970 |
eConflict: ::std::os::raw::c_int, |
| 2971 |
p: *mut sqlite3_changeset_iter, |
| 2972 |
) -> ::std::os::raw::c_int, |
| 2973 |
>, |
| 2974 |
pCtx: *mut ::std::os::raw::c_void, |
| 2975 |
ppRebase: *mut *mut ::std::os::raw::c_void, |
| 2976 |
pnRebase: *mut ::std::os::raw::c_int, |
| 2977 |
flags: ::std::os::raw::c_int, |
| 2978 |
) -> ::std::os::raw::c_int; |
| 2979 |
} |
| 2980 |
#[repr(C)] |
| 2981 |
#[derive(Debug, Copy, Clone)] |
| 2982 |
pub struct sqlite3_rebaser { |
| 2983 |
_unused: [u8; 0], |
| 2984 |
} |
| 2985 |
extern "C" { |
| 2986 |
pub fn sqlite3rebaser_create(ppNew: *mut *mut sqlite3_rebaser) -> ::std::os::raw::c_int; |
| 2987 |
} |
| 2988 |
extern "C" { |
| 2989 |
pub fn sqlite3rebaser_configure( |
| 2990 |
arg1: *mut sqlite3_rebaser, |
| 2991 |
nRebase: ::std::os::raw::c_int, |
| 2992 |
pRebase: *const ::std::os::raw::c_void, |
| 2993 |
) -> ::std::os::raw::c_int; |
| 2994 |
} |
| 2995 |
extern "C" { |
| 2996 |
pub fn sqlite3rebaser_rebase( |
| 2997 |
arg1: *mut sqlite3_rebaser, |
| 2998 |
nIn: ::std::os::raw::c_int, |
| 2999 |
pIn: *const ::std::os::raw::c_void, |
| 3000 |
pnOut: *mut ::std::os::raw::c_int, |
| 3001 |
ppOut: *mut *mut ::std::os::raw::c_void, |
| 3002 |
) -> ::std::os::raw::c_int; |
| 3003 |
} |
| 3004 |
extern "C" { |
| 3005 |
pub fn sqlite3rebaser_delete(p: *mut sqlite3_rebaser); |
| 3006 |
} |
| 3007 |
extern "C" { |
| 3008 |
pub fn sqlite3changeset_apply_strm( |
| 3009 |
db: *mut sqlite3, |
| 3010 |
xInput: ::std::option::Option< |
| 3011 |
unsafe extern "C" fn( |
| 3012 |
pIn: *mut ::std::os::raw::c_void, |
| 3013 |
pData: *mut ::std::os::raw::c_void, |
| 3014 |
pnData: *mut ::std::os::raw::c_int, |
| 3015 |
) -> ::std::os::raw::c_int, |
| 3016 |
>, |
| 3017 |
pIn: *mut ::std::os::raw::c_void, |
| 3018 |
xFilter: ::std::option::Option< |
| 3019 |
unsafe extern "C" fn( |
| 3020 |
pCtx: *mut ::std::os::raw::c_void, |
| 3021 |
zTab: *const ::std::os::raw::c_char, |
| 3022 |
) -> ::std::os::raw::c_int, |
| 3023 |
>, |
| 3024 |
xConflict: ::std::option::Option< |
| 3025 |
unsafe extern "C" fn( |
| 3026 |
pCtx: *mut ::std::os::raw::c_void, |
| 3027 |
eConflict: ::std::os::raw::c_int, |
| 3028 |
p: *mut sqlite3_changeset_iter, |
| 3029 |
) -> ::std::os::raw::c_int, |
| 3030 |
>, |
| 3031 |
pCtx: *mut ::std::os::raw::c_void, |
| 3032 |
) -> ::std::os::raw::c_int; |
| 3033 |
} |
| 3034 |
extern "C" { |
| 3035 |
pub fn sqlite3changeset_apply_v2_strm( |
| 3036 |
db: *mut sqlite3, |
| 3037 |
xInput: ::std::option::Option< |
| 3038 |
unsafe extern "C" fn( |
| 3039 |
pIn: *mut ::std::os::raw::c_void, |
| 3040 |
pData: *mut ::std::os::raw::c_void, |
| 3041 |
pnData: *mut ::std::os::raw::c_int, |
| 3042 |
) -> ::std::os::raw::c_int, |
| 3043 |
>, |
| 3044 |
pIn: *mut ::std::os::raw::c_void, |
| 3045 |
xFilter: ::std::option::Option< |
| 3046 |
unsafe extern "C" fn( |
| 3047 |
pCtx: *mut ::std::os::raw::c_void, |
| 3048 |
zTab: *const ::std::os::raw::c_char, |
| 3049 |
) -> ::std::os::raw::c_int, |
| 3050 |
>, |
| 3051 |
xConflict: ::std::option::Option< |
| 3052 |
unsafe extern "C" fn( |
| 3053 |
pCtx: *mut ::std::os::raw::c_void, |
| 3054 |
eConflict: ::std::os::raw::c_int, |
| 3055 |
p: *mut sqlite3_changeset_iter, |
| 3056 |
) -> ::std::os::raw::c_int, |
| 3057 |
>, |
| 3058 |
pCtx: *mut ::std::os::raw::c_void, |
| 3059 |
ppRebase: *mut *mut ::std::os::raw::c_void, |
| 3060 |
pnRebase: *mut ::std::os::raw::c_int, |
| 3061 |
flags: ::std::os::raw::c_int, |
| 3062 |
) -> ::std::os::raw::c_int; |
| 3063 |
} |
| 3064 |
extern "C" { |
| 3065 |
pub fn sqlite3changeset_concat_strm( |
| 3066 |
xInputA: ::std::option::Option< |
| 3067 |
unsafe extern "C" fn( |
| 3068 |
pIn: *mut ::std::os::raw::c_void, |
| 3069 |
pData: *mut ::std::os::raw::c_void, |
| 3070 |
pnData: *mut ::std::os::raw::c_int, |
| 3071 |
) -> ::std::os::raw::c_int, |
| 3072 |
>, |
| 3073 |
pInA: *mut ::std::os::raw::c_void, |
| 3074 |
xInputB: ::std::option::Option< |
| 3075 |
unsafe extern "C" fn( |
| 3076 |
pIn: *mut ::std::os::raw::c_void, |
| 3077 |
pData: *mut ::std::os::raw::c_void, |
| 3078 |
pnData: *mut ::std::os::raw::c_int, |
| 3079 |
) -> ::std::os::raw::c_int, |
| 3080 |
>, |
| 3081 |
pInB: *mut ::std::os::raw::c_void, |
| 3082 |
xOutput: ::std::option::Option< |
| 3083 |
unsafe extern "C" fn( |
| 3084 |
pOut: *mut ::std::os::raw::c_void, |
| 3085 |
pData: *const ::std::os::raw::c_void, |
| 3086 |
nData: ::std::os::raw::c_int, |
| 3087 |
) -> ::std::os::raw::c_int, |
| 3088 |
>, |
| 3089 |
pOut: *mut ::std::os::raw::c_void, |
| 3090 |
) -> ::std::os::raw::c_int; |
| 3091 |
} |
| 3092 |
extern "C" { |
| 3093 |
pub fn sqlite3changeset_invert_strm( |
| 3094 |
xInput: ::std::option::Option< |
| 3095 |
unsafe extern "C" fn( |
| 3096 |
pIn: *mut ::std::os::raw::c_void, |
| 3097 |
pData: *mut ::std::os::raw::c_void, |
| 3098 |
pnData: *mut ::std::os::raw::c_int, |
| 3099 |
) -> ::std::os::raw::c_int, |
| 3100 |
>, |
| 3101 |
pIn: *mut ::std::os::raw::c_void, |
| 3102 |
xOutput: ::std::option::Option< |
| 3103 |
unsafe extern "C" fn( |
| 3104 |
pOut: *mut ::std::os::raw::c_void, |
| 3105 |
pData: *const ::std::os::raw::c_void, |
| 3106 |
nData: ::std::os::raw::c_int, |
| 3107 |
) -> ::std::os::raw::c_int, |
| 3108 |
>, |
| 3109 |
pOut: *mut ::std::os::raw::c_void, |
| 3110 |
) -> ::std::os::raw::c_int; |
| 3111 |
} |
| 3112 |
extern "C" { |
| 3113 |
pub fn sqlite3changeset_start_strm( |
| 3114 |
pp: *mut *mut sqlite3_changeset_iter, |
| 3115 |
xInput: ::std::option::Option< |
| 3116 |
unsafe extern "C" fn( |
| 3117 |
pIn: *mut ::std::os::raw::c_void, |
| 3118 |
pData: *mut ::std::os::raw::c_void, |
| 3119 |
pnData: *mut ::std::os::raw::c_int, |
| 3120 |
) -> ::std::os::raw::c_int, |
| 3121 |
>, |
| 3122 |
pIn: *mut ::std::os::raw::c_void, |
| 3123 |
) -> ::std::os::raw::c_int; |
| 3124 |
} |
| 3125 |
extern "C" { |
| 3126 |
pub fn sqlite3changeset_start_v2_strm( |
| 3127 |
pp: *mut *mut sqlite3_changeset_iter, |
| 3128 |
xInput: ::std::option::Option< |
| 3129 |
unsafe extern "C" fn( |
| 3130 |
pIn: *mut ::std::os::raw::c_void, |
| 3131 |
pData: *mut ::std::os::raw::c_void, |
| 3132 |
pnData: *mut ::std::os::raw::c_int, |
| 3133 |
) -> ::std::os::raw::c_int, |
| 3134 |
>, |
| 3135 |
pIn: *mut ::std::os::raw::c_void, |
| 3136 |
flags: ::std::os::raw::c_int, |
| 3137 |
) -> ::std::os::raw::c_int; |
| 3138 |
} |
| 3139 |
extern "C" { |
| 3140 |
pub fn sqlite3session_changeset_strm( |
| 3141 |
pSession: *mut sqlite3_session, |
| 3142 |
xOutput: ::std::option::Option< |
| 3143 |
unsafe extern "C" fn( |
| 3144 |
pOut: *mut ::std::os::raw::c_void, |
| 3145 |
pData: *const ::std::os::raw::c_void, |
| 3146 |
nData: ::std::os::raw::c_int, |
| 3147 |
) -> ::std::os::raw::c_int, |
| 3148 |
>, |
| 3149 |
pOut: *mut ::std::os::raw::c_void, |
| 3150 |
) -> ::std::os::raw::c_int; |
| 3151 |
} |
| 3152 |
extern "C" { |
| 3153 |
pub fn sqlite3session_patchset_strm( |
| 3154 |
pSession: *mut sqlite3_session, |
| 3155 |
xOutput: ::std::option::Option< |
| 3156 |
unsafe extern "C" fn( |
| 3157 |
pOut: *mut ::std::os::raw::c_void, |
| 3158 |
pData: *const ::std::os::raw::c_void, |
| 3159 |
nData: ::std::os::raw::c_int, |
| 3160 |
) -> ::std::os::raw::c_int, |
| 3161 |
>, |
| 3162 |
pOut: *mut ::std::os::raw::c_void, |
| 3163 |
) -> ::std::os::raw::c_int; |
| 3164 |
} |
| 3165 |
extern "C" { |
| 3166 |
pub fn sqlite3changegroup_add_strm( |
| 3167 |
arg1: *mut sqlite3_changegroup, |
| 3168 |
xInput: ::std::option::Option< |
| 3169 |
unsafe extern "C" fn( |
| 3170 |
pIn: *mut ::std::os::raw::c_void, |
| 3171 |
pData: *mut ::std::os::raw::c_void, |
| 3172 |
pnData: *mut ::std::os::raw::c_int, |
| 3173 |
) -> ::std::os::raw::c_int, |
| 3174 |
>, |
| 3175 |
pIn: *mut ::std::os::raw::c_void, |
| 3176 |
) -> ::std::os::raw::c_int; |
| 3177 |
} |
| 3178 |
extern "C" { |
| 3179 |
pub fn sqlite3changegroup_output_strm( |
| 3180 |
arg1: *mut sqlite3_changegroup, |
| 3181 |
xOutput: ::std::option::Option< |
| 3182 |
unsafe extern "C" fn( |
| 3183 |
pOut: *mut ::std::os::raw::c_void, |
| 3184 |
pData: *const ::std::os::raw::c_void, |
| 3185 |
nData: ::std::os::raw::c_int, |
| 3186 |
) -> ::std::os::raw::c_int, |
| 3187 |
>, |
| 3188 |
pOut: *mut ::std::os::raw::c_void, |
| 3189 |
) -> ::std::os::raw::c_int; |
| 3190 |
} |
| 3191 |
extern "C" { |
| 3192 |
pub fn sqlite3rebaser_rebase_strm( |
| 3193 |
pRebaser: *mut sqlite3_rebaser, |
| 3194 |
xInput: ::std::option::Option< |
| 3195 |
unsafe extern "C" fn( |
| 3196 |
pIn: *mut ::std::os::raw::c_void, |
| 3197 |
pData: *mut ::std::os::raw::c_void, |
| 3198 |
pnData: *mut ::std::os::raw::c_int, |
| 3199 |
) -> ::std::os::raw::c_int, |
| 3200 |
>, |
| 3201 |
pIn: *mut ::std::os::raw::c_void, |
| 3202 |
xOutput: ::std::option::Option< |
| 3203 |
unsafe extern "C" fn( |
| 3204 |
pOut: *mut ::std::os::raw::c_void, |
| 3205 |
pData: *const ::std::os::raw::c_void, |
| 3206 |
nData: ::std::os::raw::c_int, |
| 3207 |
) -> ::std::os::raw::c_int, |
| 3208 |
>, |
| 3209 |
pOut: *mut ::std::os::raw::c_void, |
| 3210 |
) -> ::std::os::raw::c_int; |
| 3211 |
} |
| 3212 |
extern "C" { |
| 3213 |
pub fn sqlite3session_config( |
| 3214 |
op: ::std::os::raw::c_int, |
| 3215 |
pArg: *mut ::std::os::raw::c_void, |
| 3216 |
) -> ::std::os::raw::c_int; |
| 3217 |
} |
| 3218 |
#[repr(C)] |
| 3219 |
#[derive(Debug, Copy, Clone)] |
| 3220 |
pub struct Fts5Context { |
| 3221 |
_unused: [u8; 0], |
| 3222 |
} |
| 3223 |
pub type fts5_extension_function = ::std::option::Option< |
| 3224 |
unsafe extern "C" fn( |
| 3225 |
pApi: *const Fts5ExtensionApi, |
| 3226 |
pFts: *mut Fts5Context, |
| 3227 |
pCtx: *mut sqlite3_context, |
| 3228 |
nVal: ::std::os::raw::c_int, |
| 3229 |
apVal: *mut *mut sqlite3_value, |
| 3230 |
), |
| 3231 |
>; |
| 3232 |
#[repr(C)] |
| 3233 |
#[derive(Debug, Copy, Clone)] |
| 3234 |
pub struct Fts5PhraseIter { |
| 3235 |
pub a: *const ::std::os::raw::c_uchar, |
| 3236 |
pub b: *const ::std::os::raw::c_uchar, |
| 3237 |
} |
| 3238 |
#[repr(C)] |
| 3239 |
#[derive(Debug, Copy, Clone)] |
| 3240 |
pub struct Fts5ExtensionApi { |
| 3241 |
pub iVersion: ::std::os::raw::c_int, |
| 3242 |
pub xUserData: ::std::option::Option< |
| 3243 |
unsafe extern "C" fn(arg1: *mut Fts5Context) -> *mut ::std::os::raw::c_void, |
| 3244 |
>, |
| 3245 |
pub xColumnCount: ::std::option::Option< |
| 3246 |
unsafe extern "C" fn(arg1: *mut Fts5Context) -> ::std::os::raw::c_int, |
| 3247 |
>, |
| 3248 |
pub xRowCount: ::std::option::Option< |
| 3249 |
unsafe extern "C" fn( |
| 3250 |
arg1: *mut Fts5Context, |
| 3251 |
pnRow: *mut sqlite3_int64, |
| 3252 |
) -> ::std::os::raw::c_int, |
| 3253 |
>, |
| 3254 |
pub xColumnTotalSize: ::std::option::Option< |
| 3255 |
unsafe extern "C" fn( |
| 3256 |
arg1: *mut Fts5Context, |
| 3257 |
iCol: ::std::os::raw::c_int, |
| 3258 |
pnToken: *mut sqlite3_int64, |
| 3259 |
) -> ::std::os::raw::c_int, |
| 3260 |
>, |
| 3261 |
pub xTokenize: ::std::option::Option< |
| 3262 |
unsafe extern "C" fn( |
| 3263 |
arg1: *mut Fts5Context, |
| 3264 |
pText: *const ::std::os::raw::c_char, |
| 3265 |
nText: ::std::os::raw::c_int, |
| 3266 |
pCtx: *mut ::std::os::raw::c_void, |
| 3267 |
xToken: ::std::option::Option< |
| 3268 |
unsafe extern "C" fn( |
| 3269 |
arg1: *mut ::std::os::raw::c_void, |
| 3270 |
arg2: ::std::os::raw::c_int, |
| 3271 |
arg3: *const ::std::os::raw::c_char, |
| 3272 |
arg4: ::std::os::raw::c_int, |
| 3273 |
arg5: ::std::os::raw::c_int, |
| 3274 |
arg6: ::std::os::raw::c_int, |
| 3275 |
) -> ::std::os::raw::c_int, |
| 3276 |
>, |
| 3277 |
) -> ::std::os::raw::c_int, |
| 3278 |
>, |
| 3279 |
pub xPhraseCount: ::std::option::Option< |
| 3280 |
unsafe extern "C" fn(arg1: *mut Fts5Context) -> ::std::os::raw::c_int, |
| 3281 |
>, |
| 3282 |
pub xPhraseSize: ::std::option::Option< |
| 3283 |
unsafe extern "C" fn( |
| 3284 |
arg1: *mut Fts5Context, |
| 3285 |
iPhrase: ::std::os::raw::c_int, |
| 3286 |
) -> ::std::os::raw::c_int, |
| 3287 |
>, |
| 3288 |
pub xInstCount: ::std::option::Option< |
| 3289 |
unsafe extern "C" fn( |
| 3290 |
arg1: *mut Fts5Context, |
| 3291 |
pnInst: *mut ::std::os::raw::c_int, |
| 3292 |
) -> ::std::os::raw::c_int, |
| 3293 |
>, |
| 3294 |
pub xInst: ::std::option::Option< |
| 3295 |
unsafe extern "C" fn( |
| 3296 |
arg1: *mut Fts5Context, |
| 3297 |
iIdx: ::std::os::raw::c_int, |
| 3298 |
piPhrase: *mut ::std::os::raw::c_int, |
| 3299 |
piCol: *mut ::std::os::raw::c_int, |
| 3300 |
piOff: *mut ::std::os::raw::c_int, |
| 3301 |
) -> ::std::os::raw::c_int, |
| 3302 |
>, |
| 3303 |
pub xRowid: |
| 3304 |
::std::option::Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> sqlite3_int64>, |
| 3305 |
pub xColumnText: ::std::option::Option< |
| 3306 |
unsafe extern "C" fn( |
| 3307 |
arg1: *mut Fts5Context, |
| 3308 |
iCol: ::std::os::raw::c_int, |
| 3309 |
pz: *mut *const ::std::os::raw::c_char, |
| 3310 |
pn: *mut ::std::os::raw::c_int, |
| 3311 |
) -> ::std::os::raw::c_int, |
| 3312 |
>, |
| 3313 |
pub xColumnSize: ::std::option::Option< |
| 3314 |
unsafe extern "C" fn( |
| 3315 |
arg1: *mut Fts5Context, |
| 3316 |
iCol: ::std::os::raw::c_int, |
| 3317 |
pnToken: *mut ::std::os::raw::c_int, |
| 3318 |
) -> ::std::os::raw::c_int, |
| 3319 |
>, |
| 3320 |
pub xQueryPhrase: ::std::option::Option< |
| 3321 |
unsafe extern "C" fn( |
| 3322 |
arg1: *mut Fts5Context, |
| 3323 |
iPhrase: ::std::os::raw::c_int, |
| 3324 |
pUserData: *mut ::std::os::raw::c_void, |
| 3325 |
arg2: ::std::option::Option< |
| 3326 |
unsafe extern "C" fn( |
| 3327 |
arg1: *const Fts5ExtensionApi, |
| 3328 |
arg2: *mut Fts5Context, |
| 3329 |
arg3: *mut ::std::os::raw::c_void, |
| 3330 |
) -> ::std::os::raw::c_int, |
| 3331 |
>, |
| 3332 |
) -> ::std::os::raw::c_int, |
| 3333 |
>, |
| 3334 |
pub xSetAuxdata: ::std::option::Option< |
| 3335 |
unsafe extern "C" fn( |
| 3336 |
arg1: *mut Fts5Context, |
| 3337 |
pAux: *mut ::std::os::raw::c_void, |
| 3338 |
xDelete: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 3339 |
) -> ::std::os::raw::c_int, |
| 3340 |
>, |
| 3341 |
pub xGetAuxdata: ::std::option::Option< |
| 3342 |
unsafe extern "C" fn( |
| 3343 |
arg1: *mut Fts5Context, |
| 3344 |
bClear: ::std::os::raw::c_int, |
| 3345 |
) -> *mut ::std::os::raw::c_void, |
| 3346 |
>, |
| 3347 |
pub xPhraseFirst: ::std::option::Option< |
| 3348 |
unsafe extern "C" fn( |
| 3349 |
arg1: *mut Fts5Context, |
| 3350 |
iPhrase: ::std::os::raw::c_int, |
| 3351 |
arg2: *mut Fts5PhraseIter, |
| 3352 |
arg3: *mut ::std::os::raw::c_int, |
| 3353 |
arg4: *mut ::std::os::raw::c_int, |
| 3354 |
) -> ::std::os::raw::c_int, |
| 3355 |
>, |
| 3356 |
pub xPhraseNext: ::std::option::Option< |
| 3357 |
unsafe extern "C" fn( |
| 3358 |
arg1: *mut Fts5Context, |
| 3359 |
arg2: *mut Fts5PhraseIter, |
| 3360 |
piCol: *mut ::std::os::raw::c_int, |
| 3361 |
piOff: *mut ::std::os::raw::c_int, |
| 3362 |
), |
| 3363 |
>, |
| 3364 |
pub xPhraseFirstColumn: ::std::option::Option< |
| 3365 |
unsafe extern "C" fn( |
| 3366 |
arg1: *mut Fts5Context, |
| 3367 |
iPhrase: ::std::os::raw::c_int, |
| 3368 |
arg2: *mut Fts5PhraseIter, |
| 3369 |
arg3: *mut ::std::os::raw::c_int, |
| 3370 |
) -> ::std::os::raw::c_int, |
| 3371 |
>, |
| 3372 |
pub xPhraseNextColumn: ::std::option::Option< |
| 3373 |
unsafe extern "C" fn( |
| 3374 |
arg1: *mut Fts5Context, |
| 3375 |
arg2: *mut Fts5PhraseIter, |
| 3376 |
piCol: *mut ::std::os::raw::c_int, |
| 3377 |
), |
| 3378 |
>, |
| 3379 |
pub xQueryToken: ::std::option::Option< |
| 3380 |
unsafe extern "C" fn( |
| 3381 |
arg1: *mut Fts5Context, |
| 3382 |
iPhrase: ::std::os::raw::c_int, |
| 3383 |
iToken: ::std::os::raw::c_int, |
| 3384 |
ppToken: *mut *const ::std::os::raw::c_char, |
| 3385 |
pnToken: *mut ::std::os::raw::c_int, |
| 3386 |
) -> ::std::os::raw::c_int, |
| 3387 |
>, |
| 3388 |
pub xInstToken: ::std::option::Option< |
| 3389 |
unsafe extern "C" fn( |
| 3390 |
arg1: *mut Fts5Context, |
| 3391 |
iIdx: ::std::os::raw::c_int, |
| 3392 |
iToken: ::std::os::raw::c_int, |
| 3393 |
arg2: *mut *const ::std::os::raw::c_char, |
| 3394 |
arg3: *mut ::std::os::raw::c_int, |
| 3395 |
) -> ::std::os::raw::c_int, |
| 3396 |
>, |
| 3397 |
} |
| 3398 |
#[repr(C)] |
| 3399 |
#[derive(Debug, Copy, Clone)] |
| 3400 |
pub struct Fts5Tokenizer { |
| 3401 |
_unused: [u8; 0], |
| 3402 |
} |
| 3403 |
#[repr(C)] |
| 3404 |
#[derive(Debug, Copy, Clone)] |
| 3405 |
pub struct fts5_tokenizer { |
| 3406 |
pub xCreate: ::std::option::Option< |
| 3407 |
unsafe extern "C" fn( |
| 3408 |
arg1: *mut ::std::os::raw::c_void, |
| 3409 |
azArg: *mut *const ::std::os::raw::c_char, |
| 3410 |
nArg: ::std::os::raw::c_int, |
| 3411 |
ppOut: *mut *mut Fts5Tokenizer, |
| 3412 |
) -> ::std::os::raw::c_int, |
| 3413 |
>, |
| 3414 |
pub xDelete: ::std::option::Option<unsafe extern "C" fn(arg1: *mut Fts5Tokenizer)>, |
| 3415 |
pub xTokenize: ::std::option::Option< |
| 3416 |
unsafe extern "C" fn( |
| 3417 |
arg1: *mut Fts5Tokenizer, |
| 3418 |
pCtx: *mut ::std::os::raw::c_void, |
| 3419 |
flags: ::std::os::raw::c_int, |
| 3420 |
pText: *const ::std::os::raw::c_char, |
| 3421 |
nText: ::std::os::raw::c_int, |
| 3422 |
xToken: ::std::option::Option< |
| 3423 |
unsafe extern "C" fn( |
| 3424 |
pCtx: *mut ::std::os::raw::c_void, |
| 3425 |
tflags: ::std::os::raw::c_int, |
| 3426 |
pToken: *const ::std::os::raw::c_char, |
| 3427 |
nToken: ::std::os::raw::c_int, |
| 3428 |
iStart: ::std::os::raw::c_int, |
| 3429 |
iEnd: ::std::os::raw::c_int, |
| 3430 |
) -> ::std::os::raw::c_int, |
| 3431 |
>, |
| 3432 |
) -> ::std::os::raw::c_int, |
| 3433 |
>, |
| 3434 |
} |
| 3435 |
#[repr(C)] |
| 3436 |
#[derive(Debug, Copy, Clone)] |
| 3437 |
pub struct fts5_api { |
| 3438 |
pub iVersion: ::std::os::raw::c_int, |
| 3439 |
pub xCreateTokenizer: ::std::option::Option< |
| 3440 |
unsafe extern "C" fn( |
| 3441 |
pApi: *mut fts5_api, |
| 3442 |
zName: *const ::std::os::raw::c_char, |
| 3443 |
pUserData: *mut ::std::os::raw::c_void, |
| 3444 |
pTokenizer: *mut fts5_tokenizer, |
| 3445 |
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 3446 |
) -> ::std::os::raw::c_int, |
| 3447 |
>, |
| 3448 |
pub xFindTokenizer: ::std::option::Option< |
| 3449 |
unsafe extern "C" fn( |
| 3450 |
pApi: *mut fts5_api, |
| 3451 |
zName: *const ::std::os::raw::c_char, |
| 3452 |
ppUserData: *mut *mut ::std::os::raw::c_void, |
| 3453 |
pTokenizer: *mut fts5_tokenizer, |
| 3454 |
) -> ::std::os::raw::c_int, |
| 3455 |
>, |
| 3456 |
pub xCreateFunction: ::std::option::Option< |
| 3457 |
unsafe extern "C" fn( |
| 3458 |
pApi: *mut fts5_api, |
| 3459 |
zName: *const ::std::os::raw::c_char, |
| 3460 |
pUserData: *mut ::std::os::raw::c_void, |
| 3461 |
xFunction: fts5_extension_function, |
| 3462 |
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>, |
| 3463 |
) -> ::std::os::raw::c_int, |
| 3464 |
>, |
| 3465 |
} |