Lines Matching defs:sqlite3
11 ** programs, you need this file and the "sqlite3.h" header file that defines
13 ** the "sqlite3.h" header file at hand, you will find a copy embedded within
14 ** the text of this file. Search for "Begin file sqlite3.h" to find the start
15 ** of the embedded sqlite3.h header file.) Additional code files may be needed
17 ** language. The code for the "sqlite3" command-line shell is also in a
276 /************** Include sqlite3.h in the middle of sqliteInt.h ***************/
277 /************** Begin file sqlite3.h *****************************************/
307 ** the version number) and changes its name to "sqlite3.h" as
376 ** ^(The [SQLITE_VERSION] C preprocessor macro in the sqlite3.h header
379 ** SQLite3) and Y is the minor version number and Z is the release number.)^
510 ** the opaque structure named "sqlite3". It is useful to think of an sqlite3
517 ** sqlite3 object.
519 typedef struct sqlite3 sqlite3;
564 ** DESTRUCTOR: sqlite3
567 ** for the [sqlite3] object.
569 ** the [sqlite3] object is successfully destroyed and all associated
586 ** with the [sqlite3] object prior to attempting to close the object. ^If
593 ** ^If an [sqlite3] object is destroyed while a transaction is open,
598 ** pointer or an [sqlite3] object pointer obtained
604 SQLITE_API int sqlite3_close(sqlite3*);
605 SQLITE_API int sqlite3_close_v2(sqlite3*);
616 ** METHOD: sqlite3
677 sqlite3*, /* An open database */
1727 ** METHOD: sqlite3
1742 SQLITE_API int sqlite3_db_config(sqlite3*, int op, ...);
2085 ** be a pointer to a function of type void(*)(void*,sqlite3*,const char*, int).
2300 ** METHOD: sqlite3
2306 SQLITE_API int sqlite3_extended_result_codes(sqlite3*, int onoff);
2310 ** METHOD: sqlite3
2368 SQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);
2372 ** METHOD: sqlite3
2378 SQLITE_API void sqlite3_set_last_insert_rowid(sqlite3*,sqlite3_int64);
2382 ** METHOD: sqlite3
2431 SQLITE_API int sqlite3_changes(sqlite3*);
2435 ** METHOD: sqlite3
2455 SQLITE_API int sqlite3_total_changes(sqlite3*);
2459 ** METHOD: sqlite3
2495 SQLITE_API void sqlite3_interrupt(sqlite3*);
2536 ** METHOD: sqlite3
2592 SQLITE_API int sqlite3_busy_handler(sqlite3*,int(*)(void*,int),void*);
2596 ** METHOD: sqlite3
2615 SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms);
2619 ** METHOD: sqlite3
2691 sqlite3 *db, /* An open database */
2955 ** METHOD: sqlite3
3035 sqlite3*,
3112 ** METHOD: sqlite3
3142 SQLITE_API SQLITE_DEPRECATED void *sqlite3_trace(sqlite3*,
3144 SQLITE_API SQLITE_DEPRECATED void *sqlite3_profile(sqlite3*,
3206 ** METHOD: sqlite3
3234 sqlite3*,
3242 ** METHOD: sqlite3
3272 SQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
3276 ** CONSTRUCTOR: sqlite3
3283 ** if SQLite is unable to allocate memory to hold the [sqlite3] object,
3284 ** a NULL will be written into *ppDb instead of a pointer to the [sqlite3]
3503 sqlite3 **ppDb /* OUT: SQLite db handle */
3507 sqlite3 **ppDb /* OUT: SQLite db handle */
3511 sqlite3 **ppDb, /* OUT: SQLite db handle */
3562 ** METHOD: sqlite3
3601 SQLITE_API int sqlite3_errcode(sqlite3 *db);
3602 SQLITE_API int sqlite3_extended_errcode(sqlite3 *db);
3603 SQLITE_API const char *sqlite3_errmsg(sqlite3*);
3604 SQLITE_API const void *sqlite3_errmsg16(sqlite3*);
3635 ** METHOD: sqlite3
3673 SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal);
3748 ** METHOD: sqlite3
3827 sqlite3 *db, /* Database handle */
3834 sqlite3 *db, /* Database handle */
3841 sqlite3 *db, /* Database handle */
3848 sqlite3 *db, /* Database handle */
4692 ** METHOD: sqlite3
4786 sqlite3 *db,
4796 sqlite3 *db,
4806 sqlite3 *db,
5022 SQLITE_API sqlite3 *sqlite3_context_db_handle(sqlite3_context*);
5252 ** METHOD: sqlite3
5331 sqlite3*,
5338 sqlite3*,
5346 sqlite3*,
5355 ** METHOD: sqlite3
5381 sqlite3*,
5383 void(*)(void*,sqlite3*,int eTextRep,const char*)
5386 sqlite3*,
5388 void(*)(void*,sqlite3*,int eTextRep,const void*)
5400 sqlite3 *db, /* Database to be rekeyed */
5404 sqlite3 *db, /* Database to be rekeyed */
5418 sqlite3 *db, /* Database to be rekeyed */
5422 sqlite3 *db, /* Database to be rekeyed */
5563 ** METHOD: sqlite3
5582 SQLITE_API int sqlite3_get_autocommit(sqlite3*);
5595 SQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt*);
5599 ** METHOD: sqlite3
5612 SQLITE_API const char *sqlite3_db_filename(sqlite3 *db, const char *zDbName);
5616 ** METHOD: sqlite3
5622 SQLITE_API int sqlite3_db_readonly(sqlite3 *db, const char *zDbName);
5626 ** METHOD: sqlite3
5638 SQLITE_API sqlite3_stmt *sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt);
5642 ** METHOD: sqlite3
5687 SQLITE_API void *sqlite3_commit_hook(sqlite3*, int(*)(void*), void*);
5688 SQLITE_API void *sqlite3_rollback_hook(sqlite3*, void(*)(void *), void*);
5692 ** METHOD: sqlite3
5740 sqlite3*,
5800 ** METHOD: sqlite3
5810 SQLITE_API int sqlite3_db_release_memory(sqlite3*);
5879 ** METHOD: sqlite3
5945 sqlite3 *db, /* Connection handle */
5958 ** METHOD: sqlite3
6001 sqlite3 *db, /* Load the extension into this database connection */
6009 ** METHOD: sqlite3
6032 SQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff);
6049 ** sqlite3 *db,
6127 int (*xCreate)(sqlite3*, void *pAux,
6130 int (*xConnect)(sqlite3*, void *pAux,
6313 ** METHOD: sqlite3
6338 sqlite3 *db, /* SQLite connection to register module with */
6344 sqlite3 *db, /* SQLite connection to register module with */
6406 SQLITE_API int sqlite3_declare_vtab(sqlite3*, const char *zSQL);
6410 ** METHOD: sqlite3
6425 SQLITE_API int sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg);
6453 ** METHOD: sqlite3
6535 sqlite3*,
6973 ** METHOD: sqlite3
6981 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);
6985 ** METHOD: sqlite3
7016 SQLITE_API int sqlite3_file_control(sqlite3*, const char *zDbName, int op, void*);
7204 ** METHOD: sqlite3
7225 SQLITE_API int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int resetFlg);
7838 sqlite3 *pDest, /* Destination database handle */
7840 sqlite3 *pSource, /* Source database handle */
7850 ** METHOD: sqlite3
7964 sqlite3 *pBlocked, /* Waiting connection */
8046 ** METHOD: sqlite3
8079 sqlite3*,
8080 int(*)(void *,sqlite3*,const char*,int),
8086 ** METHOD: sqlite3
8113 SQLITE_API int sqlite3_wal_autocheckpoint(sqlite3 *db, int N);
8117 ** METHOD: sqlite3
8135 SQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);
8139 ** METHOD: sqlite3
8230 sqlite3 *db, /* Database handle */
8265 SQLITE_API int sqlite3_vtab_config(sqlite3*, int op, ...);
8318 SQLITE_API int sqlite3_vtab_on_conflict(sqlite3 *);
8471 SQLITE_API int sqlite3_db_cacheflush(sqlite3*);
8557 sqlite3 *db,
8560 sqlite3 *db, /* Database handle */
8569 SQLITE_API int sqlite3_preupdate_old(sqlite3 *, int, sqlite3_value **);
8570 SQLITE_API int sqlite3_preupdate_count(sqlite3 *);
8571 SQLITE_API int sqlite3_preupdate_depth(sqlite3 *);
8572 SQLITE_API int sqlite3_preupdate_new(sqlite3 *, int, sqlite3_value **);
8585 SQLITE_API int sqlite3_system_errno(sqlite3*);
8661 sqlite3 *db,
8699 sqlite3 *db,
8764 SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_recover(sqlite3 *db, const char *zDb);
8820 sqlite3 *db,
8846 sqlite3 *db,
8952 sqlite3 *db, /* Database handle */
9924 sqlite3 *db, /* Apply change to "main" db of this handle */
10125 sqlite3 *db, /* Apply change to "main" db of this handle */
10770 /************** End of sqlite3.h *********************************************/
12232 sqlite3 *db, /* Associated database connection */
12521 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3*);
12536 SQLITE_PRIVATE void sqlite3BtreeLeaveAll(sqlite3*);
12540 SQLITE_PRIVATE int sqlite3BtreeHoldsAllMutexes(sqlite3*);
12541 SQLITE_PRIVATE int sqlite3SchemaMutexHeld(sqlite3*,int,Schema*);
12981 SQLITE_PRIVATE void sqlite3VdbeClearObject(sqlite3*,Vdbe*);
12995 SQLITE_PRIVATE sqlite3 *sqlite3VdbeDb(Vdbe*);
13044 ** numbers in the sqlite3.c source file. VDBE branch coverage testing
13214 SQLITE_PRIVATE int sqlite3PagerClose(Pager *pPager, sqlite3*);
13265 SQLITE_PRIVATE int sqlite3PagerCheckpoint(Pager *pPager, sqlite3*, int, int*, int*);
13269 SQLITE_PRIVATE int sqlite3PagerCloseWal(Pager *pPager, sqlite3*);
13923 ** the Schema for the TEMP databaes (sqlite3.aDb[1]) which is free-standing.
13933 ** holding a mutex on the sqlite3 connection pointer that owns the Btree.
14028 ** Information held in the "sqlite3" database connection object and used
14047 SQLITE_PRIVATE int sqlite3UserAuthCheckLogin(sqlite3*,const char*,u8*);
14048 SQLITE_PRIVATE void sqlite3UserAuthInit(sqlite3*);
14077 struct sqlite3 {
14138 void*,sqlite3*,int,char const*,char const*,sqlite3_int64,sqlite3_int64
14143 int (*xWalCallback)(void *, sqlite3 *, const char *, int);
14146 void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*);
14147 void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*);
14184 ** mutex, not by sqlite3.mutex. They are used by code in notify.c.
14193 sqlite3 *pBlockingConnection; /* Connection that caused SQLITE_LOCKED */
14194 sqlite3 *pUnlockConnection; /* Connection to watch for unlock */
14197 sqlite3 *pNextBlocked; /* Next in list of all blocked connections */
14211 ** Possible values for the sqlite3.flags.
14256 ** Bits of the sqlite3.dbOptFlags field that are used by the
14433 ** sqlite3.pSavepoint. The first element in the list is the most recently
14455 ** instance of the following structure, stored in the sqlite3.aModule
14558 ** structure for each database connection (sqlite3*) that uses the shared
14583 ** another linked list headed by the sqlite3.pDisconnect member of the
14584 ** corresponding sqlite3 structure. They are then deleted/xDisconnected
14585 ** next time a statement is prepared using said sqlite3*. This is done
14586 ** to avoid deadlock issues involving multiple sqlite3.mutex mutexes.
14588 ** explanation as to why it is safe to add an entry to an sqlite3.pDisconnect
14589 ** list without holding the corresponding sqlite3.mutex mutex.
14596 sqlite3 *db; /* Database connection associated with this table */
14795 sqlite3 *db; /* The database connection */
15620 int iDb; /* Index in sqlite3.aDb[] of database holding pTab */
15693 sqlite3 *db; /* The main database structure */
15861 * 1. In the "trigHash" hash table (part of the sqlite3* that represents the
15966 sqlite3 *db; /* Optional database for lookaside. Can be NULL */
15989 sqlite3 *db; /* The database being initialized */
16040 void(*xSqllog)(void*,sqlite3*,const char*, int);
16238 SQLITE_PRIVATE void *sqlite3DbMallocZero(sqlite3*, u64);
16239 SQLITE_PRIVATE void *sqlite3DbMallocRaw(sqlite3*, u64);
16240 SQLITE_PRIVATE void *sqlite3DbMallocRawNN(sqlite3*, u64);
16241 SQLITE_PRIVATE char *sqlite3DbStrDup(sqlite3*,const char*);
16242 SQLITE_PRIVATE char *sqlite3DbStrNDup(sqlite3*,const char*, u64);
16244 SQLITE_PRIVATE void *sqlite3DbReallocOrFree(sqlite3 *, void *, u64);
16245 SQLITE_PRIVATE void *sqlite3DbRealloc(sqlite3 *, void *, u64);
16246 SQLITE_PRIVATE void sqlite3DbFree(sqlite3*, void*);
16248 SQLITE_PRIVATE int sqlite3DbMallocSize(sqlite3*, void*);
16329 SQLITE_PRIVATE char *sqlite3MPrintf(sqlite3*,const char*, ...);
16330 SQLITE_PRIVATE char *sqlite3VMPrintf(sqlite3*,const char*, va_list);
16347 SQLITE_PRIVATE void sqlite3SetString(char **, sqlite3*, const char*);
16362 SQLITE_PRIVATE Expr *sqlite3ExprAlloc(sqlite3*,int,const Token*,int);
16363 SQLITE_PRIVATE Expr *sqlite3Expr(sqlite3*,int,const char*);
16364 SQLITE_PRIVATE void sqlite3ExprAttachSubtrees(sqlite3*,Expr*,Expr*,Expr*);
16367 SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3*,Expr*, Expr*);
16370 SQLITE_PRIVATE void sqlite3ExprDelete(sqlite3*, Expr*);
16376 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3*, ExprList*);
16378 SQLITE_PRIVATE int sqlite3Init(sqlite3*, char**);
16382 SQLITE_PRIVATE Module *sqlite3PragmaVtabRegister(sqlite3*,const char *zName);
16384 SQLITE_PRIVATE void sqlite3ResetAllSchemasOfConnection(sqlite3*);
16385 SQLITE_PRIVATE void sqlite3ResetOneSchema(sqlite3*,int);
16386 SQLITE_PRIVATE void sqlite3CollapseDatabaseArray(sqlite3*);
16387 SQLITE_PRIVATE void sqlite3CommitInternalChanges(sqlite3*);
16388 SQLITE_PRIVATE void sqlite3DeleteColumnNames(sqlite3*,Table*);
16410 SQLITE_PRIVATE Btree *sqlite3DbNameToBtree(sqlite3*,const char*);
16429 SQLITE_PRIVATE RowSet *sqlite3RowSetInit(sqlite3*, void*, unsigned int);
16448 SQLITE_PRIVATE void sqlite3DeleteTable(sqlite3*, Table*);
16457 SQLITE_PRIVATE void *sqlite3ArrayAllocate(sqlite3*,void*,int,int*,int*);
16458 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3*, IdList*, Token*);
16460 SQLITE_PRIVATE SrcList *sqlite3SrcListEnlarge(sqlite3*, SrcList*, int, int);
16461 SQLITE_PRIVATE SrcList *sqlite3SrcListAppend(sqlite3*, SrcList*, Token*, Token*);
16469 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3*, IdList*);
16470 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3*, SrcList*);
16471 SQLITE_PRIVATE Index *sqlite3AllocateIndexObject(sqlite3*,i16,int,char**);
16478 SQLITE_PRIVATE void sqlite3SelectDelete(sqlite3*, Select*);
16526 SQLITE_PRIVATE Table *sqlite3FindTable(sqlite3*,const char*, const char*);
16531 SQLITE_PRIVATE Index *sqlite3FindIndex(sqlite3*,const char*, const char*);
16532 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTable(sqlite3*,int,const char*);
16533 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteIndex(sqlite3*,int,const char*);
16535 SQLITE_PRIVATE int sqlite3RunVacuum(char**, sqlite3*, int);
16536 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3*, Token*);
16550 SQLITE_PRIVATE void sqlite3RollbackAll(sqlite3*,int);
16557 SQLITE_PRIVATE void sqlite3CloseSavepoints(sqlite3 *);
16558 SQLITE_PRIVATE void sqlite3LeaveMutexAndCloseZombie(sqlite3*);
16590 SQLITE_PRIVATE Expr *sqlite3ExprDup(sqlite3*,Expr*,int);
16591 SQLITE_PRIVATE ExprList *sqlite3ExprListDup(sqlite3*,ExprList*,int);
16592 SQLITE_PRIVATE SrcList *sqlite3SrcListDup(sqlite3*,SrcList*,int);
16593 SQLITE_PRIVATE IdList *sqlite3IdListDup(sqlite3*,IdList*);
16594 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3*,Select*,int);
16601 SQLITE_PRIVATE FuncDef *sqlite3FindFunction(sqlite3*,const char*,int,u8,u8);
16604 SQLITE_PRIVATE void sqlite3RegisterPerConnectionBuiltinFunctions(sqlite3*);
16605 SQLITE_PRIVATE int sqlite3SafetyCheckOk(sqlite3*);
16606 SQLITE_PRIVATE int sqlite3SafetyCheckSickOrOk(sqlite3*);
16625 SQLITE_PRIVATE void sqlite3DeleteTriggerStep(sqlite3*, TriggerStep*);
16626 SQLITE_PRIVATE TriggerStep *sqlite3TriggerSelectStep(sqlite3*,Select*);
16627 SQLITE_PRIVATE TriggerStep *sqlite3TriggerInsertStep(sqlite3*,Token*, IdList*,
16629 SQLITE_PRIVATE TriggerStep *sqlite3TriggerUpdateStep(sqlite3*,Token*,ExprList*, Expr*, u8);
16630 SQLITE_PRIVATE TriggerStep *sqlite3TriggerDeleteStep(sqlite3*,Token*, Expr*);
16631 SQLITE_PRIVATE void sqlite3DeleteTrigger(sqlite3*, Trigger*);
16632 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTrigger(sqlite3*,int,const char*);
16688 SQLITE_PRIVATE VList *sqlite3VListAdd(sqlite3*,VList*,const char*,int,int);
16716 SQLITE_PRIVATE const char *sqlite3IndexAffinityStr(sqlite3*, Index*);
16724 SQLITE_PRIVATE void sqlite3ErrorWithMsg(sqlite3*, int, const char*,...);
16725 SQLITE_PRIVATE void sqlite3Error(sqlite3*,int);
16726 SQLITE_PRIVATE void sqlite3SystemError(sqlite3*,int);
16727 SQLITE_PRIVATE void *sqlite3HexToBlob(sqlite3*, const char *z, int n);
16737 SQLITE_PRIVATE CollSeq *sqlite3FindCollSeq(sqlite3*,u8 enc, const char*,int);
16745 SQLITE_PRIVATE void sqlite3VdbeSetChanges(sqlite3 *, int);
16763 SQLITE_PRIVATE sqlite3_value *sqlite3ValueNew(sqlite3 *);
16764 SQLITE_PRIVATE char *sqlite3Utf16to8(sqlite3 *, const void*, int, u8);
16765 SQLITE_PRIVATE int sqlite3ValueFromExpr(sqlite3 *, Expr *, u8, u8, sqlite3_value **);
16779 SQLITE_PRIVATE void sqlite3RootPageMoved(sqlite3*, int, int, int);
16785 SQLITE_PRIVATE void sqlite3ExpirePreparedStatements(sqlite3*);
16802 SQLITE_PRIVATE int sqlite3FindDb(sqlite3*, Token*);
16803 SQLITE_PRIVATE int sqlite3FindDbName(sqlite3 *, const char *);
16804 SQLITE_PRIVATE int sqlite3AnalysisLoad(sqlite3*,int iDB);
16805 SQLITE_PRIVATE void sqlite3DeleteIndexSamples(sqlite3*,Index*);
16807 SQLITE_PRIVATE void sqlite3RegisterLikeFunctions(sqlite3*, int);
16808 SQLITE_PRIVATE int sqlite3IsLikeFunction(sqlite3*,Expr*,int*,char*);
16810 SQLITE_PRIVATE Schema *sqlite3SchemaGet(sqlite3 *, Btree *);
16811 SQLITE_PRIVATE int sqlite3SchemaToIndex(sqlite3 *db, Schema *);
16812 SQLITE_PRIVATE KeyInfo *sqlite3KeyInfoAlloc(sqlite3*,int,int);
16819 SQLITE_PRIVATE int sqlite3CreateFunc(sqlite3 *, const char *, int, int, void *,
16824 SQLITE_PRIVATE void sqlite3OomFault(sqlite3*);
16825 SQLITE_PRIVATE void sqlite3OomClear(sqlite3*);
16826 SQLITE_PRIVATE int sqlite3ApiExit(sqlite3 *db, int);
16829 SQLITE_PRIVATE void sqlite3StrAccumInit(StrAccum*, sqlite3*, char*, int, int);
16836 SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *, SrcList *, int, int);
16853 SQLITE_PRIVATE int sqlite3Stat4Column(sqlite3*, const void*, int, int, sqlite3_value**);
16854 SQLITE_PRIVATE char sqlite3IndexColumnAffinity(sqlite3*, Index*, int);
16869 SQLITE_PRIVATE void sqlite3AutoLoadExtensions(sqlite3*);
16871 SQLITE_PRIVATE void sqlite3CloseExtensions(sqlite3*);
16898 SQLITE_PRIVATE void sqlite3VtabClear(sqlite3 *db, Table*);
16899 SQLITE_PRIVATE void sqlite3VtabDisconnect(sqlite3 *db, Table *p);
16900 SQLITE_PRIVATE int sqlite3VtabSync(sqlite3 *db, Vdbe*);
16901 SQLITE_PRIVATE int sqlite3VtabRollback(sqlite3 *db);
16902 SQLITE_PRIVATE int sqlite3VtabCommit(sqlite3 *db);
16905 SQLITE_PRIVATE void sqlite3VtabUnlockList(sqlite3*);
16906 SQLITE_PRIVATE int sqlite3VtabSavepoint(sqlite3 *, int, int);
16908 SQLITE_PRIVATE VTable *sqlite3GetVTable(sqlite3*, Table*);
16910 sqlite3*,
16919 SQLITE_PRIVATE void sqlite3VtabEponymousTableClear(sqlite3*,Module*);
16925 SQLITE_PRIVATE int sqlite3VtabCallCreate(sqlite3*, int, const char *, char **);
16927 SQLITE_PRIVATE int sqlite3VtabCallDestroy(sqlite3*, int, const char *);
16928 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *, VTable *);
16929 SQLITE_PRIVATE FuncDef *sqlite3VtabOverloadFunction(sqlite3 *,FuncDef*, int nArg, Expr*);
16938 SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3*);
16941 SQLITE_PRIVATE int sqlite3Checkpoint(sqlite3*, int, int, int*, int*);
16942 SQLITE_PRIVATE int sqlite3WalDefaultHook(void*,sqlite3*,const char*,int);
16946 SQLITE_PRIVATE void sqlite3WithDelete(sqlite3*,With*);
16976 SQLITE_PRIVATE void sqlite3FkDelete(sqlite3 *, Table*);
17041 SQLITE_PRIVATE void sqlite3ConnectionBlocked(sqlite3 *, sqlite3 *);
17042 SQLITE_PRIVATE void sqlite3ConnectionUnlocked(sqlite3 *db);
17043 SQLITE_PRIVATE void sqlite3ConnectionClosed(sqlite3 *db);
17119 SQLITE_PRIVATE int sqlite3DbstatRegister(sqlite3*);
18078 i64 lastRowid; /* Last insert rowid (sqlite3.lastRowid) */
18115 sqlite3 *db; /* The associated database connection */
18255 sqlite3 *db; /* The database connection that owns this statement */
18366 SQLITE_PRIVATE void sqlite3VdbeDeleteAuxData(sqlite3*, AuxData**, int, int);
18369 SQLITE_PRIVATE int sqlite3VdbeIdxKeyCompare(sqlite3*,VdbeCursor*,UnpackedRecord*,int*);
18370 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3*, BtCursor*, i64*);
18387 SQLITE_PRIVATE void sqlite3VdbeMemInit(Mem*,sqlite3*,u16);
18414 SQLITE_PRIVATE int sqlite3VdbeSorterInit(sqlite3 *, int, VdbeCursor *);
18415 SQLITE_PRIVATE void sqlite3VdbeSorterReset(sqlite3 *, VdbeSorter *);
18416 SQLITE_PRIVATE void sqlite3VdbeSorterClose(sqlite3 *, VdbeCursor *);
18418 SQLITE_PRIVATE int sqlite3VdbeSorterNext(sqlite3 *, const VdbeCursor *, int *);
18625 sqlite3 *db, /* The database connection whose status is desired */
19813 sqlite3 *db;
24597 static int isLookaside(sqlite3 *db, void *p){
24612 SQLITE_PRIVATE int sqlite3DbMallocSize(sqlite3 *db, void *p){
24658 static SQLITE_NOINLINE void measureAllocationSize(sqlite3 *db, void *p){
24666 SQLITE_PRIVATE void sqlite3DbFree(sqlite3 *db, void *p){
24778 SQLITE_PRIVATE void *sqlite3DbMallocZero(sqlite3 *db, u64 n){
24790 static SQLITE_NOINLINE void *dbMallocRawFinish(sqlite3 *db, u64 n){
24822 SQLITE_PRIVATE void *sqlite3DbMallocRaw(sqlite3 *db, u64 n){
24829 SQLITE_PRIVATE void *sqlite3DbMallocRawNN(sqlite3 *db, u64 n){
24865 static SQLITE_NOINLINE void *dbReallocFinish(sqlite3 *db, void *p, u64 n);
24871 SQLITE_PRIVATE void *sqlite3DbRealloc(sqlite3 *db, void *p, u64 n){
24878 static SQLITE_NOINLINE void *dbReallocFinish(sqlite3 *db, void *p, u64 n){
24908 SQLITE_PRIVATE void *sqlite3DbReallocOrFree(sqlite3 *db, void *p, u64 n){
24924 SQLITE_PRIVATE char *sqlite3DbStrDup(sqlite3 *db, const char *z){
24937 SQLITE_PRIVATE char *sqlite3DbStrNDup(sqlite3 *db, const char *z, u64 n){
24955 SQLITE_PRIVATE void sqlite3SetString(char **pz, sqlite3 *db, const char *zNew){
24966 SQLITE_PRIVATE void sqlite3OomFault(sqlite3 *db){
24983 SQLITE_PRIVATE void sqlite3OomClear(sqlite3 *db){
24995 static SQLITE_NOINLINE int apiOomError(sqlite3 *db){
25013 SQLITE_PRIVATE int sqlite3ApiExit(sqlite3* db, int rc){
25954 sqlite3 *db, char *zBase, int n, int mx){
25968 SQLITE_PRIVATE char *sqlite3VMPrintf(sqlite3 *db, const char *zFormat, va_list ap){
25988 SQLITE_PRIVATE char *sqlite3MPrintf(sqlite3 *db, const char *zFormat, ...){
27518 SQLITE_PRIVATE char *sqlite3Utf16to8(sqlite3 *db, const void *z, int nByte, u8 enc){
27743 static SQLITE_NOINLINE void sqlite3ErrorFinish(sqlite3 *db, int err_code){
27753 SQLITE_PRIVATE void sqlite3Error(sqlite3 *db, int err_code){
27760 ** Load the sqlite3.iSysErrno field if that is an appropriate thing
27763 SQLITE_PRIVATE void sqlite3SystemError(sqlite3 *db, int rc){
27792 SQLITE_PRIVATE void sqlite3ErrorWithMsg(sqlite3 *db, int err_code, const char *zFormat, ...){
27828 sqlite3 *db = pParse->db;
28812 SQLITE_PRIVATE void *sqlite3HexToBlob(sqlite3 *db, const char *z, int n){
28854 SQLITE_PRIVATE int sqlite3SafetyCheckOk(sqlite3 *db){
28871 SQLITE_PRIVATE int sqlite3SafetyCheckSickOrOk(sqlite3 *db){
29116 sqlite3 *db, /* The database connection used for malloc() */
30632 ** useful to the clients of the sqlite3 functions. Specifically, it is
30904 ** https://android-review.googlesource.com/#/c/115351/3/dist/sqlite3.c)
46330 sqlite3 *db; /* The database connection */
46358 SQLITE_PRIVATE RowSet *sqlite3RowSetInit(sqlite3 *db, void *pSpace, unsigned int N){
46804 SQLITE_PRIVATE int sqlite3WalClose(Wal *pWal, sqlite3*, int sync_flags, int, u8 *);
46847 sqlite3 *db, /* Check this handle's interrupt flag */
50938 SQLITE_PRIVATE int sqlite3PagerClose(Pager *pPager, sqlite3 *db){
54162 sqlite3 *db, /* Db handle used to check for interrupts */
54301 SQLITE_PRIVATE int sqlite3PagerCloseWal(Pager *pPager, sqlite3 *db){
56126 sqlite3 *db, /* Check for interrupts on this handle */
56329 sqlite3 *db, /* For interrupt flag */
57683 sqlite3 *db, /* Check this handle's interrupt flag */
58299 ** All fields in this structure are accessed under sqlite3.mutex.
58303 ** they often do so without holding sqlite3.mutex.
58306 sqlite3 *db; /* The database connection holding this btree */
58370 sqlite3 *db; /* Database connection currently using this Btree */
58833 static void SQLITE_NOINLINE btreeEnterAll(sqlite3 *db){
58847 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3 *db){
58850 static void SQLITE_NOINLINE btreeLeaveAll(sqlite3 *db){
58859 SQLITE_PRIVATE void sqlite3BtreeLeaveAll(sqlite3 *db){
58870 SQLITE_PRIVATE int sqlite3BtreeHoldsAllMutexes(sqlite3 *db){
58899 SQLITE_PRIVATE int sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema){
58926 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3 *db){
61153 sqlite3 *db, /* Associated database handle */
61830 sqlite3 *db;
62189 sqlite3 *pBlock = 0;
62783 sqlite3 *db = p->db;
68840 sqlite3* pDestDb; /* Destination database handle */
68846 sqlite3* pSrcDb; /* Source database handle */
68900 static Btree *findBtree(sqlite3 *pErrorDb, sqlite3 *pDb, const char *zDb){
68943 static int checkReadTransaction(sqlite3 *db, Btree *p){
68960 sqlite3* pDestDb, /* Database to write to */
68962 sqlite3* pSrcDb, /* Database connection to read from */
69422 sqlite3 *pSrcDb; /* Source database connection */
70252 SQLITE_PRIVATE void sqlite3VdbeMemInit(Mem *pMem, sqlite3 *db, u16 flags){
70340 sqlite3 *db = pMem->db;
70686 SQLITE_PRIVATE sqlite3_value *sqlite3ValueNew(sqlite3 *db){
70717 static sqlite3_value *valueNew(sqlite3 *db, struct ValueNewStat4Ctx *p){
70780 sqlite3 *db, /* The database connection */
70874 sqlite3 *db, /* The database connection */
71007 sqlite3 *db, /* The database connection */
71035 sqlite3 *db;
71093 sqlite3 *db = pParse->db;
71225 sqlite3 *db, /* Database handle */
71274 sqlite3 *db = aMem[0].db;
71354 sqlite3 *db = pParse->db;
72144 static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){
72150 static void vdbeFreeOpArray(sqlite3 *, Op *, int);
72155 static SQLITE_NOINLINE void freeP4Mem(sqlite3 *db, Mem *p){
72159 static SQLITE_NOINLINE void freeP4FuncCtx(sqlite3 *db, sqlite3_context *p){
72163 static void freeP4(sqlite3 *db, int p4type, void *p4){
72211 static void vdbeFreeOpArray(sqlite3 *db, Op *aOp, int nOp){
72299 sqlite3 *db;
72777 sqlite3 *db;
72798 sqlite3 *db;
72846 static void initMemArray(Mem *p, int N, sqlite3 *db, u16 flags){
72864 sqlite3 *db = p->db;
72942 sqlite3 *db = p->db; /* The database connection */
73264 sqlite3 *db; /* The database connection */
73471 sqlite3 *db = p->db;
73497 sqlite3 *db = p->db;
73546 static int vdbeCommit(sqlite3 *db, Vdbe *p){
73799 ** This routine checks that the sqlite3.nVdbeActive count variable
73800 ** matches the number of vdbe's in the list sqlite3.pVdbe that are
73808 static void checkActiveVdbeCnt(sqlite3 *db){
73841 sqlite3 *const db = p->db;
73906 sqlite3 *db = p->db;
73934 sqlite3 *db = p->db;
74146 sqlite3 *db = p->db;
74195 sqlite3 *db;
74300 SQLITE_PRIVATE void sqlite3VdbeDeleteAuxData(sqlite3 *db, AuxData **pp, int iOp, int mask){
74326 SQLITE_PRIVATE void sqlite3VdbeClearObject(sqlite3 *db, Vdbe *p){
74358 sqlite3 *db;
75712 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
75790 sqlite3 *db, /* Database connection */
75824 SQLITE_PRIVATE void sqlite3VdbeSetChanges(sqlite3 *db, int nChange){
75848 SQLITE_PRIVATE void sqlite3ExpirePreparedStatements(sqlite3 *db){
75858 SQLITE_PRIVATE sqlite3 *sqlite3VdbeDb(Vdbe *v){
75908 sqlite3 *db = p->db;
75927 static void vdbeFreeUnpacked(sqlite3 *db, int nField, UnpackedRecord *p){
75955 sqlite3 *db = v->db;
76068 static SQLITE_NOINLINE void invokeProfileCallback(sqlite3 *db, Vdbe *p){
76112 sqlite3 *db = v->db;
76137 sqlite3 *db = v->db;
76498 static int doWalCallbacks(sqlite3 *db){
76529 sqlite3 *db;
76663 sqlite3 *db; /* The database connection */
76724 SQLITE_API sqlite3 *sqlite3_context_db_handle(sqlite3_context *p){
76942 /* .db = */ (sqlite3*)0,
77100 sqlite3 *db;
77546 ** Return the sqlite3* database handle to which the prepared statement given
77551 SQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt *pStmt){
77577 SQLITE_API sqlite3_stmt *sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt){
77670 SQLITE_API int sqlite3_preupdate_old(sqlite3 *db, int iIdx, sqlite3_value **ppValue){
77731 SQLITE_API int sqlite3_preupdate_count(sqlite3 *db){
77749 SQLITE_API int sqlite3_preupdate_depth(sqlite3 *db){
77760 SQLITE_API int sqlite3_preupdate_new(sqlite3 *db, int iIdx, sqlite3_value **ppValue){
77951 ** obtained from sqlite3DbMalloc(). If sqlite3.nVdbeExec is 1, then the
77953 ** their current bindings. Or, if sqlite3.nVdbeExec is greater than 1,
77977 sqlite3 *db; /* The database connection */
78151 ** field of the sqlite3 structure is set in order to simulate an interrupt.
78699 ** checks that the sqlite3.nTransaction variable is correctly set to
78701 ** linked list starting at sqlite3.pSavepoint.
78707 static int checkSavepointCount(sqlite3 *db){
78756 sqlite3 *db = p->db; /* The database */
79530 /* If the SQLITE_CountRows flag is set in sqlite3.flags mask, then
82557 ** not NULL, then the update-hook (sqlite3.xUpdateCallback) is invoked
84678 ** P1 is the index of the database in sqlite3.aDb[] of the database
85371 sqlite3 *db; /* The associated database */
85459 sqlite3* db, /* The database connection */
85697 sqlite3 *db;
85724 sqlite3 *db;
85822 sqlite3 *db;
86176 sqlite3 *db; /* Database connection */
86780 sqlite3 *db, /* Database connection (for malloc()) */
86883 static void vdbeSorterRecordFree(sqlite3 *db, SorterRecord *pRecord){
86896 static void vdbeSortSubtaskCleanup(sqlite3 *db, SortSubtask *pTask){
87079 SQLITE_PRIVATE void sqlite3VdbeSorterReset(sqlite3 *db, VdbeSorter *pSorter){
87112 SQLITE_PRIVATE void sqlite3VdbeSorterClose(sqlite3 *db, VdbeCursor *pCsr){
87134 static void vdbeSorterExtendFile(sqlite3 *db, sqlite3_file *pFd, i64 nByte){
87154 sqlite3 *db, /* Database handle doing sort */
87402 sqlite3 *db = pTask->pSorter->db;
88034 sqlite3 *db = pTask->pSorter->db;
88345 sqlite3 *db = pTask0->pSorter->db;
88470 SQLITE_PRIVATE int sqlite3VdbeSorterNext(sqlite3 *db, const VdbeCursor *pCsr, int *pbEof){
89260 sqlite3 *db; /* The database connection */
89378 sqlite3 *db = pParse->db; /* The database connection */
89694 SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){
90075 sqlite3 *db; /* Database connection */
90147 sqlite3 *db;
90245 sqlite3 *db = pParse->db;
90356 sqlite3 *db; /* Database connection */
90870 sqlite3 *db = pParse->db;
91464 sqlite3 *db, /* Handle for sqlite3DbMallocRawNN() */
91513 sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */
91530 sqlite3 *db,
91635 SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3 *db, Expr *pLeft, Expr *pRight){
91657 sqlite3 *db = pParse->db;
91687 sqlite3 *db = pParse->db;
91754 static SQLITE_NOINLINE void sqlite3ExprDeleteNN(sqlite3 *db, Expr *p){
91781 SQLITE_PRIVATE void sqlite3ExprDelete(sqlite3 *db, Expr *p){
91897 static Expr *exprDup(sqlite3 *db, Expr *p, int dupFlags, u8 **pzBuffer){
91996 static With *withDup(sqlite3 *db, With *p){
92034 SQLITE_PRIVATE Expr *sqlite3ExprDup(sqlite3 *db, Expr *p, int flags){
92038 SQLITE_PRIVATE ExprList *sqlite3ExprListDup(sqlite3 *db, ExprList *p, int flags){
92093 SQLITE_PRIVATE SrcList *sqlite3SrcListDup(sqlite3 *db, SrcList *p, int flags){
92134 SQLITE_PRIVATE IdList *sqlite3IdListDup(sqlite3 *db, IdList *p){
92158 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *pDup, int flags){
92195 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
92215 sqlite3 *db = pParse->db;
92266 sqlite3 *db = pParse->db;
92370 sqlite3 *db = pParse->db;
92402 static SQLITE_NOINLINE void exprListDeleteNN(sqlite3 *db, ExprList *pList){
92414 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){
92915 sqlite3 *db = pParse->db; /* Database connection */
94362 sqlite3 *db = pParse->db; /* The database connection */
94848 sqlite3 *db = pParse->db;
95317 sqlite3 *db = pParse->db;
95586 static int addAggInfoColumn(sqlite3 *db, AggInfo *pInfo){
95602 static int addAggInfoFunc(sqlite3 *db, AggInfo *pInfo){
95930 sqlite3 *db = sqlite3_context_db_handle(context);
95986 sqlite3 *db = sqlite3_context_db_handle(context);
96052 sqlite3 *db = sqlite3_context_db_handle(context);
96139 static char *whereOrName(sqlite3 *db, char *zWhere, char *zConstant){
96184 sqlite3 *db = pParse->db;
96277 sqlite3 *db = pParse->db; /* Database connection */
96481 sqlite3 *db; /* The database connection; */
96617 sqlite3 *db = pParse->db;
96886 sqlite3 *db = pParse->db;
96986 sqlite3 *db; /* Database connection, for malloc() */
96992 static void sampleClear(sqlite3 *db, Stat4Sample *p){
97004 static void sampleSetRowid(sqlite3 *db, Stat4Sample *p, int n, const u8 *pData){
97020 static void sampleSetRowidInt64(sqlite3 *db, Stat4Sample *p, i64 iRowid){
97095 sqlite3 *db; /* Database connection */
97671 sqlite3 *db = pParse->db; /* Database handle */
98000 sqlite3 *db = pParse->db;
98058 sqlite3 *db = pParse->db;
98111 sqlite3 *db;
98254 SQLITE_PRIVATE void sqlite3DeleteIndexSamples(sqlite3 *db, Index *pIdx){
98339 sqlite3 *db,
98365 sqlite3 *db, /* Database handle */
98490 static int loadStat4(sqlite3 *db, const char *zDb){
98534 SQLITE_PRIVATE int sqlite3AnalysisLoad(sqlite3 *db, int iDb){
98670 sqlite3 *db = sqlite3_context_db_handle(context);
98778 extern int sqlite3CodecAttach(sqlite3*, int, const void*, int);
98779 extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);
98872 sqlite3 *db = sqlite3_context_db_handle(context);
98930 sqlite3* db = pParse->db;
99037 sqlite3 *db;
99261 sqlite3 *db,
99288 ** callback has been registered (i.e. that sqlite3.xAuth is not NULL).
99300 sqlite3 *db = pParse->db; /* Database handle */
99338 sqlite3 *db = pParse->db;
99396 sqlite3 *db = pParse->db;
99587 sqlite3 *db;
99709 sqlite3 *db = pParse->db;
99752 SQLITE_PRIVATE Table *sqlite3FindTable(sqlite3 *db, const char *zName, const char *zDatabase){
99874 SQLITE_PRIVATE Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){
99894 static void freeIndex(sqlite3 *db, Index *p){
99914 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteIndex(sqlite3 *db, int iDb, const char *zIdxName){
99947 SQLITE_PRIVATE void sqlite3CollapseDatabaseArray(sqlite3 *db){
99973 SQLITE_PRIVATE void sqlite3ResetOneSchema(sqlite3 *db, int iDb){
99999 SQLITE_PRIVATE void sqlite3ResetAllSchemasOfConnection(sqlite3 *db){
100017 SQLITE_PRIVATE void sqlite3CommitInternalChanges(sqlite3 *db){
100025 SQLITE_PRIVATE void sqlite3DeleteColumnNames(sqlite3 *db, Table *pTable){
100054 static void SQLITE_NOINLINE deleteTable(sqlite3 *db, Table *pTable){
100098 SQLITE_PRIVATE void sqlite3DeleteTable(sqlite3 *db, Table *pTable){
100110 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTable(sqlite3 *db, int iDb, const char *zTabName){
100138 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3 *db, Token *pName){
100168 SQLITE_PRIVATE int sqlite3FindDbName(sqlite3 *db, const char *zName){
100188 SQLITE_PRIVATE int sqlite3FindDb(sqlite3 *db, Token *pName){
100220 sqlite3 *db = pParse->db;
100307 sqlite3 *db = pParse->db;
100510 sqlite3 *db = pParse->db;
100675 sqlite3 *db = pParse->db;
100820 sqlite3 *db = pParse->db;
100843 sqlite3 *db;
100892 sqlite3 *db = pParse->db;
100926 sqlite3 *db = pParse->db;
100990 static char *createTableStmt(sqlite3 *db, Table *p){
101058 static int resizeIndexObject(sqlite3 *db, Index *pIdx, int N){
101145 sqlite3 *db = pParse->db;
101295 sqlite3 *db = pParse->db; /* The database connection */
101546 sqlite3 *db = pParse->db;
101606 sqlite3 *db = pParse->db; /* Database connection for malloc errors */
101715 static void sqliteViewResetAll(sqlite3 *db, int idx){
101751 SQLITE_PRIVATE void sqlite3RootPageMoved(sqlite3 *db, int iDb, int iFrom, int iTo){
101893 sqlite3 *db = pParse->db;
101965 sqlite3 *db = pParse->db;
102085 sqlite3 *db = pParse->db;
102232 sqlite3 *db = pParse->db; /* The database connection */
102308 sqlite3 *db, /* Database connection */
102367 sqlite3 *db = pParse->db;
102940 sqlite3 *db = pParse->db;
103019 sqlite3 *db, /* Connection to notify of malloc failures */
103049 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
103073 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3 *db, IdList *pList){
103116 sqlite3 *db, /* Database connection to notify of OOM errors */
103198 sqlite3 *db, /* Connection to notify of malloc failures */
103255 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){
103300 sqlite3 *db = pParse->db;
103397 sqlite3 *db;
103477 sqlite3 *db = pParse->db;
103531 sqlite3 *db = pParse->db;
103717 sqlite3 *db = pParse->db; /* The database connection */
103753 sqlite3 *db = pParse->db; /* The database connection */
103845 sqlite3 *db = pParse->db;
103888 SQLITE_PRIVATE void sqlite3WithDelete(sqlite3 *db, With *pWith){
103926 static void callCollNeeded(sqlite3 *db, int enc, const char *zName){
103955 static int synthCollSeq(sqlite3 *db, CollSeq *pColl){
103992 sqlite3 *db = pParse->db;
104029 sqlite3 *db = pParse->db;
104046 ** Each pointer stored in the sqlite3.aCollSeq hash table contains an
104055 sqlite3 *db, /* Database connection */
104108 sqlite3 *db,
104250 sqlite3 *db, /* An open database */
104371 SQLITE_PRIVATE Schema *sqlite3SchemaGet(sqlite3 *db, Btree *pBt){
104489 sqlite3 *db = pParse->db;
104613 sqlite3 *db; /* Main database structure */
105529 sqlite3 *db = sqlite3_context_db_handle(context);
105694 sqlite3 *db = sqlite3_context_db_handle(context);
105820 sqlite3 *db = sqlite3_context_db_handle(context);
105840 sqlite3 *db = sqlite3_context_db_handle(context);
105854 sqlite3 *db = sqlite3_context_db_handle(context);
106107 sqlite3 *db = sqlite3_context_db_handle(context);
106516 sqlite3 *db = sqlite3_context_db_handle(context);
106635 ** When the "sqlite3" command-line shell is built using this functionality,
106638 ** sqlite3 shell.
106717 sqlite3 *db = sqlite3_context_db_handle(context);
106871 ** returns (void *)db, where db is the sqlite3* database pointer.
106915 sqlite3 *db = sqlite3_context_db_handle(context);
106953 SQLITE_PRIVATE void sqlite3RegisterPerConnectionBuiltinFunctions(sqlite3 *db){
106964 static void setLikeOptFlag(sqlite3 *db, const char *zName, u8 flagVal){
106977 SQLITE_PRIVATE void sqlite3RegisterLikeFunctions(sqlite3 *db, int caseSensitive){
107005 SQLITE_PRIVATE int sqlite3IsLikeFunction(sqlite3 *db, Expr *pExpr, int *pIsNocase, char *aWc){
107632 sqlite3 *db = pParse->db;
107656 sqlite3 *db, /* The database connection */
107712 sqlite3 *db = pParse->db; /* Database handle */
107839 static void fkTriggerDelete(sqlite3 *dbMem, Trigger *p){
107868 sqlite3 *db = pParse->db;
108025 sqlite3 *db = pParse->db; /* Database handle */
108323 sqlite3 *db = pParse->db; /* Database handle */
108531 SQLITE_PRIVATE void sqlite3FkDelete(sqlite3 *db, Table *pTab){
108600 int iDb, /* The database index in sqlite3.aDb[] */
108643 SQLITE_PRIVATE const char *sqlite3IndexAffinityStr(sqlite3 *db, Index *pIdx){
108705 sqlite3 *db = sqlite3VdbeDb(v);
108829 sqlite3 *db = pParse->db; /* The database connection */
108898 sqlite3 *db = pParse->db;
109056 sqlite3 *db; /* The main database structure */
109813 sqlite3 *db; /* Database connection */
110524 sqlite3 *db = pParse->db;
110865 sqlite3 *db, /* The database on which the SQL executes */
111018 ** sqlite3.h.
111022 /* #include "sqlite3.h" */
111048 int (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
111049 int (*busy_timeout)(sqlite3*,int ms);
111050 int (*changes)(sqlite3*);
111051 int (*close)(sqlite3*);
111052 int (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,
111054 int (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,
111077 void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
111080 int (*create_collation)(sqlite3*,const char*,int,void*,
111082 int (*create_collation16)(sqlite3*,const void*,int,void*,
111084 int (*create_function)(sqlite3*,const char*,int,int,void*,
111088 int (*create_function16)(sqlite3*,const void*,int,int,void*,
111092 int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);
111094 sqlite3 * (*db_handle)(sqlite3_stmt*);
111095 int (*declare_vtab)(sqlite3*,const char*);
111097 int (*errcode)(sqlite3*db);
111098 const char * (*errmsg)(sqlite3*);
111099 const void * (*errmsg16)(sqlite3*);
111100 int (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);
111105 int (*get_autocommit)(sqlite3*);
111107 int (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);
111109 void (*interruptx)(sqlite3*);
111110 sqlite_int64 (*last_insert_rowid)(sqlite3*);
111115 int (*open)(const char*,sqlite3**);
111116 int (*open16)(const void*,sqlite3**);
111117 int (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
111118 int (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
111119 void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);
111120 void (*progress_handler)(sqlite3*,int,int(*)(void*),void*);
111135 void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);
111136 int (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,
111141 int (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,
111144 int (*total_changes)(sqlite3*);
111145 void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);
111147 void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,
111164 int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
111166 int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
111167 int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
111170 int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,
111176 int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,
111180 int (*create_collation_v2)(sqlite3*,const char*,int,void*,
111183 int (*file_control)(sqlite3*,const char*,int,void*);
111191 int (*open_v2)(const char*,sqlite3**,int,const char*);
111205 sqlite3 *(*context_db_handle)(sqlite3_context*);
111206 int (*extended_result_codes)(sqlite3*,int);
111207 int (*limit)(sqlite3*,int,int);
111208 sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);
111212 sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*);
111218 int (*create_function_v2)(sqlite3*,const char*,int,int,void*,
111223 int (*db_config)(sqlite3*,int,...);
111224 sqlite3_mutex *(*db_mutex)(sqlite3*);
111225 int (*db_status)(sqlite3*,int,int*,int*,int);
111226 int (*extended_errcode)(sqlite3*);
111232 int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*);
111233 int (*wal_autocheckpoint)(sqlite3*,int);
111234 int (*wal_checkpoint)(sqlite3*,const char*);
111235 void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*);
111237 int (*vtab_config)(sqlite3*,int op,...);
111238 int (*vtab_on_conflict)(sqlite3*);
111240 int (*close_v2)(sqlite3*);
111241 const char *(*db_filename)(sqlite3*,const char*);
111242 int (*db_readonly)(sqlite3*,const char*);
111243 int (*db_release_memory)(sqlite3*);
111252 int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*);
111260 int (*load_extension)(sqlite3*,const char*,const char*,char**);
111281 int (*db_cacheflush)(sqlite3*);
111283 int (*system_errno)(sqlite3*);
111285 int (*trace_v2)(sqlite3*,unsigned,int(*)(unsigned,void*,void*,void*),void*);
111288 void (*set_last_insert_rowid)(sqlite3*,sqlite3_int64);
111296 sqlite3 *db, /* Handle to the database. */
111992 sqlite3 *db, /* Load the extension into this database connection */
112133 sqlite3 *db, /* Load the extension into this database connection */
112150 SQLITE_PRIVATE void sqlite3CloseExtensions(sqlite3 *db){
112163 SQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff){
112303 SQLITE_PRIVATE void sqlite3AutoLoadExtensions(sqlite3 *db){
113095 sqlite3 *db = pParse->db;
113118 sqlite3 *db = pParse->db;
113174 static void setAllPagerFlags(sqlite3 *db){
113306 sqlite3 *db = pParse->db; /* The database connection */
113557 ** Also, the sqlite3.dfltLockMode variable is set so that
115094 sqlite3 *db; /* The database connection to which it belongs */
115110 sqlite3 *db,
115380 SQLITE_PRIVATE Module *sqlite3PragmaVtabRegister(sqlite3 *db, const char *zName){
115422 sqlite3 *db = pData->db;
115448 sqlite3 *db = pData->db;
115530 static int sqlite3InitOne(sqlite3 *db, int iDb, char **pzErrMsg){
115614 ** main database, set sqlite3.enc to the encoding of the main database.
115616 ** as sqlite3.enc.
115750 SQLITE_PRIVATE int sqlite3Init(sqlite3 *db, char **pzErrMsg){
115796 sqlite3 *db = pParse->db;
115815 sqlite3 *db = pParse->db;
115863 SQLITE_PRIVATE int sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema){
115893 sqlite3 *db = pParse->db;
115908 sqlite3 *db, /* Database handle. */
116059 sqlite3 *db, /* Database handle. */
116101 sqlite3 *db;
116135 sqlite3 *db, /* Database handle. */
116147 sqlite3 *db, /* Database handle. */
116165 sqlite3 *db, /* Database handle. */
116223 sqlite3 *db, /* Database handle. */
116235 sqlite3 *db, /* Database handle. */
116317 static void clearSelect(sqlite3 *db, Select *p, int bFree){
116365 sqlite3 *db = pParse->db;
116422 SQLITE_PRIVATE void sqlite3SelectDelete(sqlite3 *db, Select *p){
116574 sqlite3 *db = pParse->db;
117284 SQLITE_PRIVATE KeyInfo *sqlite3KeyInfoAlloc(sqlite3 *db, int N, int X){
117356 sqlite3 *db = pParse->db;
117819 sqlite3 *db = pParse->db;
117897 sqlite3 *db = pParse->db; /* Database connection */
117997 sqlite3 *db = pParse->db;
118043 sqlite3 *db = pParse->db;
118200 sqlite3 *db = pParse->db;
118486 sqlite3 *db; /* Database connection */
119110 sqlite3 *db; /* Database connection */
119410 sqlite3 *db = pParse->db;
119642 sqlite3 *db = pParse->db;
120241 sqlite3 *db;
120372 sqlite3 *db = pParse->db;
120535 sqlite3 *db = pParse->db;
120918 sqlite3 *db;
121131 sqlite3 *db; /* The database connection */
122101 sqlite3 *db, /* The database on which the SQL executes */
122204 SQLITE_PRIVATE void sqlite3DeleteTriggerStep(sqlite3 *db, TriggerStep *pTriggerStep){
122280 sqlite3 *db = pParse->db; /* The database connection */
122460 sqlite3 *db = pParse->db; /* The database */
122533 SQLITE_PRIVATE TriggerStep *sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect){
122552 sqlite3 *db, /* Database connection */
122577 sqlite3 *db, /* The database connection */
122606 sqlite3 *db, /* The database connection */
122631 sqlite3 *db, /* Database connection */
122649 SQLITE_PRIVATE void sqlite3DeleteTrigger(sqlite3 *db, Trigger *pTrigger){
122672 sqlite3 *db = pParse->db;
122720 sqlite3 *db = pParse->db;
122757 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTrigger(sqlite3 *db, int iDb, const char *zName){
122840 sqlite3 *db = pParse->db;
122870 sqlite3 *db = pParse->db;
122981 sqlite3 *db = pParse->db; /* Database handle */
123394 sqlite3 *db; /* The database structure */
124065 sqlite3 *db = pParse->db; /* Database connection */
124189 static int execSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
124213 static int execSqlF(sqlite3 *db, char **pzErrMsg, const char *zSql, ...){
124286 SQLITE_PRIVATE int sqlite3RunVacuum(char **pzErrMsg, sqlite3 *db, int iDb){
124358 extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);
124547 ** sqlite3
124565 sqlite3 *db, /* Database in which module is registered */
124600 sqlite3 *db, /* Database in which module is registered */
124625 sqlite3 *db, /* Database in which module is registered */
124640 sqlite3 *db, /* Database in which module is registered */
124670 SQLITE_PRIVATE VTable *sqlite3GetVTable(sqlite3 *db, Table *pTab){
124682 sqlite3 *db = pVTab->db;
124700 ** p->pVTable list to the sqlite3.pDisconnect lists of their associated
124705 static VTable *vtabDisconnectAll(sqlite3 *db, Table *p){
124713 ** this makes it safe to access the sqlite3.pDisconnect list of any
124719 sqlite3 *db2 = pVTable->db;
124745 SQLITE_PRIVATE void sqlite3VtabDisconnect(sqlite3 *db, Table *p){
124764 ** Disconnect all the virtual table objects in the sqlite3.pDisconnect list.
124768 ** caller. This is done to protect the sqlite3.pDisconnect list. The
124769 ** sqlite3.pDisconnect list is accessed only as follows:
124775 ** the sqlite3.pDisconnect list. In this case either the BtShared mutex
124780 ** As a result, a sqlite3.pDisconnect cannot be accessed simultaneously
124783 SQLITE_PRIVATE void sqlite3VtabUnlockList(sqlite3 *db){
124807 ** structure is associated with a single sqlite3* user of the schema.
124811 ** in the list are moved to the sqlite3.pDisconnect list of the associated
124814 SQLITE_PRIVATE void sqlite3VtabClear(sqlite3 *db, Table *p){
124831 static void addModuleArgument(sqlite3 *db, Table *pTable, char *zArg){
124859 sqlite3 *db; /* Database connection */
124903 sqlite3 *db = pParse->db;
124914 sqlite3 *db = pParse->db; /* The database connection */
125023 sqlite3 *db,
125026 int (*xConstruct)(sqlite3*,void*,int,const char*const*,sqlite3_vtab**,char**),
125152 sqlite3 *db = pParse->db;
125185 static int growVTrans(sqlite3 *db){
125188 /* Grow the sqlite3.aVTrans array if required */
125204 ** Add the virtual table pVTab to the array sqlite3.aVTrans[]. Space should
125207 static void addToVTrans(sqlite3 *db, VTable *pVTab){
125208 /* Add pVtab to the end of sqlite3.aVTrans */
125221 SQLITE_PRIVATE int sqlite3VtabCallCreate(sqlite3 *db, int iDb, const char *zTab, char **pzErr){
125262 SQLITE_API int sqlite3_declare_vtab(sqlite3 *db, const char *zCreateTable){
125347 SQLITE_PRIVATE int sqlite3VtabCallDestroy(sqlite3 *db, int iDb, const char *zTab){
125379 ** of each of the virtual tables in the sqlite3.aVTrans array. The method
125385 static void callFinaliser(sqlite3 *db, int offset){
125407 ** Invoke the xSync method of all virtual tables in the sqlite3.aVTrans
125413 SQLITE_PRIVATE int sqlite3VtabSync(sqlite3 *db, Vdbe *p){
125433 ** sqlite3.aVTrans array. Then clear the array itself.
125435 SQLITE_PRIVATE int sqlite3VtabRollback(sqlite3 *db){
125442 ** sqlite3.aVTrans array. Then clear the array itself.
125444 SQLITE_PRIVATE int sqlite3VtabCommit(sqlite3 *db){
125455 ** in the sqlite3.aVTrans array.
125457 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){
125485 ** sqlite3.aVTrans[] array. */
125517 SQLITE_PRIVATE int sqlite3VtabSavepoint(sqlite3 *db, int op, int iSavepoint){
125564 sqlite3
125667 sqlite3 *db = pParse->db;
125699 SQLITE_PRIVATE void sqlite3VtabEponymousTableClear(sqlite3 *db, Module *pMod){
125718 SQLITE_API int sqlite3_vtab_on_conflict(sqlite3 *db){
125736 SQLITE_API int sqlite3_vtab_config(sqlite3 *db, int op, ...){
126466 sqlite3 *db = pParse->db; /* Database handle */
126778 sqlite3 *db = pParse->db;
127194 sqlite3 *db = pParse->db;
127391 sqlite3 *db; /* Database connection */
128409 static void whereOrInfoDelete(sqlite3 *db, WhereOrInfo *p){
128417 static void whereAndInfoDelete(sqlite3 *db, WhereAndInfo *p){
128447 sqlite3 *db = pWC->pWInfo->pParse->db;
128584 sqlite3 *db = pParse->db; /* Database connection */
128779 sqlite3 *db; /* Database connection (for malloc) */
128905 sqlite3 *db = pParse->db; /* Database connection */
129303 sqlite3 *db = pParse->db; /* Database connection */
129727 sqlite3 *db = pWC->pWInfo->pParse->db;
129860 static int whereLoopResize(sqlite3*, WhereLoop*, int);
131069 SQLITE_PRIVATE char sqlite3IndexColumnAffinity(sqlite3 *db, Index *pIdx, int iCol){
131124 sqlite3 *db = pParse->db;
131618 static void whereLoopClearUnion(sqlite3 *db, WhereLoop *p){
131635 static void whereLoopClear(sqlite3 *db, WhereLoop *p){
131644 static int whereLoopResize(sqlite3 *db, WhereLoop *p, int n){
131660 static int whereLoopXfer(sqlite3 *db, WhereLoop *pTo, WhereLoop *pFrom){
131679 static void whereLoopDelete(sqlite3 *db, WhereLoop *p){
131687 static void whereInfoFree(sqlite3 *db, WhereInfo *pWInfo){
131887 sqlite3 *db = pWInfo->pParse->db;
132152 sqlite3 *db = pParse->db; /* Database connection malloc context */
133233 sqlite3 *db = pWInfo->pParse->db;
133321 sqlite3 *db = pWInfo->pParse->db; /* Database connection */
133675 sqlite3 *db; /* The database connection */
134225 sqlite3 *db; /* Database connection */
134674 sqlite3 *db = pParse->db;
135018 sqlite3 *db = pParse->db;
139385 sqlite3 *db = pParse->db; /* The database connection */
139852 /* #include "sqlite3.h" */
139858 SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db);
139885 /* #include "sqlite3.h" */
139891 SQLITE_PRIVATE int sqlite3RtreeInit(sqlite3 *db);
139918 /* #include "sqlite3.h" */
139924 SQLITE_PRIVATE int sqlite3IcuInit(sqlite3 *db);
139935 SQLITE_PRIVATE int sqlite3Json1Init(sqlite3*);
139938 SQLITE_PRIVATE int sqlite3Fts5Init(sqlite3*);
140495 typedef void(*SQLLOGFUNC_t)(void*, sqlite3*, const char*, int);
140567 static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
140626 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){
140640 SQLITE_API int sqlite3_db_release_memory(sqlite3 *db){
140664 SQLITE_API int sqlite3_db_cacheflush(sqlite3 *db){
140693 SQLITE_API int sqlite3_db_config(sqlite3 *db, int op, ...){
140713 u32 mask; /* Mask of the bit in sqlite3.flags to set/clear */
140820 SQLITE_API sqlite_int64 sqlite3_last_insert_rowid(sqlite3 *db){
140833 SQLITE_API void sqlite3_set_last_insert_rowid(sqlite3 *db, sqlite3_int64 iRowid){
140848 SQLITE_API int sqlite3_changes(sqlite3 *db){
140861 SQLITE_API int sqlite3_total_changes(sqlite3 *db){
140876 SQLITE_PRIVATE void sqlite3CloseSavepoints(sqlite3 *db){
140893 static void functionDestroy(sqlite3 *db, FuncDef *p){
140908 static void disconnectAllVtab(sqlite3 *db){
140939 static int connectionIsBusy(sqlite3 *db){
140953 static int sqlite3Close(sqlite3 *db, int forceZombie){
141012 SQLITE_API int sqlite3_close(sqlite3 *db){ return sqlite3Close(db,0); }
141013 SQLITE_API int sqlite3_close_v2(sqlite3 *db){ return sqlite3Close(db,1); }
141024 SQLITE_PRIVATE void sqlite3LeaveMutexAndCloseZombie(sqlite3 *db){
141147 SQLITE_PRIVATE void sqlite3RollbackAll(sqlite3 *db, int tripCode){
141368 sqlite3 *db = (sqlite3 *)ptr;
141387 sqlite3 *db = (sqlite3 *)ptr;
141388 int timeout = ((sqlite3 *)ptr)->busyTimeout;
141421 sqlite3 *db,
141444 sqlite3 *db,
141474 SQLITE_API int sqlite3_busy_timeout(sqlite3 *db, int ms){
141490 SQLITE_API void sqlite3_interrupt(sqlite3 *db){
141508 sqlite3 *db,
141607 sqlite3 *db,
141621 sqlite3 *db,
141664 sqlite3 *db,
141704 sqlite3 *db,
141735 SQLITE_API void *sqlite3_trace(sqlite3 *db, void(*xTrace)(void*,const char*), void *pArg){
141757 sqlite3 *db, /* Trace this connection */
141787 sqlite3 *db,
141815 sqlite3 *db, /* Attach the hook to this database */
141840 sqlite3 *db, /* Attach the hook to this database */
141865 sqlite3 *db, /* Attach the hook to this database */
141891 sqlite3 *db, /* Attach the hook to this database */
141893 void*,sqlite3*,int,char const*,char const*,sqlite3_int64,sqlite3_int64),
141910 ** is greater than sqlite3.pWalArg cast to an integer (the value configured by
141915 sqlite3 *db, /* Connection */
141939 SQLITE_API int sqlite3_wal_autocheckpoint(sqlite3 *db, int nFrame){
141961 sqlite3 *db, /* Attach the hook to this db handle */
141962 int(*xCallback)(void *, sqlite3*, const char*, int),
141988 sqlite3 *db, /* Database handle */
141998 int iDb = SQLITE_MAX_ATTACHED; /* sqlite3.aDb[] index of db to checkpoint */
142049 SQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb){
142075 SQLITE_PRIVATE int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt){
142119 SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3 *db){
142140 SQLITE_API const char *sqlite3_errmsg(sqlite3 *db){
142168 SQLITE_API const void *sqlite3_errmsg16(sqlite3 *db){
142213 SQLITE_API int sqlite3_errcode(sqlite3 *db){
142222 SQLITE_API int sqlite3_extended_errcode(sqlite3 *db){
142231 SQLITE_API int sqlite3_system_errno(sqlite3 *db){
142249 sqlite3* db,
142323 ** #defines in sqlite3.h.
142388 SQLITE_API int sqlite3_limit(sqlite3 *db, int limitId, int newLimit){
142694 sqlite3 **ppDb, /* OUT: Returned database handle */
142698 sqlite3 *db; /* Store allocated handle here */
142772 db = sqlite3MallocZero( sizeof(sqlite3) );
142920 extern int sqlite3Fts1Init(sqlite3*);
142927 extern int sqlite3Fts2Init(sqlite3*);
143026 sqlite3 **ppDb
143033 sqlite3 **ppDb, /* OUT: SQLite db handle */
143046 sqlite3 **ppDb
143084 sqlite3* db,
143097 sqlite3* db,
143122 sqlite3* db,
143152 sqlite3 *db,
143154 void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*)
143173 sqlite3 *db,
143175 void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*)
143205 SQLITE_API int sqlite3_get_autocommit(sqlite3 *db){
143268 ** See comment in sqlite3.h (sqlite.h.in) for details.
143271 sqlite3 *db, /* Connection handle */
143404 SQLITE_API int sqlite3_extended_result_codes(sqlite3 *db, int onoff){
143417 SQLITE_API int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg){
143638 /* sqlite3_test_control(SQLITE_TESTCTRL_RESERVE, sqlite3 *db, int N)
143644 sqlite3 *db = va_arg(ap, sqlite3*);
143652 /* sqlite3_test_control(SQLITE_TESTCTRL_OPTIMIZATIONS, sqlite3 *db, int N)
143662 sqlite3 *db = va_arg(ap, sqlite3*);
143751 sqlite3 *db = va_arg(ap, sqlite3*);
143783 sqlite3 *db = va_arg(ap, sqlite3*);
143851 SQLITE_PRIVATE Btree *sqlite3DbNameToBtree(sqlite3 *db, const char *zDbName){
143860 SQLITE_API const char *sqlite3_db_filename(sqlite3 *db, const char *zDbName){
143876 SQLITE_API int sqlite3_db_readonly(sqlite3 *db, const char *zDbName){
143894 sqlite3 *db,
143930 sqlite3 *db,
143967 SQLITE_API int sqlite3_snapshot_recover(sqlite3 *db, const char *zDb){
144039 ** Head of a linked list of all sqlite3 objects created by this process
144040 ** for which either sqlite3.pBlockingConnection or sqlite3.pUnlockConnection
144044 static sqlite3 *SQLITE_WSD sqlite3BlockedList = 0;
144061 static void checkListProperties(sqlite3 *db){
144062 sqlite3 *p;
144065 sqlite3 *p2;
144087 static void removeFromBlockedList(sqlite3 *db){
144088 sqlite3 **pp;
144102 static void addToBlockedList(sqlite3 *db){
144103 sqlite3 **pp;
144153 sqlite3 *db,
144175 sqlite3 *p;
144202 SQLITE_PRIVATE void sqlite3ConnectionBlocked(sqlite3 *db, sqlite3 *pBlocker){
144219 ** 1) If the sqlite3.pBlockingConnection member of a list entry is
144222 ** 2) If the sqlite3.pUnlockConnection member of a list entry is
144230 SQLITE_PRIVATE void sqlite3ConnectionUnlocked(sqlite3 *db){
144233 sqlite3 **pp; /* Iterator variable */
144243 sqlite3 *p = *pp;
144329 SQLITE_PRIVATE void sqlite3ConnectionClosed(sqlite3 *db){
144675 /* #include "sqlite3.h" */
144704 /* #include "sqlite3.h" */
145129 sqlite3 *db; /* The database connection */
145479 SQLITE_PRIVATE int sqlite3Fts3InitHashTable(sqlite3 *, Fts3Hash *, const char *);
145499 SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3 *db);
145500 SQLITE_PRIVATE int sqlite3Fts3InitTerm(sqlite3 *db);
145508 SQLITE_PRIVATE int sqlite3Fts3InitAux(sqlite3
145521 SQLITE_PRIVATE int sqlite3Fts3InitTok(sqlite3*, Fts3Hash *);
145776 sqlite3 *db, /* Database in which to run SQL */
145801 sqlite3 *db = p->db; /* Database handle */
145887 sqlite3 *db = p->db; /* The database connection */
146280 sqlite3 *db, /* Database handle */
146356 sqlite3 *db, /* The SQLite database connection */
146734 sqlite3 *db, /* Database connection */
146744 sqlite3 *db, /* Database connection */
148986 sqlite3 *db = p->db; /* Database connection */
149143 SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db){
151186 sqlite3 *db,
151256 sqlite3 *db, /* Database connection */
151716 SQLITE_PRIVATE int sqlite3Fts3InitAux(sqlite3 *db){
152866 sqlite3 *db,
152972 sqlite3 *db = sqlite3_context_db_handle(context);
153047 SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3* db){
154152 sqlite3 *db = sqlite3_context_db_handle(context);
154466 sqlite3 *db,
154489 sqlite3 *db,
154541 sqlite3 *db = (sqlite3 *)sqlite3_user_data(context);
154588 sqlite3 *db,
155029 sqlite3 *db, /* Database connection */
155292 SQLITE_PRIVATE int sqlite3Fts3InitTok(sqlite3 *db, Fts3Hash *pHash){
162750 ** from the sqlite3 source file utf.c. If this file is compiled as part
163544 /* #include "sqlite3.h" */
163600 sqlite3 *db; /* Host database connection */
164368 sqlite3 *, void *, int, const char *const*, sqlite3_vtab **, char **, int
164375 sqlite3 *db,
164388 sqlite3 *db,
166696 static int rtreeQueryStat1(sqlite3 *db, Rtree *pRtree){
166763 sqlite3 *db,
166840 static int getIntFromStmt(sqlite3 *db, const char *zSql, int *piVal){
166871 sqlite3 *db, /* Database handle */
166915 sqlite3 *db, /* Database connection */
167094 SQLITE_PRIVATE int sqlite3RtreeInit(sqlite3 *db){
167196 sqlite3 *db, /* Register SQL function on this connection */
167220 sqlite3 *db, /* Register SQL function on this connection */
167245 sqlite3 *db,
167302 /* #include "sqlite3.h" */
167717 sqlite3 *db = (sqlite3 *)sqlite3_user_data(p);
167752 SQLITE_PRIVATE int sqlite3IcuInit(sqlite3 *db){
167794 sqlite3 *db,
168158 /* #include "sqlite3.h" */
168432 /* #include "sqlite3.h" ** Required for error code definitions ** */
168548 SQLITE_API sqlite3 *sqlite3rbu_db(sqlite3rbu*, int bRbu);
169000 sqlite3 *dbMain; /* target database handle */
169001 sqlite3 *dbRbu; /* rbu database handle */
169331 sqlite3 *db,
169376 sqlite3 *db,
169635 static int rbuMPrintfExec(sqlite3rbu *p, sqlite3 *db, const char *zFmt, ...){
169732 sqlite3 *db = sqlite3_db_handle(pStmt);
170880 static sqlite3 *rbuOpenDbhandle(
170885 sqlite3 *db = 0;
171701 sqlite3 *dbread = (rbuIsVacuum(p) ? p->dbRbu : p->dbMain);
172270 sqlite3 *db = p->dbMain;
172369 SQLITE_API sqlite3 *sqlite3rbu_db(sqlite3rbu *pRbu, int bRbu){
172370 sqlite3 *db = 0;
173587 sqlite3 *db;
173599 sqlite3 *db,
174115 sqlite3 *db = sqlite3_context_db_handle(ctx);
174133 SQLITE_PRIVATE int sqlite3DbstatRegister(sqlite3 *db){
174159 SQLITE_PRIVATE int sqlite3DbstatRegister(sqlite3 *db){ return SQLITE_OK; }
174204 sqlite3 *db; /* Database handle session is attached to */
174305 ** and so on in sqlite3.h. For undefined and NULL values, the field consists
175088 sqlite3 *db, /* Database connection */
175374 sqlite3 *db, /* Database handle */
175411 return sqlite3_preupdate_old((sqlite3
175414 return sqlite3_preupdate_new((sqlite3*)pCtx, iVal, ppVal);
175417 return sqlite3_preupdate_count((sqlite3*)pCtx);
175420 return sqlite3_preupdate_depth((sqlite3*)pCtx);
175637 sqlite3 *db = pSession->db;
175715 sqlite3 *db, /* Database handle */
175777 sqlite3 *db = pSession->db;
176251 sqlite3 *db, /* Database handle */
176395 sqlite3 *db = pSession->db; /* Source database handle */
177441 sqlite3 *db;
177472 sqlite3 *db, /* Database handle */
177555 sqlite3 *db, /* Database handle */
177633 sqlite3 *db, /* Database handle */
177651 sqlite3 *db, /* Database handle */
177761 sqlite3 *db, /* Database handle */
178036 sqlite3 *db, /* Apply change to "main" db of this handle */
178093 sqlite3 *db,
178147 sqlite3 *db, /* Apply change to "main" db of this handle */
178316 sqlite3 *db, /* Apply change to "main" db of this handle */
178344 sqlite3 *db, /* Apply change to "main" db of this handle */
180636 sqlite3 *db,
181085 SQLITE_PRIVATE int sqlite3Json1Init(sqlite3 *db){
181159 sqlite3 *db,
181206 /* #include "sqlite3.h" */
181921 sqlite3 *db; /* Database handle */
181970 Fts5Global*, sqlite3*, int, const char **, Fts5Config**, char**
182238 static int sqlite3Fts5IndexInit(sqlite3*);
182441 static int sqlite3Fts5ExprInit(Fts5Global*, sqlite3*);
182536 static int sqlite3Fts5VocabInit(Fts5Global*, sqlite3*);
185468 sqlite3 *db,
188224 sqlite3 *db = sqlite3_context_db_handle(pCtx);
188358 static int sqlite3Fts5ExprInit(Fts5Global *pGlobal, sqlite3 *db){
195618 static int sqlite3Fts5IndexInit(sqlite3 *db){
195724 sqlite3 *db; /* Associated database connection */
196004 sqlite3 *db, /* The SQLite database connection */
196069 sqlite3 *db, /* Database connection */
196079 sqlite3 *db, /* Database connection */
198266 static int fts5Init(sqlite3 *db){
198330 extern int sqlite3Fts5TestRegisterMatchinfo(sqlite3*);
198352 sqlite3 *db,
198365 sqlite3 *db,
198374 SQLITE_PRIVATE int sqlite3Fts5Init(sqlite3 *db){
198532 sqlite3 *db,
199689 ** from the sqlite3 source file utf.c. If this file is compiled as part
201503 sqlite3 *db; /* Database handle */
201613 sqlite3 *db, /* The SQLite database connection */
201674 sqlite3 *db, /* Database connection */
201684 sqlite3 *db, /* Database connection */
202079 static int sqlite3Fts5VocabInit(Fts5Global *pGlobal, sqlite3 *db){