Home | History | Annotate | Download | only in dist

Lines Matching full: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
206 /************** Include sqlite3.h in the middle of sqliteInt.h ***************/
207 /************** Begin file sqlite3.h *****************************************/
237 ** the version number) and changes its name to "sqlite3.h" as
297 ** ^(The [SQLITE_VERSION] C preprocessor macro in the sqlite3.h header
300 ** SQLite3) and Y is the minor version number and Z is the release number.)^
430 ** the opaque structure named "sqlite3". It is useful to think of an sqlite3
437 ** sqlite3 object.
439 typedef struct sqlite3 sqlite3;
480 ** DESTRUCTOR: sqlite3
483 ** for the [sqlite3] object.
485 ** the [sqlite3] object is successfully destroyed and all associated
502 ** with the [sqlite3] object prior to attempting to close the object. ^If
509 ** ^If an [sqlite3] object is destroyed while a transaction is open,
514 ** pointer or an [sqlite3] object pointer obtained
520 SQLITE_API int SQLITE_STDCALL sqlite3_close(sqlite3*);
521 SQLITE_API int SQLITE_STDCALL sqlite3_close_v2(sqlite3*);
532 ** METHOD: sqlite3
593 sqlite3*, /* An open database */
1590 ** METHOD: sqlite3
1605 SQLITE_API int SQLITE_CDECL sqlite3_db_config(sqlite3*, int op, ...);
1943 ** be a pointer to a function of type void(*)(void*,sqlite3*,const char*, int).
2088 ** METHOD: sqlite3
2094 SQLITE_API int SQLITE_STDCALL sqlite3_extended_result_codes(sqlite3*, int onoff);
2098 ** METHOD: sqlite3
2146 SQLITE_API sqlite3_int64 SQLITE_STDCALL sqlite3_last_insert_rowid(sqlite3*);
2150 ** METHOD: sqlite3
2199 SQLITE_API int SQLITE_STDCALL sqlite3_changes(sqlite3*);
2203 ** METHOD: sqlite3
2223 SQLITE_API int SQLITE_STDCALL sqlite3_total_changes(sqlite3*);
2227 ** METHOD: sqlite3
2263 SQLITE_API void SQLITE_STDCALL sqlite3_interrupt(sqlite3*);
2304 ** METHOD: sqlite3
2360 SQLITE_API int SQLITE_STDCALL sqlite3_busy_handler(sqlite3*, int(*)(void*,int), void*);
2364 ** METHOD: sqlite3
2383 SQLITE_API int SQLITE_STDCALL sqlite3_busy_timeout(sqlite3*, int ms);
2387 ** METHOD: sqlite3
2459 sqlite3 *db, /* An open database */
2723 ** METHOD: sqlite3
2803 sqlite3*,
2880 ** METHOD: sqlite3
2907 SQLITE_API void *SQLITE_STDCALL sqlite3_trace(sqlite3*, void(*xTrace)(void*,const char*), void*);
2908 SQLITE_API SQLITE_EXPERIMENTAL void *SQLITE_STDCALL sqlite3_profile(sqlite3*,
2913 ** METHOD: sqlite3
2943 SQLITE_API void SQLITE_STDCALL sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
2947 ** CONSTRUCTOR: sqlite3
2954 ** if SQLite is unable to allocate memory to hold the [sqlite3] object,
2955 ** a NULL will be written into *ppDb instead of a pointer to the [sqlite3]
3174 sqlite3 **ppDb /* OUT: SQLite db handle */
3178 sqlite3 **ppDb /* OUT: SQLite db handle */
3182 sqlite3 **ppDb, /* OUT: SQLite db handle */
3233 ** METHOD: sqlite3
3272 SQLITE_API int SQLITE_STDCALL sqlite3_errcode(sqlite3 *db);
3273 SQLITE_API int SQLITE_STDCALL sqlite3_extended_errcode(sqlite3 *db);
3274 SQLITE_API const char *SQLITE_STDCALL sqlite3_errmsg(sqlite3*);
3275 SQLITE_API const void *SQLITE_STDCALL sqlite3_errmsg16(sqlite3*);
3306 ** METHOD: sqlite3
3344 SQLITE_API int SQLITE_STDCALL sqlite3_limit(sqlite3*, int id, int newVal);
3418 ** METHOD: sqlite3
3497 sqlite3 *db, /* Database handle */
3504 sqlite3 *db, /* Database handle */
3511 sqlite3 *db, /* Database handle */
3518 sqlite3 *db, /* Database handle */
4332 ** METHOD: sqlite3
4426 sqlite3 *db,
4436 sqlite3 *db,
4446 sqlite3 *db,
4629 SQLITE_API sqlite3 *SQLITE_STDCALL sqlite3_context_db_handle(sqlite3_context*);
4842 ** METHOD: sqlite3
4921 sqlite3*,
4928 sqlite3*,
4936 sqlite3*,
4945 ** METHOD: sqlite3
4971 sqlite3*,
4973 void(*)(void*,sqlite3*,int eTextRep,const char*)
4976 sqlite3*,
4978 void(*)(void*,sqlite3*,int eTextRep,const void*)
4990 sqlite3 *db, /* Database to be rekeyed */
4994 sqlite3 *db, /* Database to be rekeyed */
5008 sqlite3
5012 sqlite3 *db, /* Database to be rekeyed */
5153 ** METHOD: sqlite3
5172 SQLITE_API int SQLITE_STDCALL sqlite3_get_autocommit(sqlite3*);
5185 SQLITE_API sqlite3 *SQLITE_STDCALL sqlite3_db_handle(sqlite3_stmt*);
5189 ** METHOD: sqlite3
5202 SQLITE_API const char *SQLITE_STDCALL sqlite3_db_filename(sqlite3 *db, const char *zDbName);
5206 ** METHOD: sqlite3
5212 SQLITE_API int SQLITE_STDCALL sqlite3_db_readonly(sqlite3 *db, const char *zDbName);
5216 ** METHOD: sqlite3
5228 SQLITE_API sqlite3_stmt *SQLITE_STDCALL sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt);
5232 ** METHOD: sqlite3
5277 SQLITE_API void *SQLITE_STDCALL sqlite3_commit_hook(sqlite3*, int(*)(void*), void*);
5278 SQLITE_API void *SQLITE_STDCALL sqlite3_rollback_hook(sqlite3*, void(*)(void *), void*);
5282 ** METHOD: sqlite3
5330 sqlite3*,
5389 ** METHOD: sqlite3
5399 SQLITE_API int SQLITE_STDCALL sqlite3_db_release_memory(sqlite3*);
5467 ** METHOD: sqlite3
5533 sqlite3 *db, /* Connection handle */
5546 ** METHOD: sqlite3
5580 sqlite3 *db, /* Load the extension into this database connection */
5588 ** METHOD: sqlite3
5600 SQLITE_API int SQLITE_STDCALL sqlite3_enable_load_extension(sqlite3 *db, int onoff);
5617 **   sqlite3 *db,
5695 int (*xCreate)(sqlite3*, void *pAux,
5698 int (*xConnect)(sqlite3*, void *pAux,
5838 ** METHOD: sqlite3
5863 sqlite3 *db, /* SQLite connection to register module with */
5869 sqlite3 *db, /* SQLite connection to register module with */
5931 SQLITE_API int SQLITE_STDCALL sqlite3_declare_vtab(sqlite3*, const char *zSQL);
5935 ** METHOD: sqlite3
5950 SQLITE_API int SQLITE_STDCALL sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg);
5978 ** METHOD: sqlite3
6050 sqlite3*,
6482 ** METHOD: sqlite3
6490 SQLITE_API sqlite3_mutex *SQLITE_STDCALL sqlite3_db_mutex(sqlite3*);
6494 ** METHOD: sqlite3
6525 SQLITE_API int SQLITE_STDCALL sqlite3_file_control(sqlite3*, const char *zDbName, int op, void*);
6711 ** METHOD: sqlite3
6732 SQLITE_API int SQLITE_STDCALL sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int resetFlg);
7332 sqlite3 *pDest, /* Destination database handle */
7334 sqlite3 *pSource, /* Source database handle */
7344 ** METHOD: sqlite3
7458 sqlite3 *pBlocked, /* Waiting connection */
7515 ** METHOD: sqlite3
7548 sqlite3*,
7549 int(*)(void *,sqlite3*,const char*,int),
7555 ** METHOD: sqlite3
7582 SQLITE_API int SQLITE_STDCALL sqlite3_wal_autocheckpoint(sqlite3 *db, int N);
7586 ** METHOD: sqlite3
7604 SQLITE_API int SQLITE_STDCALL sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);
7608 ** METHOD: sqlite3
7699 sqlite3 *db, /* Database handle */
7734 SQLITE_API int SQLITE_CDECL sqlite3_vtab_config(sqlite3*, int op, ...);
7787 SQLITE_API int SQLITE_STDCALL sqlite3_vtab_on_conflict(sqlite3 *);
7964 sqlite3 *db,
7990 sqlite3 *db,
8040 /************** End of sqlite3.h *********************************************/
9389 sqlite3 *db, /* Associated database connection */
9584 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3*);
9595 SQLITE_PRIVATE void sqlite3BtreeLeaveAll(sqlite3*);
9599 SQLITE_PRIVATE int sqlite3BtreeHoldsAllMutexes(sqlite3*);
9600 SQLITE_PRIVATE int sqlite3SchemaMutexHeld(sqlite3*,int,Schema*);
10006 SQLITE_PRIVATE void sqlite3VdbeClearObject(sqlite3*,Vdbe*);
10020 SQLITE_PRIVATE sqlite3 *sqlite3VdbeDb(Vdbe*);
10069 ** numbers in the sqlite3.c source file. VDBE branch coverage testing
10874 ** the Schema for the TEMP databaes (sqlite3.aDb[1]) which is free-standing.
10884 ** holding a mutex on the sqlite3 connection pointer that owns the Btree.
10977 ** Information held in the "sqlite3" database connection object and used
10996 SQLITE_PRIVATE int sqlite3UserAuthCheckLogin(sqlite3*,const char*,u8*);
10997 SQLITE_PRIVATE void sqlite3UserAuthInit(sqlite3*);
11017 struct sqlite3 {
11071 int (*xWalCallback)(void *, sqlite3 *, const char *, int);
11074 void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*);
11075 void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*);
11112 ** mutex, not by sqlite3.mutex. They are used by code in notify.c.
11121 sqlite3 *pBlockingConnection; /* Connection that caused SQLITE_LOCKED */
11122 sqlite3 *pUnlockConnection; /* Connection to watch for unlock */
11125 sqlite3 *pNextBlocked; /* Next in list of all blocked connections */
11139 ** Possible values for the sqlite3.flags.
11175 ** Bits of the sqlite3.dbOptFlags field that are used by the
11331 ** sqlite3.pSavepoint. The first element in the list is the most recently
11353 ** instance of the following structure, stored in the sqlite3.aModule
11454 ** structure for each database connection (sqlite3*) that uses the shared
11479 ** another linked list headed by the sqlite3.pDisconnect member of the
11480 ** corresponding sqlite3 structure. They are then deleted/xDisconnected
11481 ** next time a statement is prepared using said sqlite3*. This is done
11482 ** to avoid deadlock issues involving multiple sqlite3.mutex mutexes.
11484 ** explanation as to why it is safe to add an entry to an sqlite3.pDisconnect
11485 ** list without holding the corresponding sqlite3.mutex mutex.
11492 sqlite3 *db; /* Database connection associated with this table */
11672 sqlite3 *db; /* The database connection */
12427 int iDb; /* Index in sqlite3.aDb[] of database holding pTab */
12500 sqlite3 *db; /* The main database structure */
12644 * 1. In the "trigHash" hash table (part of the sqlite3* that represents the
12749 sqlite3 *db; /* Optional database for lookaside. Can be NULL */
12765 sqlite3 *db; /* The database being initialized */
12815 void(*xSqllog)(void*,sqlite3*,const char*, int);
12987 SQLITE_PRIVATE void *sqlite3DbMallocZero(sqlite3*, u64);
12988 SQLITE_PRIVATE void *sqlite3DbMallocRaw(sqlite3*, u64);
12989 SQLITE_PRIVATE char *sqlite3DbStrDup(sqlite3*,const char*);
12990 SQLITE_PRIVATE char *sqlite3DbStrNDup(sqlite3*,const char*, u64);
12992 SQLITE_PRIVATE void *sqlite3DbReallocOrFree(sqlite3 *, void *, u64);
12993 SQLITE_PRIVATE void *sqlite3DbRealloc(sqlite3 *, void *, u64);
12994 SQLITE_PRIVATE void sqlite3DbFree(sqlite3*, void*);
12996 SQLITE_PRIVATE int sqlite3DbMallocSize(sqlite3*, void*);
13068 SQLITE_PRIVATE char *sqlite3MPrintf(sqlite3*,const char*, ...);
13069 SQLITE_PRIVATE char *sqlite3VMPrintf(sqlite3*,const char*, va_list);
13070 SQLITE_PRIVATE char *sqlite3MAppendf(sqlite3*,char*,const char*,...);
13089 SQLITE_PRIVATE void sqlite3SetString(char **, sqlite3*, const char*, ...);
13100 SQLITE_PRIVATE Expr *sqlite3ExprAlloc(sqlite3*,int,const Token*,int);
13101 SQLITE_PRIVATE Expr *sqlite3Expr(sqlite3*,int,const char*);
13102 SQLITE_PRIVATE void sqlite3ExprAttachSubtrees(sqlite3*,Expr*,Expr*,Expr*);
13104 SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3*,Expr*, Expr*);
13107 SQLITE_PRIVATE void sqlite3ExprDelete(sqlite3*, Expr*);
13111 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3*, ExprList*);
13113 SQLITE_PRIVATE int sqlite3Init(sqlite3*, char**);
13116 SQLITE_PRIVATE void sqlite3ResetAllSchemasOfConnection(sqlite3*);
13117 SQLITE_PRIVATE void sqlite3ResetOneSchema(sqlite3*,int);
13118 SQLITE_PRIVATE void sqlite3CollapseDatabaseArray(sqlite3*);
13120 SQLITE_PRIVATE void sqlite3CommitInternalChanges(sqlite3*);
13136 SQLITE_PRIVATE Btree *sqlite3DbNameToBtree(sqlite3*,const char*);
13153 SQLITE_PRIVATE RowSet *sqlite3RowSetInit(sqlite3*, void*, unsigned int);
13172 SQLITE_PRIVATE void sqlite3DeleteTable(sqlite3*, Table*);
13181 SQLITE_PRIVATE void *sqlite3ArrayAllocate(sqlite3*,void*,int,int*,int*);
13182 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3*, IdList*, Token*);
13184 SQLITE_PRIVATE SrcList *sqlite3SrcListEnlarge(sqlite3*, SrcList*, int, int);
13185 SQLITE_PRIVATE SrcList *sqlite3SrcListAppend(sqlite3*, SrcList*, Token*, Token*);
13192 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3*, IdList*);
13193 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3*, SrcList*);
13194 SQLITE_PRIVATE Index *sqlite3AllocateIndexObject(sqlite3*,i16,int,char**);
13201 SQLITE_PRIVATE void sqlite3SelectDelete(sqlite3*, Select*);
13239 SQLITE_PRIVATE Table *sqlite3FindTable(sqlite3*,const char*, const char*);
13242 SQLITE_PRIVATE Index *sqlite3FindIndex(sqlite3*,const char*, const char*);
13243 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTable(sqlite3*,int,const char*);
13244 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteIndex(sqlite3*,int,const char*);
13246 SQLITE_PRIVATE int sqlite3RunVacuum(char**, sqlite3*);
13247 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3*, Token*);
13257 SQLITE_PRIVATE void sqlite3RollbackAll(sqlite3*,int);
13264 SQLITE_PRIVATE void sqlite3CloseSavepoints(sqlite3 *);
13265 SQLITE_PRIVATE void sqlite3LeaveMutexAndCloseZombie(sqlite3*);
13288 SQLITE_PRIVATE Expr *sqlite3ExprDup(sqlite3*,Expr*,int);
13289 SQLITE_PRIVATE ExprList *sqlite3ExprListDup(sqlite3*,ExprList*,int);
13290 SQLITE_PRIVATE SrcList *sqlite3SrcListDup(sqlite3*,SrcList*,int);
13291 SQLITE_PRIVATE IdList *sqlite3IdListDup(sqlite3*,IdList*);
13292 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3*,Select*,int);
13299 SQLITE_PRIVATE FuncDef *sqlite3FindFunction(sqlite3*,const char*,int,int,u8,u8);
13300 SQLITE_PRIVATE void sqlite3RegisterBuiltinFunctions(sqlite3*);
13303 SQLITE_PRIVATE int sqlite3SafetyCheckOk(sqlite3*);
13304 SQLITE_PRIVATE int sqlite3SafetyCheckSickOrOk(sqlite3*);
13323 SQLITE_PRIVATE void sqlite3DeleteTriggerStep(sqlite3*, TriggerStep*);
13324 SQLITE_PRIVATE TriggerStep *sqlite3TriggerSelectStep(sqlite3*,Select*);
13325 SQLITE_PRIVATE TriggerStep *sqlite3TriggerInsertStep(sqlite3*,Token*, IdList*,
13327 SQLITE_PRIVATE TriggerStep *sqlite3TriggerUpdateStep(sqlite3*,Token*,ExprList*, Expr*, u8);
13328 SQLITE_PRIVATE TriggerStep *sqlite3TriggerDeleteStep(sqlite3*,Token*, Expr*);
13329 SQLITE_PRIVATE void sqlite3DeleteTrigger(sqlite3*, Trigger*);
13330 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTrigger(sqlite3*,int,const char*);
13412 SQLITE_PRIVATE void sqlite3ErrorWithMsg(sqlite3*, int, const char*,...);
13413 SQLITE_PRIVATE void sqlite3Error(sqlite3*,int);
13414 SQLITE_PRIVATE void *sqlite3HexToBlob(sqlite3*, const char *z, int n);
13424 SQLITE_PRIVATE CollSeq *sqlite3FindCollSeq(sqlite3*,u8 enc, const char*,int);
13432 SQLITE_PRIVATE void sqlite3VdbeSetChanges(sqlite3 *, int);
13450 SQLITE_PRIVATE sqlite3_value *sqlite3ValueNew(sqlite3 *);
13451 SQLITE_PRIVATE char *sqlite3Utf16to8(sqlite3 *, const void*, int, u8);
13452 SQLITE_PRIVATE int sqlite3ValueFromExpr(sqlite3 *, Expr *, u8, u8, sqlite3_value **);
13465 SQLITE_PRIVATE void sqlite3RootPageMoved(sqlite3*, int, int, int);
13471 SQLITE_PRIVATE void sqlite3ExpirePreparedStatements(sqlite3*);
13486 SQLITE_PRIVATE int sqlite3FindDb(sqlite3*, Token*);
13487 SQLITE_PRIVATE int sqlite3FindDbName(sqlite3 *, const char *);
13488 SQLITE_PRIVATE int sqlite3AnalysisLoad(sqlite3*,int iDB);
13489 SQLITE_PRIVATE void sqlite3DeleteIndexSamples(sqlite3*,Index*);
13491 SQLITE_PRIVATE void sqlite3RegisterLikeFunctions(sqlite3*, int);
13492 SQLITE_PRIVATE int sqlite3IsLikeFunction(sqlite3*,Expr*,int*,char*);
13495 SQLITE_PRIVATE Schema *sqlite3SchemaGet(sqlite3 *, Btree *);
13496 SQLITE_PRIVATE int sqlite3SchemaToIndex(sqlite3 *db, Schema *);
13497 SQLITE_PRIVATE KeyInfo *sqlite3KeyInfoAlloc(sqlite3*,int,int);
13504 SQLITE_PRIVATE int sqlite3CreateFunc(sqlite3 *, const char *, int, int, void *,
13509 SQLITE_PRIVATE int sqlite3ApiExit(sqlite3 *db, int);
13512 SQLITE_PRIVATE void sqlite3StrAccumInit(StrAccum*, sqlite3*, char*, int, int);
13519 SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *, SrcList *, int, int);
13529 SQLITE_PRIVATE int sqlite3Stat4Column(sqlite3*, const void*, int, int, sqlite3_value**);
13542 SQLITE_PRIVATE void sqlite3AutoLoadExtensions(sqlite3*);
13544 SQLITE_PRIVATE void sqlite3CloseExtensions(sqlite3*);
13571 SQLITE_PRIVATE void sqlite3VtabClear(sqlite3 *db, Table*);
13572 SQLITE_PRIVATE void sqlite3VtabDisconnect(sqlite3 *db, Table *p);
13573 SQLITE_PRIVATE int sqlite3VtabSync(sqlite3 *db, Vdbe*);
13574 SQLITE_PRIVATE int sqlite3VtabRollback(sqlite3 *db);
13575 SQLITE_PRIVATE int sqlite3VtabCommit(sqlite3 *db);
13578 SQLITE_PRIVATE void sqlite3VtabUnlockList(sqlite3*);
13579 SQLITE_PRIVATE int sqlite3VtabSavepoint(sqlite3 *, int, int);
13581 SQLITE_PRIVATE VTable *sqlite3GetVTable(sqlite3*, Table*);
13589 SQLITE_PRIVATE int sqlite3VtabCallCreate(sqlite3*, int, const char *, char **);
13591 SQLITE_PRIVATE int sqlite3VtabCallDestroy(sqlite3*, int, const char *);
13592 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *, VTable *);
13593 SQLITE_PRIVATE FuncDef *sqlite3VtabOverloadFunction(sqlite3 *,FuncDef*, int nArg, Expr*);
13602 SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3*);
13605 SQLITE_PRIVATE int sqlite3Checkpoint(sqlite3*, int, int, int*, int*);
13606 SQLITE_PRIVATE int sqlite3WalDefaultHook(void*,sqlite3*,const char*,int);
13610 SQLITE_PRIVATE void sqlite3WithDelete(sqlite3*,With*);
13639 SQLITE_PRIVATE void sqlite3FkDelete(sqlite3 *, Table*);
13709 SQLITE_PRIVATE void sqlite3ConnectionBlocked(sqlite3 *, sqlite3 *);
13710 SQLITE_PRIVATE void sqlite3ConnectionUnlocked(sqlite3 *db);
13711 SQLITE_PRIVATE void sqlite3ConnectionClosed(sqlite3 *db);
14641 i64 lastRowid; /* Last insert rowid (sqlite3.lastRowid) */
14682 sqlite3 *db; /* The associated database connection */
14819 sqlite3 *db; /* The database connection that owns this statement */
14909 SQLITE_PRIVATE int sqlite3VdbeIdxKeyCompare(sqlite3*,VdbeCursor*,UnpackedRecord*,int*);
14910 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3*, BtCursor*, i64*);
14927 SQLITE_PRIVATE void sqlite3VdbeMemInit(Mem*,sqlite3*,u16);
14953 SQLITE_PRIVATE int sqlite3VdbeSorterInit(sqlite3 *, int, VdbeCursor *);
14954 SQLITE_PRIVATE void sqlite3VdbeSorterReset(sqlite3 *, VdbeSorter *);
14955 SQLITE_PRIVATE void sqlite3VdbeSorterClose(sqlite3 *, VdbeCursor *);
14957 SQLITE_PRIVATE int sqlite3VdbeSorterNext(sqlite3 *, const VdbeCursor *, int *);
15154 sqlite3 *db, /* The database connection whose status is desired */
16221 sqlite3 *db;
16407 sqlite3 *db;
20962 static int isLookaside(sqlite3 *db, void *p){
20977 SQLITE_PRIVATE int sqlite3DbMallocSize(sqlite3 *db, void *p){
21021 static SQLITE_NOINLINE void measureAllocationSize(sqlite3 *db, void *p){
21029 SQLITE_PRIVATE void sqlite3DbFree(sqlite3 *db, void *p){
21141 SQLITE_PRIVATE void *sqlite3DbMallocZero(sqlite3 *db, u64 n){
21167 SQLITE_PRIVATE void *sqlite3DbMallocRaw(sqlite3 *db, u64 n){
21211 SQLITE_PRIVATE void *sqlite3DbRealloc(sqlite3 *db, void *p, u64 n){
21247 SQLITE_PRIVATE void *sqlite3DbReallocOrFree(sqlite3 *db, void *p, u64 n){
21263 SQLITE_PRIVATE char *sqlite3DbStrDup(sqlite3 *db, const char *z){
21277 SQLITE_PRIVATE char *sqlite3DbStrNDup(sqlite3 *db, const char *z, u64 n){
21296 SQLITE_PRIVATE void sqlite3SetString(char **pz, sqlite3 *db, const char *zFormat, ...){
21310 static SQLITE_NOINLINE int apiOomError(sqlite3 *db){
21329 SQLITE_PRIVATE int sqlite3ApiExit(sqlite3* db, int rc){
22235 SQLITE_PRIVATE void sqlite3StrAccumInit(StrAccum *p, sqlite3 *db, char *zBase, int n, int mx){
22248 SQLITE_PRIVATE char *sqlite3VMPrintf(sqlite3 *db, const char *zFormat, va_list ap){
22267 SQLITE_PRIVATE char *sqlite3MPrintf(sqlite3 *db, const char *zFormat, ...){
22284 SQLITE_PRIVATE char *sqlite3MAppendf(sqlite3 *db, char *zStr, const char *zFormat, ...){
23331 SQLITE_PRIVATE char *sqlite3Utf16to8(sqlite3 *db, const void *z, int nByte, u8 enc){
23543 SQLITE_PRIVATE void sqlite3Error(sqlite3 *db, int err_code){
23570 SQLITE_PRIVATE void sqlite3ErrorWithMsg(sqlite3 *db, int err_code, const char *zFormat, ...){
23605 sqlite3 *db = pParse->db;
24544 SQLITE_PRIVATE void *sqlite3HexToBlob(sqlite3 *db, const char *z, int n){
24586 SQLITE_PRIVATE int sqlite3SafetyCheckOk(sqlite3 *db){
24603 SQLITE_PRIVATE int sqlite3SafetyCheckSickOrOk(sqlite3 *db){
26208 ** useful to the clients of the sqlite3 functions. Specifically, it is
41107 sqlite3 *db; /* The database connection */
41135 SQLITE_PRIVATE RowSet *sqlite3RowSetInit(sqlite3 *db, void *pSpace, unsigned int N){
52440 ** All fields in this structure are accessed under sqlite3.mutex.
52444 ** they often do so without holding sqlite3.mutex.
52447 sqlite3 *db; /* The database connection holding this btree */
52510 sqlite3 *db; /* Database connection currently using this Btree */
52967 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3 *db){
52976 SQLITE_PRIVATE void sqlite3BtreeLeaveAll(sqlite3 *db){
53001 SQLITE_PRIVATE int sqlite3BtreeHoldsAllMutexes(sqlite3 *db){
53030 SQLITE_PRIVATE int sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema){
53057 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3 *db){
54970 sqlite3 *db, /* Associated database handle */
55949 sqlite3 *pBlock = 0;
56568 sqlite3 *db = p->db;
62338 sqlite3* pDestDb; /* Destination database handle */
62344 sqlite3* pSrcDb; /* Source database handle */
62398 static Btree *findBtree(sqlite3 *pErrorDb, sqlite3 *pDb, const char *zDb){
62447 static int checkReadTransaction(sqlite3 *db, Btree *p){
62464 sqlite3* pDestDb, /* Database to write to */
62466 sqlite3* pSrcDb, /* Database connection to read from */
62918 sqlite3 *pSrcDb; /* Source database connection */
63734 SQLITE_PRIVATE void sqlite3VdbeMemInit(Mem *pMem, sqlite3 *db, u16 flags){
63822 sqlite3 *db = pMem->db;
64170 SQLITE_PRIVATE sqlite3_value *sqlite3ValueNew(sqlite3 *db){
64201 static sqlite3_value *valueNew(sqlite3 *db, struct ValueNewStat4Ctx *p){
64264 sqlite3 *db, /* The database connection */
64360 sqlite3 *db, /* The database connection */
64495 sqlite3 *db, /* The database connection */
64523 sqlite3 *db;
64587 sqlite3 *db = pParse->db;
64704 sqlite3 *db, /* Database handle */
64753 sqlite3 *db = aMem[0].db;
64822 sqlite3 *db = pParse->db;
65491 static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){
65497 static void vdbeFreeOpArray(sqlite3 *, Op *, int);
65502 static void freeP4(sqlite3 *db, int p4type, void *p4){
65548 static void vdbeFreeOpArray(sqlite3 *db, Op *aOp, int nOp){
65577 sqlite3 *db = p->db;
65617 sqlite3 *db;
65991 sqlite3 *db;
66012 sqlite3 *db;
66060 sqlite3 *db = p->db;
66139 sqlite3 *db = p->db; /* The database connection */
66458 sqlite3 *db; /* The database connection */
66669 sqlite3 *db = p->db;
66695 sqlite3 *db = p->db;
66748 static int vdbeCommit(sqlite3 *db, Vdbe *p){
66986 ** This routine checks that the sqlite3.nVdbeActive count variable
66987 ** matches the number of vdbe's in the list sqlite3.pVdbe that are
66995 static void checkActiveVdbeCnt(sqlite3 *db){
67028 sqlite3 *const db = p->db;
67094 sqlite3 *db = p->db;
67122 sqlite3 *db = p->db;
67335 sqlite3 *db = p->db;
67384 sqlite3 *db;
67516 SQLITE_PRIVATE void sqlite3VdbeClearObject(sqlite3 *db, Vdbe *p){
67544 sqlite3 *db;
68791 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
68870 sqlite3 *db, /* Database connection */
68903 SQLITE_PRIVATE void sqlite3VdbeSetChanges(sqlite3 *db, int nChange){
68927 SQLITE_PRIVATE void sqlite3ExpirePreparedStatements(sqlite3 *db){
68937 SQLITE_PRIVATE sqlite3 *sqlite3VdbeDb(Vdbe *v){
68986 sqlite3 *db = p->db;
69066 sqlite3 *db = v->db;
69396 static int doWalCallbacks(sqlite3 *db){
69426 sqlite3 *db;
69562 sqlite3 *db; /* The database connection */
69623 SQLITE_API sqlite3 *SQLITE_STDCALL sqlite3_context_db_handle(sqlite3_context *p){
69997 sqlite3 *db;
70438 ** Return the sqlite3* database handle to which the prepared statement given
70443 SQLITE_API sqlite3 *SQLITE_STDCALL sqlite3_db_handle(sqlite3_stmt *pStmt){
70469 SQLITE_API sqlite3_stmt *SQLITE_STDCALL sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt){
70622 ** obtained from sqlite3DbMalloc(). If sqlite3.nVdbeExec is 1, then the
70624 ** their current bindings. Or, if sqlite3.nVdbeExec is greater than 1,
70648 sqlite3 *db; /* The database connection */
70814 ** field of the sqlite3 structure is set in order to simulate an interrupt.
71351 ** checks that the sqlite3.nTransaction variable is correctly set to
71353 ** linked list starting at sqlite3.pSavepoint.
71359 static int checkSavepointCount(sqlite3 *db){
71397 sqlite3 *db = p->db; /* The database */
72160 /* If the SQLITE_CountRows flag is set in sqlite3.flags mask, then
75000 ** (sqlite3.xUpdateCallback) is invoked following a successful insert.
76839 ** P1 is the index of the database in sqlite3.aDb[] of the database
77472 sqlite3 *db; /* The associated database */
77548 sqlite3* db, /* The database connection */
77787 sqlite3 *db;
77814 sqlite3 *db;
77888 sqlite3 *db;
78240 sqlite3 *db; /* Database connection */
78844 sqlite3 *db, /* Database connection (for malloc()) */
78938 static void vdbeSorterRecordFree(sqlite3 *db, SorterRecord *pRecord){
78951 static void vdbeSortSubtaskCleanup(sqlite3 *db, SortSubtask *pTask){
79134 SQLITE_PRIVATE void sqlite3VdbeSorterReset(sqlite3 *db, VdbeSorter *pSorter){
79167 SQLITE_PRIVATE void sqlite3VdbeSorterClose(sqlite3 *db, VdbeCursor *pCsr){
79187 static void vdbeSorterExtendFile(sqlite3 *db, sqlite3_file *pFd, i64 nByte){
79207 sqlite3 *db, /* Database handle doing sort */
79452 sqlite3 *db = pTask->pSorter->db;
80082 sqlite3 *db = pTask->pSorter->db;
80393 sqlite3 *db = pTask0->pSorter->db;
80516 SQLITE_PRIVATE int sqlite3VdbeSorterNext(sqlite3 *db, const VdbeCursor *pCsr, int *pbEof){
81411 sqlite3 *db; /* The database connection */
81537 sqlite3 *db = pParse->db; /* The database connection */
81844 SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){
82181 sqlite3 *db; /* Database connection */
82253 sqlite3 *db;
82351 sqlite3 *db = pParse->db;
82463 sqlite3 *db; /* Database connection */
82943 sqlite3 *db = pParse->db;
83269 sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */
83318 sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */
83335 sqlite3 *db,
83420 SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3 *db, Expr *pLeft, Expr *pRight){
83442 sqlite3 *db = pParse->db;
83472 sqlite3 *db = pParse->db;
83542 SQLITE_PRIVATE void sqlite3ExprDelete(sqlite3 *db, Expr *p){
83675 static Expr *exprDup(sqlite3 *db, Expr *p, int flags, u8 **pzBuffer){
83764 static With *withDup(sqlite3 *db, With *p){
83802 SQLITE_PRIVATE Expr *sqlite3ExprDup(sqlite3 *db, Expr *p, int flags){
83805 SQLITE_PRIVATE ExprList *sqlite3ExprListDup(sqlite3 *db, ExprList *p, int flags){
83841 SQLITE_PRIVATE SrcList *sqlite3SrcListDup(sqlite3 *db, SrcList *p, int flags){
83879 SQLITE_PRIVATE IdList *sqlite3IdListDup(sqlite3 *db, IdList *p){
83902 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
83930 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
83950 sqlite3 *db = pParse->db;
84020 sqlite3 *db = pParse->db;
84052 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){
84517 sqlite3 *db = pParse->db; /* Database connection */
85403 sqlite3 *db = pParse->db; /* The database connection */
86981 static int addAggInfoColumn(sqlite3 *db, AggInfo *pInfo){
86997 static int addAggInfoFunc(sqlite3 *db, AggInfo *pInfo){
87296 sqlite3 *db = sqlite3_context_db_handle(context);
87352 sqlite3 *db = sqlite3_context_db_handle(context);
87418 sqlite3 *db = sqlite3_context_db_handle(context);
87511 static char *whereOrName(sqlite3 *db, char *zWhere, char *zConstant){
87556 sqlite3 *db = pParse->db;
87649 sqlite3 *db = pParse->db; /* Database connection */
87880 sqlite3 *db; /* The database connection; */
88005 sqlite3 *db = pParse->db;
88275 sqlite3 *db = pParse->db;
88374 sqlite3 *db; /* Database connection, for malloc() */
88380 static void sampleClear(sqlite3 *db, Stat4Sample *p){
88392 static void sampleSetRowid(sqlite3 *db, Stat4Sample *p, int n, const u8 *pData){
88408 static void sampleSetRowidInt64(sqlite3 *db, Stat4Sample *p, i64 iRowid){
88483 sqlite3 *db; /* Database connection */
89042 sqlite3 *db = pParse->db; /* Database handle */
89372 sqlite3 *db = pParse->db;
89430 sqlite3 *db = pParse->db;
89495 sqlite3 *db;
89633 SQLITE_PRIVATE void sqlite3DeleteIndexSamples(sqlite3 *db, Index *pIdx){
89718 sqlite3 *db,
89744 sqlite3 *db, /* Database handle */
89867 static int loadStat4(sqlite3 *db, const char *zDb){
89911 SQLITE_PRIVATE int sqlite3AnalysisLoad(sqlite3 *db, int iDb){
90039 sqlite3 *db = sqlite3_context_db_handle(context);
90145 extern int sqlite3CodecAttach(sqlite3*, int, const void*, int);
90146 extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);
90239 sqlite3 *db = sqlite3_context_db_handle(context);
90297 sqlite3* db = pParse->db;
90407 sqlite3 *db;
90630 sqlite3 *db,
90657 ** callback has been registered (i.e. that sqlite3.xAuth is not NULL).
90669 sqlite3 *db = pParse->db; /* Database handle */
90706 sqlite3 *db = pParse->db;
90764 sqlite3 *db = pParse->db;
90961 sqlite3 *db;
91086 sqlite3 *db = pParse->db;
91130 SQLITE_PRIVATE Table *sqlite3FindTable(sqlite3 *db, const char *zName, const char *zDatabase){
91233 SQLITE_PRIVATE Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){
91253 sqlite3 *db, Index *p){
91272 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteIndex(sqlite3 *db, int iDb, const char *zIdxName){
91305 SQLITE_PRIVATE void sqlite3CollapseDatabaseArray(sqlite3 *db){
91332 SQLITE_PRIVATE void sqlite3ResetOneSchema(sqlite3 *db, int iDb){
91358 SQLITE_PRIVATE void sqlite3ResetAllSchemasOfConnection(sqlite3 *db){
91376 SQLITE_PRIVATE void sqlite3CommitInternalChanges(sqlite3 *db){
91384 static void sqliteDeleteColumnNames(sqlite3 *db, Table *pTable){
91415 SQLITE_PRIVATE void sqlite3DeleteTable(sqlite3 *db, Table *pTable){
91471 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTable(sqlite3 *db, int iDb, const char *zTabName){
91499 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3 *db, Token *pName){
91529 SQLITE_PRIVATE int sqlite3FindDbName(sqlite3 *db, const char *zName){
91550 SQLITE_PRIVATE int sqlite3FindDb(sqlite3 *db, Token *pName){
91582 sqlite3 *db = pParse->db;
91668 sqlite3 *db = pParse->db;
91885 sqlite3 *db = pParse->db;
92059 sqlite3 *db = pParse->db;
92175 sqlite3 *db = pParse->db;
92198 sqlite3 *db;
92247 sqlite3 *db = pParse->db;
92279 sqlite3 *db = pParse->db;
92344 static char *createTableStmt(sqlite3 *db, Table *p){
92412 static int resizeIndexObject(sqlite3 *db, Index *pIdx, int N){
92497 sqlite3 *db = pParse->db;
92637 sqlite3 *db = pParse->db; /* The database connection */
92862 sqlite3 *db = pParse->db;
92928 sqlite3 *db = pParse->db; /* Database connection for malloc errors */
93018 static void sqliteViewResetAll(sqlite3 *db, int idx){
93054 SQLITE_PRIVATE void sqlite3RootPageMoved(sqlite3 *db, int iDb, int iFrom, int iTo){
93195 sqlite3 *db = pParse->db;
93267 sqlite3 *db = pParse->db;
93386 sqlite3 *db = pParse->db;
93533 sqlite3 *db = pParse->db; /* The database connection */
93609 sqlite3 *db, /* Database connection */
93672 sqlite3 *db = pParse->db;
94182 sqlite3 *db = pParse->db;
94261 sqlite3 *db, /* Connection to notify of malloc failures */
94291 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
94315 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3 *db, IdList *pList){
94358 sqlite3 *db, /* Database connection to notify of OOM errors */
94440 sqlite3 *db, /* Connection to notify of malloc failures */
94492 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){
94536 sqlite3 *db = pParse->db;
94613 sqlite3 *db;
94694 sqlite3 *db = pParse->db;
94730 sqlite3 *db = pToplevel->db;
94750 sqlite3 *db = pParse->db;
94932 sqlite3 *db = pParse->db; /* The database connection */
94968 sqlite3 *db = pParse->db; /* The database connection */
95065 sqlite3 *db = pParse->db;
95109 SQLITE_PRIVATE void sqlite3WithDelete(sqlite3 *db, With *pWith){
95146 static void callCollNeeded(sqlite3 *db, int enc, const char *zName){
95175 static int synthCollSeq(sqlite3 *db, CollSeq *pColl){
95212 sqlite3 *db = pParse->db;
95249 sqlite3 *db = pParse->db;
95266 ** Each pointer stored in the sqlite3.aCollSeq hash table contains an
95275 sqlite3 *db, /* Database connection */
95328 sqlite3 *db,
95469 sqlite3 *db, /* An open database */
95583 SQLITE_PRIVATE Schema *sqlite3SchemaGet(sqlite3 *db, Btree *pBt){
95700 sqlite3 *db = pParse->db;
95834 sqlite3 *db; /* Main database structure */
96677 sqlite3 *db = sqlite3_context_db_handle(context);
96841 sqlite3 *db = sqlite3_context_db_handle(context);
96967 sqlite3 *db = sqlite3_context_db_handle(context);
96987 sqlite3 *db = sqlite3_context_db_handle(context);
97001 sqlite3 *db = sqlite3_context_db_handle(context);
97241 sqlite3 *db = sqlite3_context_db_handle(context);
97570 sqlite3 *db = sqlite3_context_db_handle(context);
97640 sqlite3 *db = sqlite3_context_db_handle(context);
97821 sqlite3 *db = sqlite3_context_db_handle(context);
97967 ** returns (void *)db, where db is the sqlite3* database pointer.
98011 sqlite3 *db = sqlite3_context_db_handle(context);
98049 SQLITE_PRIVATE void sqlite3RegisterBuiltinFunctions(sqlite3 *db){
98060 static void setLikeOptFlag(sqlite3 *db, const char *zName, u8 flagVal){
98074 SQLITE_PRIVATE void sqlite3RegisterLikeFunctions(sqlite3 *db, int caseSensitive){
98102 SQLITE_PRIVATE int sqlite3IsLikeFunction(sqlite3 *db, Expr *pExpr, int *pIsNocase, char *aWc){
98712 sqlite3 *db = pParse->db;
98736 sqlite3 *db, /* The database connection */
98792 sqlite3 *db = pParse->db; /* Database handle */
98918 static void fkTriggerDelete(sqlite3 *dbMem, Trigger *p){
98947 sqlite3 *db = pParse->db;
99104 sqlite3 *db = pParse->db; /* Database handle */
99398 sqlite3 *db = pParse->db; /* Database handle */
99610 SQLITE_PRIVATE void sqlite3FkDelete(sqlite3 *db, Table *pTab){
99677 int iDb, /* The database index in sqlite3.aDb[] */
99732 sqlite3 *db = sqlite3VdbeDb(v);
99772 sqlite3 *db = sqlite3VdbeDb(v);
99892 sqlite3 *db = pParse->db; /* The database connection */
99949 sqlite3 *db = pParse->db;
100094 sqlite3 *db; /* The main database structure */
100793 sqlite3 *db; /* Database connection */
101420 sqlite3 *db = pParse->db;
101738 sqlite3 *db, /* The database on which the SQL executes */
101890 ** sqlite3.h.
101921 int (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
101922 int (*busy_timeout)(sqlite3*,int ms);
101923 int (*changes)(sqlite3*);
101924 int (*close)(sqlite3*);
101925 int (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,
101927 int (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,
101950 void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
101953 int (*create_collation)(sqlite3*,const char*,int,void*,
101955 int (*create_collation16)(sqlite3*,const void*,int,void*,
101957 int (*create_function)(sqlite3*,const char*,int,int,void*,
101961 int (*create_function16)(sqlite3*,const void*,int,int,void*,
101965 int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);
101967 sqlite3 * (*db_handle)(sqlite3_stmt*);
101968 int (*declare_vtab)(sqlite3*,const char*);
101970 int (*errcode)(sqlite3*db);
101971 const char * (*errmsg)(sqlite3*);
101972 const void * (*errmsg16)(sqlite3*);
101973 int (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);
101978 int (*get_autocommit)(sqlite3*);
101980 int (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);
101982 void (*interruptx)(sqlite3*);
101983 sqlite_int64 (*last_insert_rowid)(sqlite3*);
101988 int (*open)(const char*,sqlite3**);
101989 int (*open16)(const void*,sqlite3**);
101990 int (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
101991 int (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
101992 void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);
101993 void (*progress_handler)(sqlite3*,int,int(*)(void*),void*);
102008 void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);
102009 int (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,
102014 int (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,
102017 int (*total_changes)(sqlite3*);
102018 void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);
102020 void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,
102037 int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
102039 int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
102040 int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
102043 int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,
102049 int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,
102053 int (*create_collation_v2)(sqlite3*,const char*,int,void*,
102056 int (*file_control)(sqlite3*,const char*,int,void*);
102064 int (*open_v2)(const char*,sqlite3**,int,const char*);
102078 sqlite3 *(*context_db_handle)(sqlite3_context*);
102079 int (*extended_result_codes)(sqlite3*,int);
102080 int (*limit)(sqlite3*,int,int);
102081 sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);
102085 sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*);
102091 int (*create_function_v2)(sqlite3*,const char*,int,int,void*,
102096 int (*db_config)(sqlite3*,int,...);
102097 sqlite3_mutex *(*db_mutex)(sqlite3*);
102098 int (*db_status)(sqlite3*,int,int*,int*,int);
102099 int (*extended_errcode)(sqlite3*);
102105 int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*);
102106 int (*wal_autocheckpoint)(sqlite3*,int);
102107 int (*wal_checkpoint)(sqlite3*,const char*);
102108 void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*);
102110 int (*vtab_config)(sqlite3*,int op,...);
102111 int (*vtab_on_conflict)(sqlite3*);
102113 int (*close_v2)(sqlite3*);
102114 const char *(*db_filename)(sqlite3*,const char*);
102115 int (*db_readonly)(sqlite3*,const char*);
102116 int (*db_release_memory)(sqlite3*);
102125 int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*);
102133 int (*load_extension)(sqlite3*,const char*,const char*,char**);
102794 sqlite3 *db, /* Load the extension into this database connection */
102801 int (*xInit)(sqlite3*,char**,const sqlite3_api_routines*);
102858 xInit = (int(*)(sqlite3*,char**,const sqlite3_api_routines*))
102891 xInit = (int(*)(sqlite3*,char**,const sqlite3_api_routines*))
102933 sqlite3 *db, /* Load the extension into this database connection */
102950 SQLITE_PRIVATE void sqlite3CloseExtensions(sqlite3 *db){
102963 SQLITE_API int SQLITE_STDCALL sqlite3_enable_load_extension(sqlite3 *db, int onoff){
103110 SQLITE_PRIVATE void sqlite3AutoLoadExtensions(sqlite3 *db){
103114 int (*xInit)(sqlite3*,char**,const sqlite3_api_routines*);
103131 xInit = (int(*)(sqlite3*,char**,const sqlite3_api_routines*))
103737 sqlite3 *db = pParse->db;
103760 sqlite3 *db = pParse->db;
103792 static void setAllPagerFlags(sqlite3 *db){
103889 sqlite3 *db = pParse->db; /* The database connection */
104152 ** Also, the sqlite3.dfltLockMode variable is set so that
105617 sqlite3 *db = pData->db;
105644 sqlite3 *db = pData->db;
105724 static int sqlite3InitOne(sqlite3 *db, int iDb, char **pzErrMsg){
105846 ** main database, set sqlite3.enc to the encoding of the main database.
105848 ** as sqlite3.enc.
105982 SQLITE_PRIVATE int sqlite3Init(sqlite3 *db, char **pzErrMsg){
106028 sqlite3 *db = pParse->db;
106047 sqlite3 *db = pParse->db;
106095 SQLITE_PRIVATE int sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema){
106125 sqlite3 *db = pParse->db;
106135 sqlite3 *db, /* Database handle. */
106295 sqlite3 *db, /* Database handle. */
106337 sqlite3 *db;
106371 sqlite3 *db, /* Database handle. */
106383 sqlite3 *db, /* Database handle. */
106401 sqlite3 *db, /* Database handle. */
106459 sqlite3 *db, /* Database handle. */
106471 sqlite3 *db, /* Database handle. */
106549 static void clearSelect(sqlite3 *db, Select *p, int bFree){
106597 sqlite3 *db = pParse->db;
106646 SQLITE_PRIVATE void sqlite3SelectDelete(sqlite3 *db, Select *p){
106798 sqlite3 *db = pParse->db;
107465 SQLITE_PRIVATE KeyInfo *sqlite3KeyInfoAlloc(sqlite3 *db, int N, int X){
107536 sqlite3 *db = pParse->db;
107992 sqlite3 *db = pParse->db;
108068 sqlite3 *db = pParse->db; /* Database connection */
108170 sqlite3 *db = pParse->db;
108208 sqlite3 *db = pParse->db;
108367 sqlite3 *db = pParse->db;
108665 sqlite3 *db; /* Database connection */
109288 sqlite3 *db; /* Database connection */
109567 static void substExprList(sqlite3*, ExprList*, int, ExprList*);
109568 static void substSelect(sqlite3*, Select *, int, ExprList *);
109584 sqlite3 *db, /* Report malloc errors to this connection */
109613 sqlite3 *db, /* Report malloc errors here */
109625 sqlite3 *db, /* Report malloc errors here */
109808 sqlite3 *db = pParse->db;
110338 sqlite3 *db;
110455 sqlite3 *db = pParse->db;
110606 sqlite3 *db = pParse->db;
110996 sqlite3 *db;
111209 sqlite3 *db; /* The database connection */
112212 sqlite3 *db, /* The database on which the SQL executes */
112314 SQLITE_PRIVATE void sqlite3DeleteTriggerStep(sqlite3 *db, TriggerStep *pTriggerStep){
112390 sqlite3 *db = pParse->db; /* The database connection */
112571 sqlite3 *db = pParse->db; /* The database */
112645 SQLITE_PRIVATE TriggerStep *sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect){
112664 sqlite3 *db, /* Database connection */
112689 sqlite3 *db, /* The database connection */
112718 sqlite3 *db, /* The database connection */
112743 sqlite3 *db, /* Database connection */
112761 SQLITE_PRIVATE void sqlite3DeleteTrigger(sqlite3 *db, Trigger *pTrigger){
112784 sqlite3 *db = pParse->db;
112832 sqlite3 *db = pParse->db;
112888 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTrigger(sqlite3 *db, int iDb, const char *zName){
112971 sqlite3 *db = pParse->db;
112999 sqlite3 *db = pParse->db;
113110 sqlite3 *db = pParse->db; /* Database handle */
113523 sqlite3 *db; /* The database structure */
114134 sqlite3 *db = pParse->db; /* Database connection */
114216 static int vacuumFinalize(sqlite3 *db, sqlite3_stmt *pStmt, char **pzErrMsg){
114228 static int execSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
114247 static int execExecSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
114307 SQLITE_PRIVATE int sqlite3RunVacuum(char **pzErrMsg, sqlite3 *db){
114383 extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);
114585 ** sqlite3.pVtabCtx member variable is set to point to an instance of
114603 sqlite3 *db, /* Database in which module is registered */
114647 sqlite3 *db, /* Database in which module is registered */
114662 sqlite3 *db, /* Database in which module is registered */
114692 SQLITE_PRIVATE VTable *sqlite3GetVTable(sqlite3 *db, Table *pTab){
114704 sqlite3 *db = pVTab->db;
114722 ** p->pVTable list to the sqlite3.pDisconnect lists of their associated
114727 static VTable *vtabDisconnectAll(sqlite3 *db, Table *p){
114735 ** this makes it safe to access the sqlite3.pDisconnect list of any
114741 sqlite3 *db2 = pVTable->db;
114767 SQLITE_PRIVATE void sqlite3VtabDisconnect(sqlite3 *db, Table *p){
114786 ** Disconnect all the virtual table objects in the sqlite3.pDisconnect list.
114790 ** caller. This is done to protect the sqlite3.pDisconnect list. The
114791 ** sqlite3.pDisconnect list is accessed only as follows:
114797 ** the sqlite3.pDisconnect list. In this case either the BtShared mutex
114802 ** As a result, a sqlite3.pDisconnect cannot be accessed simultaneously
114805 SQLITE_PRIVATE void sqlite3VtabUnlockList(sqlite3 *db){
114829 ** structure is associated with a single sqlite3* user of the schema.
114833 ** in the list are moved to the sqlite3.pDisconnect list of the associated
114836 SQLITE_PRIVATE void sqlite3VtabClear(sqlite3 *db, Table *p){
114853 static void addModuleArgument(sqlite3 *db, Table *pTable, char *zArg){
114887 sqlite3 *db; /* Database connection */
114932 sqlite3 *db = pParse->db;
114943 sqlite3 *db = pParse->db; /* The database connection */
115052 sqlite3 *db,
115055 int (*xConstruct)(sqlite3*,void*,int,const char*const*,sqlite3_vtab**,char**),
115187 sqlite3 *db = pParse->db;
115220 static int growVTrans(sqlite3 *db){
115223 /* Grow the sqlite3.aVTrans array if required */
115239 ** Add the virtual table pVTab to the array sqlite3.aVTrans[]. Space should
115242 static void addToVTrans(sqlite3 *db, VTable *pVTab){
115243 /* Add pVtab to the end of sqlite3.aVTrans */
115256 SQLITE_PRIVATE int sqlite3VtabCallCreate(sqlite3 *db, int iDb, const char *zTab, char **pzErr){
115297 SQLITE_API int SQLITE_STDCALL sqlite3_declare_vtab(sqlite3 *db, const char *zCreateTable){
115368 SQLITE_PRIVATE int sqlite3VtabCallDestroy(sqlite3 *db, int iDb, const char *zTab){
115397 ** of each of the virtual tables in the sqlite3.aVTrans array. The method
115403 static void callFinaliser(sqlite3 *db, int offset){
115424 ** Invoke the xSync method of all virtual tables in the sqlite3.aVTrans
115430 SQLITE_PRIVATE int sqlite3VtabSync(sqlite3 *db, Vdbe *p){
115450 ** sqlite3.aVTrans array. Then clear the array itself.
115452 SQLITE_PRIVATE int sqlite3VtabRollback(sqlite3 *db){
115459 ** sqlite3.aVTrans array. Then clear the array itself.
115461 SQLITE_PRIVATE int sqlite3VtabCommit(sqlite3 *db){
115472 ** in the sqlite3.aVTrans array.
115474 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){
115502 ** sqlite3.aVTrans[] array. */
115529 SQLITE_PRIVATE int sqlite3VtabSavepoint(sqlite3 *db, int op, int iSavepoint){
115576 sqlite3 *db, /* Database connection for reporting malloc problems */
115667 SQLITE_API int SQLITE_STDCALL sqlite3_vtab_on_conflict(sqlite3 *db){
115685 SQLITE_API int SQLITE_CDECL sqlite3_vtab_config(sqlite3 *db, int op, ...){
115905 static int whereLoopResize(sqlite3*, WhereLoop*, int);
116342 static void whereOrInfoDelete(sqlite3 *db, WhereOrInfo *p){
116350 static void whereAndInfoDelete(sqlite3 *db, WhereAndInfo *p){
116362 sqlite3 *db = pWC->pWInfo->pParse->db;
116403 sqlite3 *db = pWC->pWInfo->pParse->db;
116842 sqlite3 *db = pParse->db; /* Database connection */
117008 sqlite3 *db; /* Database connection (for malloc) */
117134 sqlite3 *db = pParse->db; /* Database connection */
117406 sqlite3 *db = pParse->db; /* Database connection */
118482 sqlite3 *db = pParse->db;
119281 sqlite3 *db = pParse->db; /* Database handle */
119450 sqlite3 *db; /* Database connection */
120426 static void whereLoopClearUnion(sqlite3 *db, WhereLoop *p){
120443 static void whereLoopClear(sqlite3 *db, WhereLoop *p){
120452 static int whereLoopResize(sqlite3 *db, WhereLoop *p, int n){
120468 static int whereLoopXfer(sqlite3 *db, WhereLoop *pTo, WhereLoop *pFrom){
120487 static void whereLoopDelete(sqlite3 *db, WhereLoop *p){
120495 static void whereInfoFree(sqlite3 *db, WhereInfo *pWInfo){
120695 sqlite3 *db = pWInfo->pParse->db;
120890 sqlite3 *db = pParse->db; /* Database connection malloc context */
121465 sqlite3 *db;
121752 sqlite3 *db = pWInfo->pParse->db;
121827 sqlite3 *db = pWInfo->pParse->db; /* Database connection */
122136 sqlite3 *db; /* The database connection */
122657 sqlite3 *db; /* Database connection */
123069 sqlite3 *db = pParse->db;
123384 sqlite3 *db = pParse->db;
127494 sqlite3 *db = pParse->db; /* The database connection */
127963 SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db);
127995 SQLITE_PRIVATE int sqlite3RtreeInit(sqlite3 *db);
128027 SQLITE_PRIVATE int sqlite3IcuInit(sqlite3 *db);
128586 typedef void(*SQLLOGFUNC_t)(void*, sqlite3*, const char*, int);
128653 static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
128710 SQLITE_API sqlite3_mutex *SQLITE_STDCALL sqlite3_db_mutex(sqlite3 *db){
128724 SQLITE_API int SQLITE_STDCALL sqlite3_db_release_memory(sqlite3 *db){
128747 SQLITE_API int SQLITE_CDECL sqlite3_db_config(sqlite3 *db, int op, ...){
128762 u32 mask; /* Mask of the bit in sqlite3.flags to set/clear */
128866 SQLITE_API sqlite_int64 SQLITE_STDCALL sqlite3_last_insert_rowid(sqlite3 *db){
128879 SQLITE_API int SQLITE_STDCALL sqlite3_changes(sqlite3 *db){
128892 SQLITE_API int SQLITE_STDCALL sqlite3_total_changes(sqlite3 *db){
128907 SQLITE_PRIVATE void sqlite3CloseSavepoints(sqlite3 *db){
128924 static void functionDestroy(sqlite3 *db, FuncDef *p){
128939 static void disconnectAllVtab(sqlite3 *db){
128964 static int connectionIsBusy(sqlite3 *db){
128978 static int sqlite3Close(sqlite3 *db, int forceZombie){
129034 SQLITE_API int SQLITE_STDCALL sqlite3_close(sqlite3 *db){ return sqlite3Close(db,0); }
129035 SQLITE_API int SQLITE_STDCALL sqlite3_close_v2(sqlite3 *db){ return sqlite3Close(db,1); }
129046 SQLITE_PRIVATE void sqlite3LeaveMutexAndCloseZombie(sqlite3 *db){
129169 SQLITE_PRIVATE void sqlite3RollbackAll(sqlite3 *db, int tripCode){
129390 sqlite3 *db = (sqlite3 *)ptr;
129409 sqlite3 *db = (sqlite3 *)ptr;
129410 int timeout = ((sqlite3 *)ptr)->busyTimeout;
129443 sqlite3 *db,
129466 sqlite3 *db,
129496 SQLITE_API int SQLITE_STDCALL sqlite3_busy_timeout(sqlite3 *db, int ms){
129512 SQLITE_API void SQLITE_STDCALL sqlite3_interrupt(sqlite3 *db){
129530 sqlite3 *db,
129630 sqlite3 *db,
129644 sqlite3 *db,
129687 sqlite3 *db,
129727 sqlite3 *db,
129758 SQLITE_API void *SQLITE_STDCALL sqlite3_trace(sqlite3 *db, void (*xTrace)(void*,const char*), void *pArg){
129783 sqlite3 *db,
129810 sqlite3 *db, /* Attach the hook to this database */
129835 sqlite3 *db, /* Attach the hook to this database */
129860 sqlite3 *db, /* Attach the hook to this database */
129884 ** is greater than sqlite3.pWalArg cast to an integer (the value configured by
129889 sqlite3 *db, /* Connection */
129913 SQLITE_API int SQLITE_STDCALL sqlite3_wal_autocheckpoint(sqlite3 *db, int nFrame){
129935 sqlite3 *db, /* Attach the hook to this db handle */
129936 int(*xCallback)(void *, sqlite3*, const char*, int),
129962 sqlite3 *db, /* Database handle */
129972 int iDb = SQLITE_MAX_ATTACHED; /* sqlite3.aDb[] index of db to checkpoint */
130016 SQLITE_API int SQLITE_STDCALL sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb){
130042 SQLITE_PRIVATE int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt){
130086 SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3 *db){
130105 SQLITE_API const char *SQLITE_STDCALL sqlite3_errmsg(sqlite3 *db){
130133 SQLITE_API const void *SQLITE_STDCALL sqlite3_errmsg16(sqlite3 *db){
130178 SQLITE_API int SQLITE_STDCALL sqlite3_errcode(sqlite3 *db){
130187 SQLITE_API int SQLITE_STDCALL sqlite3_extended_errcode(sqlite3 *db){
130211 sqlite3* db,
130285 ** #defines in sqlite3.h.
130350 SQLITE_API int SQLITE_STDCALL sqlite3_limit(sqlite3 *db, int limitId, int newLimit){
130647 sqlite3 **ppDb, /* OUT: Returned database handle */
130651 sqlite3 *db; /* Store allocated handle here */
130725 db = sqlite3MallocZero( sizeof(sqlite3) );
130858 extern int sqlite3Fts1Init(sqlite3*);
130865 extern int sqlite3Fts2Init(sqlite3*);
130890 int sqlite3_dbstat_register(sqlite3*);
130944 sqlite3 **ppDb
130951 sqlite3 **ppDb, /* OUT: SQLite db handle */
130964 sqlite3 **ppDb
131002 sqlite3* db,
131015 sqlite3* db,
131040 sqlite3* db,
131070 sqlite3 *db,
131072 void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*)
131091 sqlite3 *db,
131093 void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*)
131123 SQLITE_API int SQLITE_STDCALL sqlite3_get_autocommit(sqlite3 *db){
131181 ** See comment in sqlite3.h (sqlite.h.in) for details.
131184 sqlite3 *db, /* Connection handle */
131317 SQLITE_API int SQLITE_STDCALL sqlite3_extended_result_codes(sqlite3 *db, int onoff){
131330 SQLITE_API int SQLITE_STDCALL sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg){
131543 /* sqlite3_test_control(SQLITE_TESTCTRL_RESERVE, sqlite3 *db, int N)
131549 sqlite3 *db = va_arg(ap, sqlite3*);
131557 /* sqlite3_test_control(SQLITE_TESTCTRL_OPTIMIZATIONS, sqlite3 *db, int N)
131567 sqlite3 *db = va_arg(ap, sqlite3*);
131647 sqlite3 *db = va_arg(ap, sqlite3*);
131679 sqlite3 *db = va_arg(ap, sqlite3*);
131747 SQLITE_PRIVATE Btree *sqlite3DbNameToBtree(sqlite3 *db, const char *zDbName){
131763 SQLITE_API const char *SQLITE_STDCALL sqlite3_db_filename(sqlite3 *db, const char *zDbName){
131779 SQLITE_API int SQLITE_STDCALL sqlite3_db_readonly(sqlite3 *db, const char *zDbName){
131825 ** Head of a linked list of all sqlite3 objects created by this process
131826 ** for which either sqlite3.pBlockingConnection or sqlite3.pUnlockConnection
131830 static sqlite3 *SQLITE_WSD sqlite3BlockedList = 0;
131847 static void checkListProperties(sqlite3 *db){
131848 sqlite3 *p;
131851 sqlite3 *p2;
131873 static void removeFromBlockedList(sqlite3 *db){
131874 sqlite3 **pp;
131888 static void addToBlockedList(sqlite3 *db){
131889 sqlite3 **pp;
131939 sqlite3 *db,
131961 sqlite3 *p;
131988 SQLITE_PRIVATE void sqlite3ConnectionBlocked(sqlite3 *db, sqlite3 *pBlocker){
132005 ** 1) If the sqlite3.pBlockingConnection member of a list entry is
132008 ** 2) If the sqlite3.pUnlockConnection member of a list entry is
132016 SQLITE_PRIVATE void sqlite3ConnectionUnlocked(sqlite3 *db){
132019 sqlite3 **pp; /* Iterator variable */
132029 sqlite3 *p = *pp;
132115 SQLITE_PRIVATE void sqlite3ConnectionClosed(sqlite3 *db){
132904 sqlite3 *db; /* The database connection */
133250 SQLITE_PRIVATE int sqlite3Fts3InitHashTable(sqlite3 *, Fts3Hash *, const char *);
133269 SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3 *db);
133270 SQLITE_PRIVATE int sqlite3Fts3InitTerm(sqlite3 *db);
133278 SQLITE_PRIVATE int sqlite3Fts3InitAux(sqlite3 *db);
133291 SQLITE_PRIVATE int sqlite3Fts3InitTok(sqlite3*, Fts3Hash *);
133542 sqlite3 *db, /* Database in which to run SQL */
133567 sqlite3 *db = p->db; /* Database handle */
133653 sqlite3 *db = p->db; /* The database connection */
134046 sqlite3 *db, /* Database handle */
134122 sqlite3 *db, /* The SQLite database connection */
134498 sqlite3 *db, /* Database connection */
134508 sqlite3 *db, /* Database connection */
136710 sqlite3 *db = p->db; /* Database connection */
136867 SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db){
138907 sqlite3 *db,
138976 sqlite3 *db, /* Database connection */
139436 SQLITE_PRIVATE int sqlite3Fts3InitAux(sqlite3 *db){
140559 sqlite3 *db,
140665 sqlite3 *db = sqlite3_context_db_handle(context);
140740 SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3* db){
142135 sqlite3 *db,
142157 sqlite3 *db,
142209 sqlite3 *db = (sqlite3 *)sqlite3_user_data(context);
142254 sqlite3 *db,
142692 sqlite3 *db, /* Database connection */
142955 SQLITE_PRIVATE int sqlite3Fts3InitTok(sqlite3 *db, Fts3Hash *pHash){
150268 ** from the sqlite3 source file utf.c. If this file is compiled as part
151116 sqlite3 *db; /* Host database connection */
151752 sqlite3 *, void *, int, const char *const*, sqlite3_vtab **, char **, int
151759 sqlite3 *db,
151772 sqlite3 *db,
153947 static int rtreeQueryStat1(sqlite3 *db, Rtree *pRtree){
154007 sqlite3 *db,
154086 static int getIntFromStmt(sqlite3 *db, const char *zSql, int *piVal){
154117 sqlite3 *db, /* Database handle */
154161 sqlite3 *db, /* Database connection */
154338 SQLITE_PRIVATE int sqlite3RtreeInit(sqlite3 *db){
154418 sqlite3 *db, /* Register SQL function on this connection */
154442 sqlite3 *db, /* Register SQL function on this connection */
154467 sqlite3 *db,
154894 sqlite3 *db = (sqlite3 *)sqlite3_user_data(p);
154928 sqlite3 *db){
154972 sqlite3 *db,
155369 sqlite3 *db;
155381 sqlite3 *db,
155869 SQLITE_API int SQLITE_STDCALL sqlite3_dbstat_register(sqlite3 *db){