Lines Matching refs: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
523 /************** Include sqlite3.h in the middle of sqliteInt.h ***************/
524 /************** Begin file sqlite3.h *****************************************/
554 ** the version number) and changes its name to "sqlite3.h" as
610 ** ^(The [SQLITE_VERSION] C preprocessor macro in the sqlite3.h header
716 ** the opaque structure named "sqlite3". It is useful to think of an sqlite3
722 ** sqlite3 object.
724 typedef struct sqlite3 sqlite3;
766 ** ^The sqlite3_close() routine is the destructor for the [sqlite3] object.
767 ** ^Calls to sqlite3_close() return SQLITE_OK if the [sqlite3] object is
772 ** the [sqlite3] object prior to attempting to close the object. ^If
781 ** pointer or an [sqlite3] object pointer obtained
787 SQLITE_API int sqlite3_close(sqlite3 *);
858 sqlite3*, /* An open database */
1496 SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_db_config(sqlite3*, int op, ...);
1830 SQLITE_API int sqlite3_extended_result_codes(sqlite3*, int onoff);
1875 SQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);
1929 SQLITE_API int sqlite3_changes(sqlite3*);
1955 SQLITE_API int sqlite3_total_changes(sqlite3*);
1994 SQLITE_API void sqlite3_interrupt(sqlite3*);
2096 SQLITE_API int sqlite3_busy_handler(sqlite3*, int(*)(void*,int), void*);
2116 SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms);
2188 sqlite3 *db, /* An open database */
2492 sqlite3*,
2583 SQLITE_API SQLITE_EXPERIMENTAL void *sqlite3_trace(sqlite3*, void(*xTrace)(void*,const char*), void…
2584 SQLITE_API SQLITE_EXPERIMENTAL void *sqlite3_profile(sqlite3*,
2606 SQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
2616 ** if SQLite is unable to allocate memory to hold the [sqlite3] object,
2617 ** a NULL will be written into *ppDb instead of a pointer to the [sqlite3]
2699 sqlite3 **ppDb /* OUT: SQLite db handle */
2703 sqlite3 **ppDb /* OUT: SQLite db handle */
2707 sqlite3 **ppDb, /* OUT: SQLite db handle */
2745 SQLITE_API int sqlite3_errcode(sqlite3 *db);
2746 SQLITE_API int sqlite3_extended_errcode(sqlite3 *db);
2747 SQLITE_API const char *sqlite3_errmsg(sqlite3*);
2748 SQLITE_API const void *sqlite3_errmsg16(sqlite3*);
2810 SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal);
2954 sqlite3 *db, /* Database handle */
2961 sqlite3 *db, /* Database handle */
2968 sqlite3 *db, /* Database handle */
2975 sqlite3 *db, /* Database handle */
3720 sqlite3 *db,
3730 sqlite3 *db,
3894 SQLITE_API sqlite3 *sqlite3_context_db_handle(sqlite3_context*);
4129 sqlite3*,
4136 sqlite3*,
4144 sqlite3*,
4178 sqlite3*,
4180 void(*)(void*,sqlite3*,int eTextRep,const char*)
4183 sqlite3*,
4185 void(*)(void*,sqlite3*,int eTextRep,const void*)
4196 sqlite3 *db, /* Database to be rekeyed */
4209 sqlite3 *db, /* Database to be rekeyed */
4281 SQLITE_API int sqlite3_get_autocommit(sqlite3*);
4293 SQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt*);
4308 SQLITE_API sqlite3_stmt *sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt);
4356 SQLITE_API void *sqlite3_commit_hook(sqlite3*, int(*)(void*), void*);
4357 SQLITE_API void *sqlite3_rollback_hook(sqlite3*, void(*)(void *), void*);
4406 sqlite3*,
4547 sqlite3 *db, /* Connection handle */
4584 sqlite3 *db, /* Load the extension into this database connection */
4603 SQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff);
4675 int (*xCreate)(sqlite3*, void *pAux,
4678 int (*xConnect)(sqlite3*, void *pAux,
4811 sqlite3 *db, /* SQLite connection to register module with */
4817 sqlite3 *db, /* SQLite connection to register module with */
4882 SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_declare_vtab(sqlite3*, const char *zSQL);
4901 SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_overload_function(sqlite3*, const char *zFuncName, int n…
4986 sqlite3*,
5395 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);
5423 SQLITE_API int sqlite3_file_control(sqlite3*, const char *zDbName, int op, void*);
5608 SQLITE_API SQLITE_EXPERIMENTAL int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int …
6031 sqlite3 *pDest, /* Destination database handle */
6033 sqlite3 *pSource, /* Source database handle */
6157 sqlite3 *pBlocked, /* Waiting connection */
6208 /************** End of sqlite3.h *********************************************/
6880 sqlite3 *db, /* Associated database connection */
7029 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3*);
7039 SQLITE_PRIVATE void sqlite3BtreeLeaveAll(sqlite3*);
7046 SQLITE_PRIVATE int sqlite3BtreeHoldsAllMutexes(sqlite3*);
7420 SQLITE_PRIVATE Vdbe *sqlite3VdbeCreate(sqlite3*);
7453 SQLITE_PRIVATE sqlite3 *sqlite3VdbeDb(Vdbe*);
7457 SQLITE_PRIVATE void sqlite3VdbeProgramDelete(sqlite3 *, SubProgram *, int);
8206 sqlite3 *db; /* "Owner" connection. See comment above */
8309 struct sqlite3 {
8354 void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*);
8355 void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*);
8395 ** mutex, not by sqlite3.mutex. They are used by code in notify.c.
8404 sqlite3 *pBlockingConnection; /* Connection that caused SQLITE_LOCKED */
8405 sqlite3 *pUnlockConnection; /* Connection to watch for unlock */
8408 sqlite3 *pNextBlocked; /* Next in list of all blocked connections */
8418 ** Possible values for the sqlite3.flags.
8445 ** Bits of the sqlite3.flags field that are used by the
8536 ** sqlite3.pSavepoint. The first element in the list is the most recently
8557 ** instance of the following structure, stored in the sqlite3.aModule
8670 ** structure for each database connection (sqlite3*) that uses the shared
8695 ** another linked list headed by the sqlite3.pDisconnect member of the
8696 ** corresponding sqlite3 structure. They are then deleted/xDisconnected
8697 ** next time a statement is prepared using said sqlite3*. This is done
8698 ** to avoid deadlock issues involving multiple sqlite3.mutex mutexes.
8700 ** explanation as to why it is safe to add an entry to an sqlite3.pDisconnect
8701 ** list without holding the corresponding sqlite3.mutex mutex.
8708 sqlite3 *db; /* Database connection associated with this table */
8746 sqlite3 *dbMem; /* DB connection used for lookaside allocations. */
8882 sqlite3 *db; /* The database connection */
9572 int iDb; /* Index in sqlite3.aDb[] of database holding pTab */
9626 sqlite3 *db; /* The main database structure */
9740 * 1. In the "trigHash" hash table (part of the sqlite3* that represents the
9843 sqlite3 *db; /* Optional database for lookaside. Can be NULL */
9859 sqlite3 *db; /* The database being initialized */
10001 SQLITE_PRIVATE void *sqlite3DbMallocZero(sqlite3*, int);
10002 SQLITE_PRIVATE void *sqlite3DbMallocRaw(sqlite3*, int);
10003 SQLITE_PRIVATE char *sqlite3DbStrDup(sqlite3*,const char*);
10004 SQLITE_PRIVATE char *sqlite3DbStrNDup(sqlite3*,const char*, int);
10006 SQLITE_PRIVATE void *sqlite3DbReallocOrFree(sqlite3 *, void *, int);
10007 SQLITE_PRIVATE void *sqlite3DbRealloc(sqlite3 *, void *, int);
10008 SQLITE_PRIVATE void sqlite3DbFree(sqlite3*, void*);
10010 SQLITE_PRIVATE int sqlite3DbMallocSize(sqlite3*, void*);
10062 SQLITE_PRIVATE char *sqlite3MPrintf(sqlite3*,const char*, ...);
10063 SQLITE_PRIVATE char *sqlite3VMPrintf(sqlite3*,const char*, va_list);
10064 SQLITE_PRIVATE char *sqlite3MAppendf(sqlite3*,char*,const char*,...);
10071 SQLITE_PRIVATE void sqlite3SetString(char **, sqlite3*, const char*, ...);
10081 SQLITE_PRIVATE Expr *sqlite3ExprAlloc(sqlite3*,int,const Token*,int);
10082 SQLITE_PRIVATE Expr *sqlite3Expr(sqlite3*,int,const char*);
10083 SQLITE_PRIVATE void sqlite3ExprAttachSubtrees(sqlite3*,Expr*,Expr*,Expr*);
10085 SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3*,Expr*, Expr*);
10088 SQLITE_PRIVATE void sqlite3ExprDelete(sqlite3*, Expr*);
10092 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3*, ExprList*);
10093 SQLITE_PRIVATE int sqlite3Init(sqlite3*, char**);
10096 SQLITE_PRIVATE void sqlite3ResetInternalSchema(sqlite3*, int);
10098 SQLITE_PRIVATE void sqlite3CommitInternalChanges(sqlite3*);
10119 SQLITE_PRIVATE RowSet *sqlite3RowSetInit(sqlite3*, void*, unsigned int);
10143 SQLITE_PRIVATE void *sqlite3ArrayAllocate(sqlite3*,void*,int,int,int*,int*,int*);
10144 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3*, IdList*, Token*);
10146 SQLITE_PRIVATE SrcList *sqlite3SrcListEnlarge(sqlite3*, SrcList*, int, int);
10147 SQLITE_PRIVATE SrcList *sqlite3SrcListAppend(sqlite3*, SrcList*, Token*, Token*);
10154 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3*, IdList*);
10155 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3*, SrcList*);
10162 SQLITE_PRIVATE void sqlite3SelectDelete(sqlite3*, Select*);
10191 SQLITE_PRIVATE Table *sqlite3FindTable(sqlite3*,const char*, const char*);
10193 SQLITE_PRIVATE Index *sqlite3FindIndex(sqlite3*,const char*, const char*);
10194 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTable(sqlite3*,int,const char*);
10195 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteIndex(sqlite3*,int,const char*);
10197 SQLITE_PRIVATE int sqlite3RunVacuum(char**, sqlite3*);
10198 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3*, Token*);
10206 SQLITE_PRIVATE void sqlite3RollbackAll(sqlite3*);
10212 SQLITE_PRIVATE void sqlite3CloseSavepoints(sqlite3 *);
10232 SQLITE_PRIVATE Expr *sqlite3ExprDup(sqlite3*,Expr*,int);
10233 SQLITE_PRIVATE ExprList *sqlite3ExprListDup(sqlite3*,ExprList*,int);
10234 SQLITE_PRIVATE SrcList *sqlite3SrcListDup(sqlite3*,SrcList*,int);
10235 SQLITE_PRIVATE IdList *sqlite3IdListDup(sqlite3*,IdList*);
10236 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3*,Select*,int);
10238 SQLITE_PRIVATE FuncDef *sqlite3FindFunction(sqlite3*,const char*,int,int,u8,int);
10239 SQLITE_PRIVATE void sqlite3RegisterBuiltinFunctions(sqlite3*);
10242 SQLITE_PRIVATE int sqlite3SafetyCheckOk(sqlite3*);
10243 SQLITE_PRIVATE int sqlite3SafetyCheckSickOrOk(sqlite3*);
10262 SQLITE_PRIVATE void sqlite3DeleteTriggerStep(sqlite3*, TriggerStep*);
10263 SQLITE_PRIVATE TriggerStep *sqlite3TriggerSelectStep(sqlite3*,Select*);
10264 SQLITE_PRIVATE TriggerStep *sqlite3TriggerInsertStep(sqlite3*,Token*, IdList*,
10266 SQLITE_PRIVATE TriggerStep *sqlite3TriggerUpdateStep(sqlite3*,Token*,ExprList*, Expr*, u8);
10267 SQLITE_PRIVATE TriggerStep *sqlite3TriggerDeleteStep(sqlite3*,Token*, Expr*);
10268 SQLITE_PRIVATE void sqlite3DeleteTrigger(sqlite3*, Trigger*);
10269 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTrigger(sqlite3*,int,const char*);
10301 SQLITE_PRIVATE int sqlite3BtreeFactory(sqlite3 *db, const char *zFilename,
10358 SQLITE_PRIVATE void sqlite3Error(sqlite3*, int, const char*,...);
10359 SQLITE_PRIVATE void *sqlite3HexToBlob(sqlite3*, const char *z, int n);
10363 SQLITE_PRIVATE CollSeq *sqlite3FindCollSeq(sqlite3*,u8 enc, const char*,int);
10369 SQLITE_PRIVATE void sqlite3VdbeSetChanges(sqlite3 *, int);
10376 SQLITE_PRIVATE sqlite3_value *sqlite3ValueNew(sqlite3 *);
10377 SQLITE_PRIVATE char *sqlite3Utf16to8(sqlite3 *, const void*, int);
10379 SQLITE_PRIVATE char *sqlite3Utf8to16(sqlite3 *, u8, char *, int, int *);
10381 SQLITE_PRIVATE int sqlite3ValueFromExpr(sqlite3 *, Expr *, u8, u8, sqlite3_value **);
10393 SQLITE_PRIVATE void sqlite3AlterFunctions(sqlite3*);
10397 SQLITE_PRIVATE void sqlite3ExpirePreparedStatements(sqlite3*);
10406 SQLITE_PRIVATE CollSeq *sqlite3GetCollSeq(sqlite3*, u8, CollSeq *, const char*);
10410 SQLITE_PRIVATE int sqlite3FindDb(sqlite3*, Token*);
10411 SQLITE_PRIVATE int sqlite3FindDbName(sqlite3 *, const char *);
10412 SQLITE_PRIVATE int sqlite3AnalysisLoad(sqlite3*,int iDB);
10415 SQLITE_PRIVATE void sqlite3RegisterLikeFunctions(sqlite3*, int);
10416 SQLITE_PRIVATE int sqlite3IsLikeFunction(sqlite3*,Expr*,int*,char*);
10419 SQLITE_PRIVATE Schema *sqlite3SchemaGet(sqlite3 *, Btree *);
10420 SQLITE_PRIVATE int sqlite3SchemaToIndex(sqlite3 *db, Schema *);
10422 SQLITE_PRIVATE int sqlite3CreateFunc(sqlite3 *, const char *, int, int, void *,
10425 SQLITE_PRIVATE int sqlite3ApiExit(sqlite3 *db, int);
10433 SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *, SrcList *, int, int);
10448 SQLITE_PRIVATE void sqlite3AutoLoadExtensions(sqlite3*);
10450 SQLITE_PRIVATE void sqlite3CloseExtensions(sqlite3*);
10476 SQLITE_PRIVATE int sqlite3VtabSync(sqlite3 *db, char **);
10477 SQLITE_PRIVATE int sqlite3VtabRollback(sqlite3 *db);
10478 SQLITE_PRIVATE int sqlite3VtabCommit(sqlite3 *db);
10481 SQLITE_PRIVATE void sqlite3VtabUnlockList(sqlite3*);
10489 SQLITE_PRIVATE int sqlite3VtabCallCreate(sqlite3*, int, const char *, char **);
10491 SQLITE_PRIVATE int sqlite3VtabCallDestroy(sqlite3*, int, const char *);
10492 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *, VTable *);
10493 SQLITE_PRIVATE FuncDef *sqlite3VtabOverloadFunction(sqlite3 *,FuncDef*, int nArg, Expr*);
10500 SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3*);
10501 SQLITE_PRIVATE VTable *sqlite3GetVTable(sqlite3*, Table*);
10581 SQLITE_PRIVATE void sqlite3ConnectionBlocked(sqlite3 *, sqlite3 *);
10582 SQLITE_PRIVATE void sqlite3ConnectionUnlocked(sqlite3 *db);
10583 SQLITE_PRIVATE void sqlite3ConnectionClosed(sqlite3 *db);
10917 sqlite3 *db, /* The database connection whose status is desired */
11255 sqlite3 *db = sqlite3_context_db_handle(context);
11793 sqlite3 *db;
11977 sqlite3 *db;
16017 static int isLookaside(sqlite3 *db, void *p){
16031 SQLITE_PRIVATE int sqlite3DbMallocSize(sqlite3 *db, void *p){
16059 SQLITE_PRIVATE void sqlite3DbFree(sqlite3 *db, void *p){
16142 SQLITE_PRIVATE void *sqlite3DbMallocZero(sqlite3 *db, int n){
16168 SQLITE_PRIVATE void *sqlite3DbMallocRaw(sqlite3 *db, int n){
16203 SQLITE_PRIVATE void *sqlite3DbRealloc(sqlite3 *db, void *p, int n){
16234 SQLITE_PRIVATE void *sqlite3DbReallocOrFree(sqlite3 *db, void *p, int n){
16250 SQLITE_PRIVATE char *sqlite3DbStrDup(sqlite3 *db, const char *z){
16264 SQLITE_PRIVATE char *sqlite3DbStrNDup(sqlite3 *db, const char *z, int n){
16283 SQLITE_PRIVATE void sqlite3SetString(char **pz, sqlite3 *db, const char *zFormat, ...){
16308 SQLITE_PRIVATE int sqlite3ApiExit(sqlite3* db, int rc){
17159 SQLITE_PRIVATE char *sqlite3VMPrintf(sqlite3 *db, const char *zFormat, va_list ap){
17179 SQLITE_PRIVATE char *sqlite3MPrintf(sqlite3 *db, const char *zFormat, ...){
17196 SQLITE_PRIVATE char *sqlite3MAppendf(sqlite3 *db, char *zStr, const char *zFormat, ...){
17632 i64 lastRowid; /* Last insert rowid (sqlite3.lastRowid) */
17664 sqlite3 *db; /* The associated database connection */
17791 sqlite3 *db; /* The database connection that owns this statement */
17869 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3*, BtCursor *, i64 *);
18335 SQLITE_PRIVATE char *sqlite3Utf16to8(sqlite3 *db, const void *z, int nByte){
18361 SQLITE_PRIVATE char *sqlite3Utf8to16(sqlite3 *db, u8 enc, char *z, int n, int *pnOut){
18569 SQLITE_PRIVATE void sqlite3Error(sqlite3 *db, int err_code, const char *zFormat, ...){
18605 sqlite3 *db = pParse->db;
19435 SQLITE_PRIVATE void *sqlite3HexToBlob(sqlite3 *db, const char *z, int n){
19477 SQLITE_PRIVATE int sqlite3SafetyCheckOk(sqlite3 *db){
19493 SQLITE_PRIVATE int sqlite3SafetyCheckSickOrOk(sqlite3 *db){
21889 ** useful to the clients of the sqlite3 functions. Specifically, it is
22190 ** means that sqlite3* database handles cannot be moved from one thread
31111 sqlite3 *db; /* The database connection */
31133 SQLITE_PRIVATE RowSet *sqlite3RowSetInit(sqlite3 *db, void *pSpace, unsigned int N){
37131 ** All fields in this structure are accessed under sqlite3.mutex.
37135 ** they often do so without holding sqlite3.mutex.
37138 sqlite3 *db; /* The database connection holding this btree */
37200 sqlite3 *db; /* Database connection currently using this Btree */
37604 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3 *db){
37632 SQLITE_PRIVATE void sqlite3BtreeLeaveAll(sqlite3 *db){
37655 SQLITE_PRIVATE int sqlite3BtreeHoldsAllMutexes(sqlite3 *db){
37766 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3 *db){
39458 sqlite3 *db, /* Associated database handle */
40201 sqlite3 *pBlock = 0;
45709 sqlite3* pDestDb; /* Destination database handle */
45715 sqlite3* pSrcDb; /* Source database handle */
45769 static Btree *findBtree(sqlite3 *pErrorDb, sqlite3 *pDb, const char *zDb){
45810 sqlite3* pDestDb, /* Database to write to */
45812 sqlite3* pSrcDb, /* Database connection to read from */
46862 sqlite3 *db = pMem->db;
47280 SQLITE_PRIVATE sqlite3_value *sqlite3ValueNew(sqlite3 *db){
47301 sqlite3 *db, /* The database connection */
47447 SQLITE_PRIVATE Vdbe *sqlite3VdbeCreate(sqlite3 *db){
47982 static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){
47991 static void freeP4(sqlite3 *db, int p4type, void *p4){
48036 static void vdbeFreeOpArray(sqlite3 *db, Op *aOp, int nOp){
48062 SQLITE_PRIVATE void sqlite3VdbeProgramDelete(sqlite3 *db, SubProgram *p, int freeop){
48085 sqlite3 *db = p->db;
48122 sqlite3 *db;
48406 sqlite3 *db = p->db;
48474 sqlite3 *db = p->db; /* The database connection */
48765 sqlite3 *db = p->db;
48959 sqlite3 *db = p->db;
48983 sqlite3 *db = p->db;
49036 static int vdbeCommit(sqlite3 *db, Vdbe *p){
49253 ** This routine checks that the sqlite3.activeVdbeCnt count variable
49254 ** matches the number of vdbe's in the list sqlite3.pVdbe that are
49262 static void checkActiveVdbeCnt(sqlite3 *db){
49297 static void invalidateCursorsOnModifiedBtrees(sqlite3 *db){
49318 sqlite3 *const db = p->db;
49401 sqlite3 *db = p->db;
49427 sqlite3 *db = p->db;
49623 sqlite3 *db;
49731 sqlite3 *db;
50335 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
50449 SQLITE_PRIVATE void sqlite3VdbeSetChanges(sqlite3 *db, int nChange){
50473 SQLITE_PRIVATE void sqlite3ExpirePreparedStatements(sqlite3 *db){
50483 SQLITE_PRIVATE sqlite3 *sqlite3VdbeDb(Vdbe *v){
50596 sqlite3 *db = v->db;
50844 sqlite3 *db;
50949 sqlite3 *db; /* The database connection */
50999 SQLITE_API sqlite3 *sqlite3_context_db_handle(sqlite3_context *p){
51322 sqlite3 *db = p->db;
51745 ** Return the sqlite3* database handle to which the prepared statement given
51750 SQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt *pStmt){
51760 SQLITE_API sqlite3_stmt *sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt){
51847 sqlite3 *db; /* The database connection */
51987 ** field of the sqlite3 structure is set in order to simulate and interrupt.
52484 static int fileExists(sqlite3 *db, const char *zFile){
52503 ** checks that the sqlite3.nTransaction variable is correctly set to
52505 ** linked list starting at sqlite3.pSavepoint.
52511 static int checkSavepointCount(sqlite3 *db){
52558 sqlite3 *db = p->db; /* The database */
53528 /* If the SQLITE_CountRows flag is set in sqlite3.flags mask, then
56242 ** (sqlite3.xUpdateCallback) is invoked following a successful insert.
57727 ** P1 is the index of the database in sqlite3.aDb[] of the database
58318 sqlite3 *db; /* The associated database */
58325 sqlite3* db, /* The database connection */
58579 sqlite3 *db;
58606 sqlite3 *db;
59356 sqlite3 *db; /* The database connection */
59438 sqlite3 *db = pParse->db; /* The database connection */
59707 SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){
59966 sqlite3 *db; /* Database connection */
60038 sqlite3 *db;
60128 sqlite3 *db = pParse->db;
60231 sqlite3 *db; /* Database connection */
60570 sqlite3 *db = pParse->db;
60603 sqlite3 *db = pParse->db;
60878 sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */
60925 sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */
60942 sqlite3 *db,
60993 SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3 *db, Expr *pLeft, Expr *pRight){
61011 sqlite3 *db = pParse->db;
61041 sqlite3 *db = pParse->db;
61110 SQLITE_PRIVATE void sqlite3ExprDelete(sqlite3 *db, Expr *p){
61238 static Expr *exprDup(sqlite3 *db, Expr *p, int flags, u8 **pzBuffer){
61339 SQLITE_PRIVATE Expr *sqlite3ExprDup(sqlite3 *db, Expr *p, int flags){
61342 SQLITE_PRIVATE ExprList *sqlite3ExprListDup(sqlite3 *db, ExprList *p, int flags){
61378 SQLITE_PRIVATE SrcList *sqlite3SrcListDup(sqlite3 *db, SrcList *p, int flags){
61411 SQLITE_PRIVATE IdList *sqlite3IdListDup(sqlite3 *db, IdList *p){
61431 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
61456 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
61476 sqlite3 *db = pParse->db;
61547 sqlite3 *db = pParse->db;
61579 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){
61940 sqlite3 *db = pParse->db; /* Database connection */
62732 sqlite3 *db = pParse->db;
62779 sqlite3 *db = pParse->db; /* The database connection */
63978 static int addAggInfoColumn(sqlite3 *db, AggInfo *pInfo){
63996 static int addAggInfoFunc(sqlite3 *db, AggInfo *pInfo){
64291 sqlite3 *db = sqlite3_context_db_handle(context);
64347 sqlite3 *db = sqlite3_context_db_handle(context);
64411 sqlite3 *db = sqlite3_context_db_handle(context);
64469 SQLITE_PRIVATE void sqlite3AlterFunctions(sqlite3 *db){
64498 static char *whereOrName(sqlite3 *db, char *zWhere, char *zConstant){
64543 sqlite3 *db = pParse->db;
64615 sqlite3 *db = pParse->db; /* Database connection */
64844 sqlite3 *db; /* The database connection; */
64963 sqlite3 *db = pParse->db;
65088 sqlite3 *db = pParse->db;
65144 sqlite3 *db = pParse->db; /* Database handle */
65374 sqlite3 *db = pParse->db;
65424 sqlite3 *db = pParse->db;
65483 sqlite3 *db;
65532 sqlite3 *dbMem = pIdx->pTable->dbMem;
65567 SQLITE_PRIVATE int sqlite3AnalysisLoad(sqlite3 *db, int iDb){
65625 sqlite3 *dbMem = pIdx->pTable->dbMem;
65752 sqlite3 *db = sqlite3_context_db_handle(context);
65839 extern int sqlite3CodecAttach(sqlite3*, int, const void*, int);
65840 extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);
65922 sqlite3 *db = sqlite3_context_db_handle(context);
65980 sqlite3* db = pParse->db;
66092 sqlite3 *db;
66292 sqlite3 *db,
66316 ** callback has been registered (i.e. that sqlite3.xAuth is not NULL).
66328 sqlite3 *db = pParse->db; /* Database handle */
66361 sqlite3 *db = pParse->db;
66419 sqlite3 *db = pParse->db;
66599 sqlite3 *db;
66704 sqlite3 *db = pParse->db;
66738 SQLITE_PRIVATE Table *sqlite3FindTable(sqlite3 *db, const char *zName, const char *zDatabase){
66802 SQLITE_PRIVATE Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){
66821 sqlite3 *db = p->pTable->dbMem;
66853 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteIndex(sqlite3 *db, int iDb, const char *zIdxName){
66889 SQLITE_PRIVATE void sqlite3ResetInternalSchema(sqlite3 *db, int iDb){
66939 SQLITE_PRIVATE void sqlite3CommitInternalChanges(sqlite3 *db){
66949 sqlite3 *db = pTable->dbMem;
66977 sqlite3 *db;
67018 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTable(sqlite3 *db, int iDb, const char *zTabName){
67046 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3 *db, Token *pName){
67077 SQLITE_PRIVATE int sqlite3FindDbName(sqlite3 *db, const char *zName){
67098 SQLITE_PRIVATE int sqlite3FindDb(sqlite3 *db, Token *pName){
67130 sqlite3 *db = pParse->db;
67197 sqlite3 *db = pParse->db;
67408 sqlite3 *db = pParse->db;
67554 sqlite3 *db = pParse->db;
67662 sqlite3 *db = pParse->db;
67682 sqlite3 *db;
67730 sqlite3 *db = pParse->db;
67765 sqlite3 *db = pParse->db;
67829 static char *createTableStmt(sqlite3 *db, Table *p){
67920 sqlite3 *db = pParse->db;
68135 sqlite3 *db = pParse->db;
68204 sqlite3 *db = pParse->db; /* Database connection for malloc errors */
68293 static void sqliteViewResetAll(sqlite3 *db, int idx){
68441 sqlite3 *db = pParse->db;
68622 sqlite3 *db = pParse->db;
68766 sqlite3 *db = pParse->db; /* The database connection */
68861 sqlite3 *db = pParse->db;
69346 sqlite3 *db = pParse->db;
69427 sqlite3 *db, /* Connection to notify of malloc failures */
69461 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
69488 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3 *db, IdList *pList){
69531 sqlite3 *db, /* Database connection to notify of OOM errors */
69613 sqlite3 *db, /* Connection to notify of malloc failures */
69665 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){
69709 sqlite3 *db = pParse->db;
69786 sqlite3 *db;
69812 sqlite3 *db;
69832 sqlite3 *db;
69873 sqlite3 *db = pParse->db;
69929 sqlite3 *db = pToplevel->db;
70058 sqlite3 *db = pParse->db; /* The database connection */
70093 sqlite3 *db = pParse->db; /* The database connection */
70154 sqlite3 *db = pParse->db;
70200 static void callCollNeeded(sqlite3 *db, int enc, const char *zName){
70229 static int synthCollSeq(sqlite3 *db, CollSeq *pColl){
70260 sqlite3* db, /* The database connection */
70299 sqlite3 *db = pParse->db;
70318 ** Each pointer stored in the sqlite3.aCollSeq hash table contains an
70327 sqlite3 *db, /* Database connection */
70380 sqlite3 *db,
70503 sqlite3 *db, /* An open database */
70610 SQLITE_PRIVATE Schema *sqlite3SchemaGet(sqlite3 *db, Btree *pBt){
70717 sqlite3 *db = pParse->db;
70856 sqlite3 *db; /* Main database structure */
71558 sqlite3 *db = sqlite3_context_db_handle(context);
71705 sqlite3 *db = sqlite3_context_db_handle(context);
71719 sqlite3 *db = sqlite3_context_db_handle(context);
71733 sqlite3 *db = sqlite3_context_db_handle(context);
71935 sqlite3 *db = sqlite3_context_db_handle(context);
72136 sqlite3 *db = sqlite3_context_db_handle(context);
72206 sqlite3 *db = sqlite3_context_db_handle(context);
72387 sqlite3 *db = sqlite3_context_db_handle(context);
72537 ** returns (void *)db, where db is the sqlite3* database pointer.
72578 sqlite3 *db = sqlite3_context_db_handle(context);
72617 SQLITE_PRIVATE void sqlite3RegisterBuiltinFunctions(sqlite3 *db){
72633 static void setLikeOptFlag(sqlite3 *db, const char *zName, u8 flagVal){
72647 SQLITE_PRIVATE void sqlite3RegisterLikeFunctions(sqlite3 *db, int caseSensitive){
72670 SQLITE_PRIVATE int sqlite3IsLikeFunction(sqlite3 *db, Expr *pExpr, int *pIsNocase, char *aWc){
73259 sqlite3 *db = pParse->db; /* Database handle */
73385 static void fkTriggerDelete(sqlite3 *dbMem, Trigger *p){
73414 sqlite3 *db = pParse->db;
73480 sqlite3 *db = pParse->db; /* Database handle */
73739 sqlite3 *db = pParse->db; /* Database handle */
74008 int iDb, /* The database index in sqlite3.aDb[] */
74054 sqlite3 *db = sqlite3VdbeDb(v);
74095 sqlite3 *db = sqlite3VdbeDb(v);
74210 sqlite3 *db = pParse->db; /* The database connection */
74265 sqlite3 *db = pParse->db;
74424 sqlite3 *db; /* The main database structure */
75833 sqlite3 *db, /* The database on which the SQL executes */
75985 ** sqlite3.h.
76016 int (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
76017 int (*busy_timeout)(sqlite3*,int ms);
76018 int (*changes)(sqlite3*);
76019 int (*close)(sqlite3*);
76020 int (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,int eTextRep,const char*));
76021 int (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,int eTextRep,const void*));
76043 void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
76046 …int (*create_collation)(sqlite3*,const char*,int,void*,int(*)(void*,int,const void*,int,const voi…
76047 …int (*create_collation16)(sqlite3*,const void*,int,void*,int(*)(void*,int,const void*,int,const v…
76048 …int (*create_function)(sqlite3*,const char*,int,int,void*,void (*xFunc)(sqlite3_context*,int,sqli…
76049 …int (*create_function16)(sqlite3*,const void*,int,int,void*,void (*xFunc)(sqlite3_context*,int,sq…
76050 int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);
76052 sqlite3 * (*db_handle)(sqlite3_stmt*);
76053 int (*declare_vtab)(sqlite3*,const char*);
76055 int (*errcode)(sqlite3*db);
76056 const char * (*errmsg)(sqlite3*);
76057 const void * (*errmsg16)(sqlite3*);
76058 int (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);
76063 int (*get_autocommit)(sqlite3*);
76065 int (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);
76067 void (*interruptx)(sqlite3*);
76068 sqlite_int64 (*last_insert_rowid)(sqlite3*);
76073 int (*open)(const char*,sqlite3**);
76074 int (*open16)(const void*,sqlite3**);
76075 int (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
76076 int (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
76077 void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);
76078 void (*progress_handler)(sqlite3*,int,int(*)(void*),void*);
76093 void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);
76094 …int (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,const char*,const char*),…
76098 …int (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,char const**,char const…
76100 int (*total_changes)(sqlite3*);
76101 void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);
76103 void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,sqlite_int64),void*);
76119 int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
76121 int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
76122 int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
76125 …int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,void (*xDestroy)(void *));
76130 int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,int,sqlite3_blob**);
76133 …int (*create_collation_v2)(sqlite3*,const char*,int,void*,int(*)(void*,int,const void*,int,const v…
76134 int (*file_control)(sqlite3*,const char*,int,void*);
76142 int (*open_v2)(const char*,sqlite3**,int,const char*);
76156 sqlite3 *(*context_db_handle)(sqlite3_context*);
76157 int (*extended_result_codes)(sqlite3*,int);
76158 int (*limit)(sqlite3*,int,int);
76159 sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);
76673 sqlite3 *db, /* Load the extension into this database connection */
76680 int (*xInit)(sqlite3*,char**,const sqlite3_api_routines*);
76718 xInit = (int(*)(sqlite3*,char**,const sqlite3_api_routines*))
76757 sqlite3 *db, /* Load the extension into this database connection */
76774 SQLITE_PRIVATE void sqlite3CloseExtensions(sqlite3 *db){
76787 SQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff){
76905 SQLITE_PRIVATE void sqlite3AutoLoadExtensions(sqlite3 *db){
76908 int (*xInit)(sqlite3*,char**,const sqlite3_api_routines*);
76925 xInit = (int(*)(sqlite3*,char**,const sqlite3_api_routines*))
77048 sqlite3 *db = pParse->db;
77071 sqlite3 *db = pParse->db;
77142 sqlite3 *db = pParse->db;
77223 sqlite3 *db = pParse->db;
77396 ** Also, the sqlite3.dfltLockMode variable is set so that
77454 ** Also, the sqlite3.dfltJournalMode variable is set so that
78398 sqlite3 *db = pData->db;
78425 sqlite3 *db = pData->db;
78502 static int sqlite3InitOne(sqlite3 *db, int iDb, char **pzErrMsg){
78622 ** main database, set sqlite3.enc to the encoding of the main database.
78624 ** as sqlite3.enc.
78752 SQLITE_PRIVATE int sqlite3Init(sqlite3 *db, char **pzErrMsg){
78795 sqlite3 *db = pParse->db;
78814 sqlite3 *db = pParse->db;
78860 SQLITE_PRIVATE int sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema){
78889 sqlite3 *db, /* Database handle. */
79051 sqlite3 *db, /* Database handle. */
79089 sqlite3 *db;
79123 sqlite3 *db, /* Database handle. */
79135 sqlite3 *db, /* Database handle. */
79153 sqlite3 *db, /* Database handle. */
79203 sqlite3 *db, /* Database handle. */
79215 sqlite3 *db, /* Database handle. */
79251 static void clearSelect(sqlite3 *db, Select *p){
79293 sqlite3 *db = pParse->db;
79328 SQLITE_PRIVATE void sqlite3SelectDelete(sqlite3 *db, Select *p){
79475 sqlite3 *db = pParse->db;
79979 sqlite3 *db = pParse->db;
80300 sqlite3 *db = pParse->db;
80391 sqlite3 *db = pParse->db; /* Database connection */
80482 sqlite3 *db = pParse->db;
80515 sqlite3 *db = pParse->db;
80704 sqlite3 *db; /* Database connection */
81299 sqlite3 *db; /* Database connection */
81607 static void substExprList(sqlite3*, ExprList*, int, ExprList*);
81608 static void substSelect(sqlite3*, Select *, int, ExprList *);
81624 sqlite3 *db, /* Report malloc errors to this connection */
81656 sqlite3 *db, /* Report malloc errors here */
81668 sqlite3 *db, /* Report malloc errors here */
81818 sqlite3 *db = pParse->db;
82289 sqlite3 *db = pParse->db;
82613 sqlite3 *db;
82811 sqlite3 *db; /* The database connection */
83633 sqlite3 *db, /* The database on which the SQL executes */
83732 SQLITE_PRIVATE void sqlite3DeleteTriggerStep(sqlite3 *db, TriggerStep *pTriggerStep){
83807 sqlite3 *db = pParse->db; /* The database connection */
83972 sqlite3 *db = pParse->db; /* The database */
84046 SQLITE_PRIVATE TriggerStep *sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect){
84065 sqlite3 *db, /* Database connection */
84090 sqlite3 *db, /* The database connection */
84123 sqlite3 *db, /* The database connection */
84148 sqlite3 *db, /* Database connection */
84166 SQLITE_PRIVATE void sqlite3DeleteTrigger(sqlite3 *db, Trigger *pTrigger){
84190 sqlite3 *db = pParse->db;
84235 sqlite3 *db = pParse->db;
84290 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTrigger(sqlite3 *db, int iDb, const char *zName){
84375 sqlite3 *db = pParse->db;
84394 sqlite3 *db = pParse->db;
84504 sqlite3 *db = pParse->db; /* Database handle */
84908 sqlite3 *db; /* The database structure */
85417 sqlite3 *db = pParse->db; /* Database connection */
85497 static int vacuumFinalize(sqlite3 *db, sqlite3_stmt *pStmt, char **pzErrMsg){
85509 static int execSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
85528 static int execExecSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
85567 SQLITE_PRIVATE int sqlite3RunVacuum(char **pzErrMsg, sqlite3 *db){
85635 extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);
85824 sqlite3 *db, /* Database in which module is registered */
85866 sqlite3 *db, /* Database in which module is registered */
85878 sqlite3 *db, /* Database in which module is registered */
85905 SQLITE_PRIVATE VTable *sqlite3GetVTable(sqlite3 *db, Table *pTab){
85917 sqlite3 *db = pVTab->db;
85935 ** p->pVTable list to the sqlite3.pDisconnect lists of their associated
85940 static VTable *vtabDisconnectAll(sqlite3 *db, Table *p){
85948 ** this makes it safe to access the sqlite3.pDisconnect list of any
85955 sqlite3 *db2 = pVTable->db;
85975 ** Disconnect all the virtual table objects in the sqlite3.pDisconnect list.
85979 ** caller. This is done to protect the sqlite3.pDisconnect list. The
85980 ** sqlite3.pDisconnect list is accessed only as follows:
85986 ** the sqlite3.pDisconnect list. In this case either the BtShared mutex
85991 ** As a result, a sqlite3.pDisconnect cannot be accessed simultaneously
85994 SQLITE_PRIVATE void sqlite3VtabUnlockList(sqlite3 *db){
86018 ** structure is associated with a single sqlite3* user of the schema.
86022 ** in the list are moved to the sqlite3.pDisconnect list of the associated
86042 static void addModuleArgument(sqlite3 *db, Table *pTable, char *zArg){
86075 sqlite3 *db; /* Database connection */
86115 sqlite3 *db = pParse->db;
86126 sqlite3 *db = pParse->db; /* The database connection */
86233 sqlite3 *db,
86236 int (*xConstruct)(sqlite3*,void*,int,const char*const*,sqlite3_vtab**,char**),
86339 sqlite3 *db = pParse->db;
86370 ** Add the virtual table pVTab to the array sqlite3.aVTrans[].
86372 static int addToVTrans(sqlite3 *db, VTable *pVTab){
86375 /* Grow the sqlite3.aVTrans array if required */
86387 /* Add pVtab to the end of sqlite3.aVTrans */
86401 SQLITE_PRIVATE int sqlite3VtabCallCreate(sqlite3 *db, int iDb, const char *zTab, char **pzErr){
86439 SQLITE_API int sqlite3_declare_vtab(sqlite3 *db, const char *zCreateTable){
86502 SQLITE_PRIVATE int sqlite3VtabCallDestroy(sqlite3 *db, int iDb, const char *zTab){
86527 ** of each of the virtual tables in the sqlite3.aVTrans array. The method
86533 static void callFinaliser(sqlite3 *db, int offset){
86553 ** Invoke the xSync method of all virtual tables in the sqlite3.aVTrans
86560 SQLITE_PRIVATE int sqlite3VtabSync(sqlite3 *db, char **pzErrmsg){
86582 ** sqlite3.aVTrans array. Then clear the array itself.
86584 SQLITE_PRIVATE int sqlite3VtabRollback(sqlite3 *db){
86591 ** sqlite3.aVTrans array. Then clear the array itself.
86593 SQLITE_PRIVATE int sqlite3VtabCommit(sqlite3 *db){
86604 ** in the sqlite3.aVTrans array.
86606 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){
86657 sqlite3 *db, /* Database connection for reporting malloc problems */
87013 static void whereOrInfoDelete(sqlite3 *db, WhereOrInfo *p){
87021 static void whereAndInfoDelete(sqlite3 *db, WhereAndInfo *p){
87033 sqlite3 *db = pWC->pParse->db;
87073 sqlite3 *db = pWC->pParse->db;
87380 sqlite3 *db = pParse->db; /* Database connection */
87588 sqlite3 *db = pParse->db; /* Database connection */
87848 sqlite3 *db = pParse->db; /* Database connection */
88121 sqlite3 *db = pParse->db;
88710 sqlite3 *db = pParse->db;
90190 static void whereInfoFree(sqlite3 *db, WhereInfo *pWInfo){
90316 sqlite3 *db; /* Database connection */
90742 sqlite3 *db = pParse->db;
90967 sqlite3 *db = pParse->db;
94936 sqlite3 *db = pParse->db; /* The database connection */
95397 SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db);
95429 SQLITE_PRIVATE int sqlite3RtreeInit(sqlite3 *db);
95461 SQLITE_PRIVATE int sqlite3IcuInit(sqlite3 *db);
95855 static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
95911 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){
95918 SQLITE_API int sqlite3_db_config(sqlite3 *db, int op, ...){
96002 SQLITE_API sqlite_int64 sqlite3_last_insert_rowid(sqlite3 *db){
96009 SQLITE_API int sqlite3_changes(sqlite3 *db){
96016 SQLITE_API int sqlite3_total_changes(sqlite3 *db){
96025 SQLITE_PRIVATE void sqlite3CloseSavepoints(sqlite3 *db){
96039 SQLITE_API int sqlite3_close(sqlite3 *db){
96165 SQLITE_PRIVATE void sqlite3RollbackAll(sqlite3 *db){
96254 sqlite3 *db = (sqlite3 *)ptr;
96273 sqlite3 *db = (sqlite3 *)ptr;
96274 int timeout = ((sqlite3 *)ptr)->busyTimeout;
96307 sqlite3 *db,
96326 sqlite3 *db,
96350 SQLITE_API int sqlite3_busy_timeout(sqlite3 *db, int ms){
96363 SQLITE_API void sqlite3_interrupt(sqlite3 *db){
96375 sqlite3 *db,
96459 sqlite3 *db,
96478 sqlite3 *db,
96514 sqlite3 *db,
96539 SQLITE_API void *sqlite3_trace(sqlite3 *db, void (*xTrace)(void*,const char*), void *pArg){
96557 sqlite3 *db,
96578 sqlite3 *db, /* Attach the hook to this database */
96596 sqlite3 *db, /* Attach the hook to this database */
96614 sqlite3 *db, /* Attach the hook to this database */
96646 SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3 *db){
96675 sqlite3 *db, /* Main database when opening aux otherwise 0 */
96702 rc = sqlite3BtreeOpen(zFilename, (sqlite3 *)db, ppBtree, btFlags, vfsFlags);
96719 SQLITE_API const char *sqlite3_errmsg(sqlite3 *db){
96746 SQLITE_API const void *sqlite3_errmsg16(sqlite3 *db){
96792 SQLITE_API int sqlite3_errcode(sqlite3 *db){
96801 SQLITE_API int sqlite3_extended_errcode(sqlite3 *db){
96816 sqlite3* db,
96894 ** #defines in sqlite3.h.
96955 SQLITE_API int sqlite3_limit(sqlite3 *db, int limitId, int newLimit){
96977 sqlite3 **ppDb, /* OUT: Returned database handle */
96981 sqlite3 *db;
97028 db = sqlite3MallocZero( sizeof(sqlite3) );
97141 extern int sqlite3Fts1Init(sqlite3*);
97148 extern int sqlite3Fts2Init(sqlite3*);
97208 sqlite3 **ppDb
97215 sqlite3 **ppDb, /* OUT: SQLite db handle */
97228 sqlite3 **ppDb
97264 sqlite3* db,
97283 sqlite3* db,
97304 sqlite3* db,
97330 sqlite3 *db,
97332 void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*)
97348 sqlite3 *db,
97350 void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*)
97381 SQLITE_API int sqlite3_get_autocommit(sqlite3 *db){
97428 ** See comment in sqlite3.h (sqlite.h.in) for details.
97432 sqlite3 *db, /* Connection handle */
97558 SQLITE_API int sqlite3_extended_result_codes(sqlite3 *db, int onoff){
97568 SQLITE_API int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg){
97739 /* sqlite3_test_control(SQLITE_TESTCTRL_RESERVE, sqlite3 *db, int N)
97745 sqlite3 *db = va_arg(ap, sqlite3*);
97753 /* sqlite3_test_control(SQLITE_TESTCTRL_OPTIMIZATIONS, sqlite3 *db, int N)
97763 sqlite3 *db = va_arg(ap, sqlite3*);
97827 ** Head of a linked list of all sqlite3 objects created by this process
97828 ** for which either sqlite3.pBlockingConnection or sqlite3.pUnlockConnection
97832 static sqlite3 *SQLITE_WSD sqlite3BlockedList = 0;
97849 static void checkListProperties(sqlite3 *db){
97850 sqlite3 *p;
97853 sqlite3 *p2;
97875 static void removeFromBlockedList(sqlite3 *db){
97876 sqlite3 **pp;
97890 static void addToBlockedList(sqlite3 *db){
97891 sqlite3 **pp;
97941 sqlite3 *db,
97962 sqlite3 *p;
97989 SQLITE_PRIVATE void sqlite3ConnectionBlocked(sqlite3 *db, sqlite3 *pBlocker){
98006 ** 1) If the sqlite3.pBlockingConnection member of a list entry is
98009 ** 2) If the sqlite3.pUnlockConnection member of a list entry is
98017 SQLITE_PRIVATE void sqlite3ConnectionUnlocked(sqlite3 *db){
98020 sqlite3 **pp; /* Iterator variable */
98030 sqlite3 *p = *pp;
98116 SQLITE_PRIVATE void sqlite3ConnectionClosed(sqlite3 *db){
98775 sqlite3 *db; /* The database connection */
98918 SQLITE_PRIVATE int sqlite3Fts3InitVtab(int, sqlite3*, void*, int, const char*const*,
98963 SQLITE_PRIVATE int sqlite3Fts3InitHashTable(sqlite3 *, Fts3Hash *, const char *);
98984 SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3 *db);
99260 sqlite3 *db, /* The SQLite database connection */
99389 sqlite3 *db, /* Database connection */
99399 sqlite3 *db, /* Database connection */
101087 SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db){
101155 sqlite3 *db,
101918 sqlite3 *db,
102014 sqlite3 *db = sqlite3_context_db_handle(context);
102079 SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3* db){
103447 sqlite3 *db,
103469 sqlite3 *db,
103521 sqlite3 *db = (sqlite3 *)sqlite3_user_data(context);
103566 sqlite3 *db,
107595 sqlite3 *db; /* Host database connection */
108107 sqlite3 *, void *, int, const char *const*, sqlite3_vtab **, char **, int
108114 sqlite3 *db,
108127 sqlite3 *db,
110052 sqlite3 *db,
110128 static int getPageSize(sqlite3 *db, const char *zDb, int *piPageSize){
110160 sqlite3 *db, /* Database connection */
110329 SQLITE_PRIVATE int sqlite3RtreeInit(sqlite3 *db){
110354 sqlite3 *db,
110778 sqlite3 *db = (sqlite3 *)sqlite3_user_data(p);
110812 SQLITE_PRIVATE int sqlite3IcuInit(sqlite3 *db){
110853 sqlite3 *db,