Lines Matching refs:sqlite3

439 typedef struct sqlite3 sqlite3;  typedef
520 SQLITE_API int SQLITE_STDCALL sqlite3_close(sqlite3*);
521 SQLITE_API int SQLITE_STDCALL sqlite3_close_v2(sqlite3*);
593 sqlite3*, /* An open database */
1605 SQLITE_API int SQLITE_CDECL sqlite3_db_config(sqlite3*, int op, ...);
2094 SQLITE_API int SQLITE_STDCALL sqlite3_extended_result_codes(sqlite3*, int onoff);
2146 SQLITE_API sqlite3_int64 SQLITE_STDCALL sqlite3_last_insert_rowid(sqlite3*);
2199 SQLITE_API int SQLITE_STDCALL sqlite3_changes(sqlite3*);
2223 SQLITE_API int SQLITE_STDCALL sqlite3_total_changes(sqlite3*);
2263 SQLITE_API void SQLITE_STDCALL sqlite3_interrupt(sqlite3*);
2360 SQLITE_API int SQLITE_STDCALL sqlite3_busy_handler(sqlite3*, int(*)(void*,int), void*);
2383 SQLITE_API int SQLITE_STDCALL sqlite3_busy_timeout(sqlite3*, int ms);
2459 sqlite3 *db, /* An open database */
2803 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*,
2943 SQLITE_API void SQLITE_STDCALL sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
3174 sqlite3 **ppDb /* OUT: SQLite db handle */
3178 sqlite3 **ppDb /* OUT: SQLite db handle */
3182 sqlite3 **ppDb, /* OUT: SQLite db handle */
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*);
3344 SQLITE_API int SQLITE_STDCALL sqlite3_limit(sqlite3*, int id, int newVal);
3497 sqlite3 *db, /* Database handle */
3504 sqlite3 *db, /* Database handle */
3511 sqlite3 *db, /* Database handle */
3518 sqlite3 *db, /* Database handle */
4426 sqlite3 *db,
4436 sqlite3 *db,
4446 sqlite3 *db,
4629 SQLITE_API sqlite3 *SQLITE_STDCALL sqlite3_context_db_handle(sqlite3_context*);
4921 sqlite3*,
4928 sqlite3*,
4936 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 *db, /* Database to be rekeyed */
5012 sqlite3 *db, /* Database to be rekeyed */
5172 SQLITE_API int SQLITE_STDCALL sqlite3_get_autocommit(sqlite3*);
5185 SQLITE_API sqlite3 *SQLITE_STDCALL sqlite3_db_handle(sqlite3_stmt*);
5202 SQLITE_API const char *SQLITE_STDCALL sqlite3_db_filename(sqlite3 *db, const char *zDbName);
5212 SQLITE_API int SQLITE_STDCALL sqlite3_db_readonly(sqlite3 *db, const char *zDbName);
5228 SQLITE_API sqlite3_stmt *SQLITE_STDCALL sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt);
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*);
5330 sqlite3*,
5399 SQLITE_API int SQLITE_STDCALL sqlite3_db_release_memory(sqlite3*);
5533 sqlite3 *db, /* Connection handle */
5580 sqlite3 *db, /* Load the extension into this database connection */
5600 SQLITE_API int SQLITE_STDCALL sqlite3_enable_load_extension(sqlite3 *db, int onoff);
5695 int (*xCreate)(sqlite3*, void *pAux,
5698 int (*xConnect)(sqlite3*, void *pAux,
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);
5950 SQLITE_API int SQLITE_STDCALL sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg);
6050 sqlite3*,
6490 SQLITE_API sqlite3_mutex *SQLITE_STDCALL sqlite3_db_mutex(sqlite3*);
6525 SQLITE_API int SQLITE_STDCALL sqlite3_file_control(sqlite3*, const char *zDbName, int op, void*);
6732 SQLITE_API int SQLITE_STDCALL sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int reset…
7332 sqlite3 *pDest, /* Destination database handle */
7334 sqlite3 *pSource, /* Source database handle */
7458 sqlite3 *pBlocked, /* Waiting connection */
7548 sqlite3*,
7549 int(*)(void *,sqlite3*,const char*,int),
7582 SQLITE_API int SQLITE_STDCALL sqlite3_wal_autocheckpoint(sqlite3 *db, int N);
7604 SQLITE_API int SQLITE_STDCALL sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);
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,
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*);
10996 SQLITE_PRIVATE int sqlite3UserAuthCheckLogin(sqlite3*,const char*,u8*);
10997 SQLITE_PRIVATE void sqlite3UserAuthInit(sqlite3*);
11017 struct sqlite3 { struct
11071 int (*xWalCallback)(void *, sqlite3 *, const char *, int); argument
11074 void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*); argument
11075 void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*); argument
11121 sqlite3 *pBlockingConnection; /* Connection that caused SQLITE_LOCKED */ argument
11122 sqlite3 *pUnlockConnection; /* Connection to watch for unlock */ argument
11125 sqlite3 *pNextBlocked; /* Next in list of all blocked connections */ argument
11492 sqlite3 *db; /* Database connection associated with this table */
11672 sqlite3 *db; /* The database connection */
12500 sqlite3 *db; /* The main database structure */
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);
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 */ in sqlite3_db_status()
16221 sqlite3 *db; in strftimeFunc()
16407 sqlite3 *db; in currentTimeFunc()
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){
41089 sqlite3 *db; /* The database connection */
41117 SQLITE_PRIVATE RowSet *sqlite3RowSetInit(sqlite3 *db, void *pSpace, unsigned int N){
52429 sqlite3 *db; /* The database connection holding this btree */
52492 sqlite3 *db; /* Database connection currently using this Btree */
52949 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3 *db){
52958 SQLITE_PRIVATE void sqlite3BtreeLeaveAll(sqlite3 *db){
52983 SQLITE_PRIVATE int sqlite3BtreeHoldsAllMutexes(sqlite3 *db){
53012 SQLITE_PRIVATE int sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema){
53039 SQLITE_PRIVATE void sqlite3BtreeEnterAll(sqlite3 *db){
54952 sqlite3 *db, /* Associated database handle */
55931 sqlite3 *pBlock = 0;
56550 sqlite3 *db = p->db;
62320 sqlite3* pDestDb; /* Destination database handle */
62326 sqlite3* pSrcDb; /* Source database handle */
62380 static Btree *findBtree(sqlite3 *pErrorDb, sqlite3 *pDb, const char *zDb){
62429 static int checkReadTransaction(sqlite3 *db, Btree *p){
62446 sqlite3* pDestDb, /* Database to write to */
62448 sqlite3* pSrcDb, /* Database connection to read from */
62900 sqlite3 *pSrcDb; /* Source database connection */
63716 SQLITE_PRIVATE void sqlite3VdbeMemInit(Mem *pMem, sqlite3 *db, u16 flags){
63804 sqlite3 *db = pMem->db;
64152 SQLITE_PRIVATE sqlite3_value *sqlite3ValueNew(sqlite3 *db){
64183 static sqlite3_value *valueNew(sqlite3 *db, struct ValueNewStat4Ctx *p){
64246 sqlite3 *db, /* The database connection */
64342 sqlite3 *db, /* The database connection */
64477 sqlite3 *db, /* The database connection */
64505 sqlite3 *db;
64569 sqlite3 *db = pParse->db;
64686 sqlite3 *db, /* Database handle */
64735 sqlite3 *db = aMem[0].db;
64804 sqlite3 *db = pParse->db;
65473 static void freeEphemeralFunction(sqlite3 *db, FuncDef *pDef){
65479 static void vdbeFreeOpArray(sqlite3 *, Op *, int);
65484 static void freeP4(sqlite3 *db, int p4type, void *p4){
65530 static void vdbeFreeOpArray(sqlite3 *db, Op *aOp, int nOp){
65559 sqlite3 *db = p->db;
65599 sqlite3 *db;
65973 sqlite3 *db;
65994 sqlite3 *db;
66042 sqlite3 *db = p->db;
66121 sqlite3 *db = p->db; /* The database connection */
66440 sqlite3 *db; /* The database connection */
66651 sqlite3 *db = p->db;
66677 sqlite3 *db = p->db;
66730 static int vdbeCommit(sqlite3 *db, Vdbe *p){
66977 static void checkActiveVdbeCnt(sqlite3 *db){
67010 sqlite3 *const db = p->db;
67076 sqlite3 *db = p->db;
67104 sqlite3 *db = p->db;
67317 sqlite3 *db = p->db;
67366 sqlite3 *db;
67498 SQLITE_PRIVATE void sqlite3VdbeClearObject(sqlite3 *db, Vdbe *p){
67526 sqlite3 *db;
68773 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
68852 sqlite3 *db, /* Database connection */
68885 SQLITE_PRIVATE void sqlite3VdbeSetChanges(sqlite3 *db, int nChange){
68909 SQLITE_PRIVATE void sqlite3ExpirePreparedStatements(sqlite3 *db){
68919 SQLITE_PRIVATE sqlite3 *sqlite3VdbeDb(Vdbe *v){
68968 sqlite3 *db = p->db;
69048 sqlite3 *db = v->db;
69378 static int doWalCallbacks(sqlite3 *db){
69408 sqlite3 *db;
69544 sqlite3 *db; /* The database connection */
69605 SQLITE_API sqlite3 *SQLITE_STDCALL sqlite3_context_db_handle(sqlite3_context *p){
69979 sqlite3 *db;
70425 SQLITE_API sqlite3 *SQLITE_STDCALL sqlite3_db_handle(sqlite3_stmt *pStmt){
70451 SQLITE_API sqlite3_stmt *SQLITE_STDCALL sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt){
70630 sqlite3 *db; /* The database connection */
71341 static int checkSavepointCount(sqlite3 *db){
71379 sqlite3 *db = p->db; /* The database */
77454 sqlite3 *db; /* The associated database */
77530 sqlite3* db, /* The database connection */
77769 sqlite3 *db;
77796 sqlite3 *db;
77870 sqlite3 *db;
78222 sqlite3 *db; /* Database connection */
78826 sqlite3 *db, /* Database connection (for malloc()) */
78920 static void vdbeSorterRecordFree(sqlite3 *db, SorterRecord *pRecord){
78933 static void vdbeSortSubtaskCleanup(sqlite3 *db, SortSubtask *pTask){
79116 SQLITE_PRIVATE void sqlite3VdbeSorterReset(sqlite3 *db, VdbeSorter *pSorter){
79149 SQLITE_PRIVATE void sqlite3VdbeSorterClose(sqlite3 *db, VdbeCursor *pCsr){
79169 static void vdbeSorterExtendFile(sqlite3 *db, sqlite3_file *pFd, i64 nByte){
79189 sqlite3 *db, /* Database handle doing sort */
79434 sqlite3 *db = pTask->pSorter->db;
80064 sqlite3 *db = pTask->pSorter->db;
80375 sqlite3 *db = pTask0->pSorter->db;
80498 SQLITE_PRIVATE int sqlite3VdbeSorterNext(sqlite3 *db, const VdbeCursor *pCsr, int *pbEof){
81393 sqlite3 *db; /* The database connection */
81519 sqlite3 *db = pParse->db; /* The database connection */
81826 SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){
82163 sqlite3 *db; /* Database connection */
82235 sqlite3 *db;
82333 sqlite3 *db = pParse->db;
82445 sqlite3 *db; /* Database connection */
82925 sqlite3 *db = pParse->db;
83251 sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */
83300 sqlite3 *db, /* Handle for sqlite3DbMallocZero() (may be null) */
83317 sqlite3 *db,
83402 SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3 *db, Expr *pLeft, Expr *pRight){
83424 sqlite3 *db = pParse->db;
83454 sqlite3 *db = pParse->db;
83524 SQLITE_PRIVATE void sqlite3ExprDelete(sqlite3 *db, Expr *p){
83657 static Expr *exprDup(sqlite3 *db, Expr *p, int flags, u8 **pzBuffer){
83746 static With *withDup(sqlite3 *db, With *p){
83784 SQLITE_PRIVATE Expr *sqlite3ExprDup(sqlite3 *db, Expr *p, int flags){
83787 SQLITE_PRIVATE ExprList *sqlite3ExprListDup(sqlite3 *db, ExprList *p, int flags){
83823 SQLITE_PRIVATE SrcList *sqlite3SrcListDup(sqlite3 *db, SrcList *p, int flags){
83861 SQLITE_PRIVATE IdList *sqlite3IdListDup(sqlite3 *db, IdList *p){
83884 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
83912 SQLITE_PRIVATE Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
83932 sqlite3 *db = pParse->db;
84002 sqlite3 *db = pParse->db;
84034 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){
84499 sqlite3 *db = pParse->db; /* Database connection */
85385 sqlite3 *db = pParse->db; /* The database connection */
86963 static int addAggInfoColumn(sqlite3 *db, AggInfo *pInfo){
86979 static int addAggInfoFunc(sqlite3 *db, AggInfo *pInfo){
87278 sqlite3 *db = sqlite3_context_db_handle(context);
87334 sqlite3 *db = sqlite3_context_db_handle(context);
87400 sqlite3 *db = sqlite3_context_db_handle(context);
87493 static char *whereOrName(sqlite3 *db, char *zWhere, char *zConstant){
87538 sqlite3 *db = pParse->db;
87631 sqlite3 *db = pParse->db; /* Database connection */
87862 sqlite3 *db; /* The database connection; */
87987 sqlite3 *db = pParse->db;
88257 sqlite3 *db = pParse->db;
88356 sqlite3 *db; /* Database connection, for malloc() */
88362 static void sampleClear(sqlite3 *db, Stat4Sample *p){
88374 static void sampleSetRowid(sqlite3 *db, Stat4Sample *p, int n, const u8 *pData){
88390 static void sampleSetRowidInt64(sqlite3 *db, Stat4Sample *p, i64 iRowid){
88465 sqlite3 *db; /* Database connection */
89024 sqlite3 *db = pParse->db; /* Database handle */
89354 sqlite3 *db = pParse->db;
89412 sqlite3 *db = pParse->db;
89477 sqlite3 *db;
89615 SQLITE_PRIVATE void sqlite3DeleteIndexSamples(sqlite3 *db, Index *pIdx){
89700 sqlite3 *db,
89726 sqlite3 *db, /* Database handle */
89849 static int loadStat4(sqlite3 *db, const char *zDb){
89893 SQLITE_PRIVATE int sqlite3AnalysisLoad(sqlite3 *db, int iDb){
90021 sqlite3 *db = sqlite3_context_db_handle(context);
90127 extern int sqlite3CodecAttach(sqlite3*, int, const void*, int);
90128 extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);
90221 sqlite3 *db = sqlite3_context_db_handle(context);
90279 sqlite3* db = pParse->db;
90389 sqlite3 *db;
90612 sqlite3 *db,
90651 sqlite3 *db = pParse->db; /* Database handle */
90688 sqlite3 *db = pParse->db;
90746 sqlite3 *db = pParse->db;
90943 sqlite3 *db;
91068 sqlite3 *db = pParse->db;
91112 SQLITE_PRIVATE Table *sqlite3FindTable(sqlite3 *db, const char *zName, const char *zDatabase){
91215 SQLITE_PRIVATE Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){
91235 static void freeIndex(sqlite3 *db, Index *p){
91254 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteIndex(sqlite3 *db, int iDb, const char *zIdxName){
91287 SQLITE_PRIVATE void sqlite3CollapseDatabaseArray(sqlite3 *db){
91314 SQLITE_PRIVATE void sqlite3ResetOneSchema(sqlite3 *db, int iDb){
91340 SQLITE_PRIVATE void sqlite3ResetAllSchemasOfConnection(sqlite3 *db){
91358 SQLITE_PRIVATE void sqlite3CommitInternalChanges(sqlite3 *db){
91366 static void sqliteDeleteColumnNames(sqlite3 *db, Table *pTable){
91397 SQLITE_PRIVATE void sqlite3DeleteTable(sqlite3 *db, Table *pTable){
91453 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTable(sqlite3 *db, int iDb, const char *zTabName){
91481 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3 *db, Token *pName){
91511 SQLITE_PRIVATE int sqlite3FindDbName(sqlite3 *db, const char *zName){
91532 SQLITE_PRIVATE int sqlite3FindDb(sqlite3 *db, Token *pName){
91564 sqlite3 *db = pParse->db;
91650 sqlite3 *db = pParse->db;
91867 sqlite3 *db = pParse->db;
92041 sqlite3 *db = pParse->db;
92157 sqlite3 *db = pParse->db;
92180 sqlite3 *db;
92229 sqlite3 *db = pParse->db;
92261 sqlite3 *db = pParse->db;
92326 static char *createTableStmt(sqlite3 *db, Table *p){
92394 static int resizeIndexObject(sqlite3 *db, Index *pIdx, int N){
92479 sqlite3 *db = pParse->db;
92619 sqlite3 *db = pParse->db; /* The database connection */
92844 sqlite3 *db = pParse->db;
92910 sqlite3 *db = pParse->db; /* Database connection for malloc errors */
93000 static void sqliteViewResetAll(sqlite3 *db, int idx){
93036 SQLITE_PRIVATE void sqlite3RootPageMoved(sqlite3 *db, int iDb, int iFrom, int iTo){
93177 sqlite3 *db = pParse->db;
93249 sqlite3 *db = pParse->db;
93368 sqlite3 *db = pParse->db;
93515 sqlite3 *db = pParse->db; /* The database connection */
93591 sqlite3 *db, /* Database connection */
93654 sqlite3 *db = pParse->db;
94164 sqlite3 *db = pParse->db;
94243 sqlite3 *db, /* Connection to notify of malloc failures */
94273 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
94297 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3 *db, IdList *pList){
94340 sqlite3 *db, /* Database connection to notify of OOM errors */
94422 sqlite3 *db, /* Connection to notify of malloc failures */
94474 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){
94518 sqlite3 *db = pParse->db;
94595 sqlite3 *db;
94676 sqlite3 *db = pParse->db;
94712 sqlite3 *db = pToplevel->db;
94732 sqlite3 *db = pParse->db;
94914 sqlite3 *db = pParse->db; /* The database connection */
94950 sqlite3 *db = pParse->db; /* The database connection */
95047 sqlite3 *db = pParse->db;
95091 SQLITE_PRIVATE void sqlite3WithDelete(sqlite3 *db, With *pWith){
95128 static void callCollNeeded(sqlite3 *db, int enc, const char *zName){
95157 static int synthCollSeq(sqlite3 *db, CollSeq *pColl){
95194 sqlite3 *db = pParse->db;
95231 sqlite3 *db = pParse->db;
95257 sqlite3 *db, /* Database connection */
95310 sqlite3 *db,
95451 sqlite3 *db, /* An open database */
95565 SQLITE_PRIVATE Schema *sqlite3SchemaGet(sqlite3 *db, Btree *pBt){
95682 sqlite3 *db = pParse->db;
95816 sqlite3 *db; /* Main database structure */
96659 sqlite3 *db = sqlite3_context_db_handle(context);
96823 sqlite3 *db = sqlite3_context_db_handle(context);
96949 sqlite3 *db = sqlite3_context_db_handle(context);
96969 sqlite3 *db = sqlite3_context_db_handle(context);
96983 sqlite3 *db = sqlite3_context_db_handle(context);
97223 sqlite3 *db = sqlite3_context_db_handle(context);
97552 sqlite3 *db = sqlite3_context_db_handle(context);
97622 sqlite3 *db = sqlite3_context_db_handle(context);
97803 sqlite3 *db = sqlite3_context_db_handle(context);
97993 sqlite3 *db = sqlite3_context_db_handle(context);
98031 SQLITE_PRIVATE void sqlite3RegisterBuiltinFunctions(sqlite3 *db){
98042 static void setLikeOptFlag(sqlite3 *db, const char *zName, u8 flagVal){
98056 SQLITE_PRIVATE void sqlite3RegisterLikeFunctions(sqlite3 *db, int caseSensitive){
98084 SQLITE_PRIVATE int sqlite3IsLikeFunction(sqlite3 *db, Expr *pExpr, int *pIsNocase, char *aWc){
98694 sqlite3 *db = pParse->db;
98718 sqlite3 *db, /* The database connection */
98774 sqlite3 *db = pParse->db; /* Database handle */
98900 static void fkTriggerDelete(sqlite3 *dbMem, Trigger *p){
98929 sqlite3 *db = pParse->db;
99086 sqlite3 *db = pParse->db; /* Database handle */
99380 sqlite3 *db = pParse->db; /* Database handle */
99592 SQLITE_PRIVATE void sqlite3FkDelete(sqlite3 *db, Table *pTab){
99714 sqlite3 *db = sqlite3VdbeDb(v);
99754 sqlite3 *db = sqlite3VdbeDb(v);
99874 sqlite3 *db = pParse->db; /* The database connection */
99931 sqlite3 *db = pParse->db;
100076 sqlite3 *db; /* The main database structure */
100775 sqlite3 *db; /* Database connection */
101402 sqlite3 *db = pParse->db;
101720 sqlite3 *db, /* The database on which the SQL executes */
101903 int (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
101904 int (*busy_timeout)(sqlite3*,int ms);
101905 int (*changes)(sqlite3*);
101906 int (*close)(sqlite3*);
101907 int (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,
101909 int (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,
101932 void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
101935 int (*create_collation)(sqlite3*,const char*,int,void*,
101937 int (*create_collation16)(sqlite3*,const void*,int,void*,
101939 int (*create_function)(sqlite3*,const char*,int,int,void*,
101943 int (*create_function16)(sqlite3*,const void*,int,int,void*,
101947 int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);
101949 sqlite3 * (*db_handle)(sqlite3_stmt*);
101950 int (*declare_vtab)(sqlite3*,const char*);
101952 int (*errcode)(sqlite3*db);
101953 const char * (*errmsg)(sqlite3*);
101954 const void * (*errmsg16)(sqlite3*);
101955 int (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);
101960 int (*get_autocommit)(sqlite3*);
101962 int (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);
101964 void (*interruptx)(sqlite3*);
101965 sqlite_int64 (*last_insert_rowid)(sqlite3*);
101970 int (*open)(const char*,sqlite3**);
101971 int (*open16)(const void*,sqlite3**);
101972 int (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
101973 int (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
101974 void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);
101975 void (*progress_handler)(sqlite3*,int,int(*)(void*),void*);
101990 void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);
101991 int (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,
101996 int (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,
101999 int (*total_changes)(sqlite3*);
102000 void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);
102002 void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,
102019 int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
102021 int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
102022 int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
102025 int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,
102031 int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,
102035 int (*create_collation_v2)(sqlite3*,const char*,int,void*,
102038 int (*file_control)(sqlite3*,const char*,int,void*);
102046 int (*open_v2)(const char*,sqlite3**,int,const char*);
102060 sqlite3 *(*context_db_handle)(sqlite3_context*);
102061 int (*extended_result_codes)(sqlite3*,int);
102062 int (*limit)(sqlite3*,int,int);
102063 sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);
102067 sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*);
102073 int (*create_function_v2)(sqlite3*,const char*,int,int,void*,
102078 int (*db_config)(sqlite3*,int,...);
102079 sqlite3_mutex *(*db_mutex)(sqlite3*);
102080 int (*db_status)(sqlite3*,int,int*,int*,int);
102081 int (*extended_errcode)(sqlite3*);
102087 int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*);
102088 int (*wal_autocheckpoint)(sqlite3*,int);
102089 int (*wal_checkpoint)(sqlite3*,const char*);
102090 void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*);
102092 int (*vtab_config)(sqlite3*,int op,...);
102093 int (*vtab_on_conflict)(sqlite3*);
102095 int (*close_v2)(sqlite3*);
102096 const char *(*db_filename)(sqlite3*,const char*);
102097 int (*db_readonly)(sqlite3*,const char*);
102098 int (*db_release_memory)(sqlite3*);
102107 int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*);
102115 int (*load_extension)(sqlite3*,const char*,const char*,char**);
102776 sqlite3 *db, /* Load the extension into this database connection */
102783 int (*xInit)(sqlite3*,char**,const sqlite3_api_routines*);
102840 xInit = (int(*)(sqlite3*,char**,const sqlite3_api_routines*))
102873 xInit = (int(*)(sqlite3*,char**,const sqlite3_api_routines*))
102915 sqlite3 *db, /* Load the extension into this database connection */
102932 SQLITE_PRIVATE void sqlite3CloseExtensions(sqlite3 *db){
102945 SQLITE_API int SQLITE_STDCALL sqlite3_enable_load_extension(sqlite3 *db, int onoff){
103092 SQLITE_PRIVATE void sqlite3AutoLoadExtensions(sqlite3 *db){
103096 int (*xInit)(sqlite3*,char**,const sqlite3_api_routines*);
103113 xInit = (int(*)(sqlite3*,char**,const sqlite3_api_routines*))
103719 sqlite3 *db = pParse->db;
103742 sqlite3 *db = pParse->db;
103774 static void setAllPagerFlags(sqlite3 *db){
103871 sqlite3 *db = pParse->db; /* The database connection */
105599 sqlite3 *db = pData->db;
105626 sqlite3 *db = pData->db;
105706 static int sqlite3InitOne(sqlite3 *db, int iDb, char **pzErrMsg){
105964 SQLITE_PRIVATE int sqlite3Init(sqlite3 *db, char **pzErrMsg){
106010 sqlite3 *db = pParse->db;
106029 sqlite3 *db = pParse->db;
106077 SQLITE_PRIVATE int sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema){
106107 sqlite3 *db = pParse->db;
106117 sqlite3 *db, /* Database handle. */
106277 sqlite3 *db, /* Database handle. */
106319 sqlite3 *db;
106353 sqlite3 *db, /* Database handle. */
106365 sqlite3 *db, /* Database handle. */
106383 sqlite3 *db, /* Database handle. */
106441 sqlite3 *db, /* Database handle. */
106453 sqlite3 *db, /* Database handle. */
106531 static void clearSelect(sqlite3 *db, Select *p, int bFree){
106579 sqlite3 *db = pParse->db;
106628 SQLITE_PRIVATE void sqlite3SelectDelete(sqlite3 *db, Select *p){
106780 sqlite3 *db = pParse->db;
107447 SQLITE_PRIVATE KeyInfo *sqlite3KeyInfoAlloc(sqlite3 *db, int N, int X){
107518 sqlite3 *db = pParse->db;
107974 sqlite3 *db = pParse->db;
108050 sqlite3 *db = pParse->db; /* Database connection */
108152 sqlite3 *db = pParse->db;
108190 sqlite3 *db = pParse->db;
108349 sqlite3 *db = pParse->db;
108647 sqlite3 *db; /* Database connection */
109270 sqlite3 *db; /* Database connection */
109549 static void substExprList(sqlite3*, ExprList*, int, ExprList*);
109550 static void substSelect(sqlite3*, Select *, int, ExprList *);
109566 sqlite3 *db, /* Report malloc errors to this connection */
109595 sqlite3 *db, /* Report malloc errors here */
109607 sqlite3 *db, /* Report malloc errors here */
109790 sqlite3 *db = pParse->db;
110320 sqlite3 *db;
110437 sqlite3 *db = pParse->db;
110588 sqlite3 *db = pParse->db;
110978 sqlite3 *db;
111191 sqlite3 *db; /* The database connection */
112194 sqlite3 *db, /* The database on which the SQL executes */
112296 SQLITE_PRIVATE void sqlite3DeleteTriggerStep(sqlite3 *db, TriggerStep *pTriggerStep){
112372 sqlite3 *db = pParse->db; /* The database connection */
112553 sqlite3 *db = pParse->db; /* The database */
112627 SQLITE_PRIVATE TriggerStep *sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect){
112646 sqlite3 *db, /* Database connection */
112671 sqlite3 *db, /* The database connection */
112700 sqlite3 *db, /* The database connection */
112725 sqlite3 *db, /* Database connection */
112743 SQLITE_PRIVATE void sqlite3DeleteTrigger(sqlite3 *db, Trigger *pTrigger){
112766 sqlite3 *db = pParse->db;
112814 sqlite3 *db = pParse->db;
112870 SQLITE_PRIVATE void sqlite3UnlinkAndDeleteTrigger(sqlite3 *db, int iDb, const char *zName){
112953 sqlite3 *db = pParse->db;
112981 sqlite3 *db = pParse->db;
113092 sqlite3 *db = pParse->db; /* Database handle */
113505 sqlite3 *db; /* The database structure */
114116 sqlite3 *db = pParse->db; /* Database connection */
114198 static int vacuumFinalize(sqlite3 *db, sqlite3_stmt *pStmt, char **pzErrMsg){
114210 static int execSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
114229 static int execExecSql(sqlite3 *db, char **pzErrMsg, const char *zSql){
114289 SQLITE_PRIVATE int sqlite3RunVacuum(char **pzErrMsg, sqlite3 *db){
114365 extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);
114585 sqlite3 *db, /* Database in which module is registered */
114629 sqlite3 *db, /* Database in which module is registered */
114644 sqlite3 *db, /* Database in which module is registered */
114674 SQLITE_PRIVATE VTable *sqlite3GetVTable(sqlite3 *db, Table *pTab){
114686 sqlite3 *db = pVTab->db;
114709 static VTable *vtabDisconnectAll(sqlite3 *db, Table *p){
114723 sqlite3 *db2 = pVTable->db;
114749 SQLITE_PRIVATE void sqlite3VtabDisconnect(sqlite3 *db, Table *p){
114787 SQLITE_PRIVATE void sqlite3VtabUnlockList(sqlite3 *db){
114818 SQLITE_PRIVATE void sqlite3VtabClear(sqlite3 *db, Table *p){
114835 static void addModuleArgument(sqlite3 *db, Table *pTable, char *zArg){
114869 sqlite3 *db; /* Database connection */
114914 sqlite3 *db = pParse->db;
114925 sqlite3 *db = pParse->db; /* The database connection */
115034 sqlite3 *db,
115037 int (*xConstruct)(sqlite3*,void*,int,const char*const*,sqlite3_vtab**,char**),
115169 sqlite3 *db = pParse->db;
115202 static int growVTrans(sqlite3 *db){
115224 static void addToVTrans(sqlite3 *db, VTable *pVTab){
115238 SQLITE_PRIVATE int sqlite3VtabCallCreate(sqlite3 *db, int iDb, const char *zTab, char **pzErr){
115279 SQLITE_API int SQLITE_STDCALL sqlite3_declare_vtab(sqlite3 *db, const char *zCreateTable){
115350 SQLITE_PRIVATE int sqlite3VtabCallDestroy(sqlite3 *db, int iDb, const char *zTab){
115385 static void callFinaliser(sqlite3 *db, int offset){
115412 SQLITE_PRIVATE int sqlite3VtabSync(sqlite3 *db, Vdbe *p){
115434 SQLITE_PRIVATE int sqlite3VtabRollback(sqlite3 *db){
115443 SQLITE_PRIVATE int sqlite3VtabCommit(sqlite3 *db){
115456 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){
115511 SQLITE_PRIVATE int sqlite3VtabSavepoint(sqlite3 *db, int op, int iSavepoint){
115558 sqlite3 *db, /* Database connection for reporting malloc problems */
115649 SQLITE_API int SQLITE_STDCALL sqlite3_vtab_on_conflict(sqlite3 *db){
115667 SQLITE_API int SQLITE_CDECL sqlite3_vtab_config(sqlite3 *db, int op, ...){
115887 static int whereLoopResize(sqlite3*, WhereLoop*, int);
116324 static void whereOrInfoDelete(sqlite3 *db, WhereOrInfo *p){
116332 static void whereAndInfoDelete(sqlite3 *db, WhereAndInfo *p){
116344 sqlite3 *db = pWC->pWInfo->pParse->db;
116385 sqlite3 *db = pWC->pWInfo->pParse->db;
116824 sqlite3 *db = pParse->db; /* Database connection */
116990 sqlite3 *db; /* Database connection (for malloc) */
117116 sqlite3 *db = pParse->db; /* Database connection */
117388 sqlite3 *db = pParse->db; /* Database connection */
118464 sqlite3 *db = pParse->db;
119263 sqlite3 *db = pParse->db; /* Database handle */
119432 sqlite3 *db; /* Database connection */
120408 static void whereLoopClearUnion(sqlite3 *db, WhereLoop *p){
120425 static void whereLoopClear(sqlite3 *db, WhereLoop *p){
120434 static int whereLoopResize(sqlite3 *db, WhereLoop *p, int n){
120450 static int whereLoopXfer(sqlite3 *db, WhereLoop *pTo, WhereLoop *pFrom){
120469 static void whereLoopDelete(sqlite3 *db, WhereLoop *p){
120477 static void whereInfoFree(sqlite3 *db, WhereInfo *pWInfo){
120677 sqlite3 *db = pWInfo->pParse->db;
120872 sqlite3 *db = pParse->db; /* Database connection malloc context */
121447 sqlite3 *db;
121734 sqlite3 *db = pWInfo->pParse->db;
121809 sqlite3 *db = pWInfo->pParse->db; /* Database connection */
122118 sqlite3 *db; /* The database connection */
122639 sqlite3 *db; /* Database connection */
123051 sqlite3 *db = pParse->db;
123366 sqlite3 *db = pParse->db;
127476 sqlite3 *db = pParse->db; /* The database connection */
127945 SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db);
127977 SQLITE_PRIVATE int sqlite3RtreeInit(sqlite3 *db);
128009 SQLITE_PRIVATE int sqlite3IcuInit(sqlite3 *db);
128568 typedef void(*SQLLOGFUNC_t)(void*, sqlite3*, const char*, int);
128635 static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
128692 SQLITE_API sqlite3_mutex *SQLITE_STDCALL sqlite3_db_mutex(sqlite3 *db){
128706 SQLITE_API int SQLITE_STDCALL sqlite3_db_release_memory(sqlite3 *db){
128729 SQLITE_API int SQLITE_CDECL sqlite3_db_config(sqlite3 *db, int op, ...){
128848 SQLITE_API sqlite_int64 SQLITE_STDCALL sqlite3_last_insert_rowid(sqlite3 *db){
128861 SQLITE_API int SQLITE_STDCALL sqlite3_changes(sqlite3 *db){
128874 SQLITE_API int SQLITE_STDCALL sqlite3_total_changes(sqlite3 *db){
128889 SQLITE_PRIVATE void sqlite3CloseSavepoints(sqlite3 *db){
128906 static void functionDestroy(sqlite3 *db, FuncDef *p){
128921 static void disconnectAllVtab(sqlite3 *db){
128946 static int connectionIsBusy(sqlite3 *db){
128960 static int sqlite3Close(sqlite3 *db, int forceZombie){
129016 SQLITE_API int SQLITE_STDCALL sqlite3_close(sqlite3 *db){ return sqlite3Close(db,0); }
129017 SQLITE_API int SQLITE_STDCALL sqlite3_close_v2(sqlite3 *db){ return sqlite3Close(db,1); }
129028 SQLITE_PRIVATE void sqlite3LeaveMutexAndCloseZombie(sqlite3 *db){
129151 SQLITE_PRIVATE void sqlite3RollbackAll(sqlite3 *db, int tripCode){
129372 sqlite3 *db = (sqlite3 *)ptr;
129391 sqlite3 *db = (sqlite3 *)ptr;
129392 int timeout = ((sqlite3 *)ptr)->busyTimeout;
129425 sqlite3 *db,
129448 sqlite3 *db,
129478 SQLITE_API int SQLITE_STDCALL sqlite3_busy_timeout(sqlite3 *db, int ms){
129494 SQLITE_API void SQLITE_STDCALL sqlite3_interrupt(sqlite3 *db){
129512 sqlite3 *db,
129612 sqlite3 *db,
129626 sqlite3 *db,
129669 sqlite3 *db,
129709 sqlite3 *db,
129740 SQLITE_API void *SQLITE_STDCALL sqlite3_trace(sqlite3 *db, void (*xTrace)(void*,const char*), void …
129765 sqlite3 *db,
129792 sqlite3 *db, /* Attach the hook to this database */
129817 sqlite3 *db, /* Attach the hook to this database */
129842 sqlite3 *db, /* Attach the hook to this database */
129871 sqlite3 *db, /* Connection */
129895 SQLITE_API int SQLITE_STDCALL sqlite3_wal_autocheckpoint(sqlite3 *db, int nFrame){
129917 sqlite3 *db, /* Attach the hook to this db handle */
129918 int(*xCallback)(void *, sqlite3*, const char*, int),
129944 sqlite3 *db, /* Database handle */
129998 SQLITE_API int SQLITE_STDCALL sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb){
130024 SQLITE_PRIVATE int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt){
130068 SQLITE_PRIVATE int sqlite3TempInMemory(const sqlite3 *db){
130087 SQLITE_API const char *SQLITE_STDCALL sqlite3_errmsg(sqlite3 *db){
130115 SQLITE_API const void *SQLITE_STDCALL sqlite3_errmsg16(sqlite3 *db){
130160 SQLITE_API int SQLITE_STDCALL sqlite3_errcode(sqlite3 *db){
130169 SQLITE_API int SQLITE_STDCALL sqlite3_extended_errcode(sqlite3 *db){
130193 sqlite3* db,
130332 SQLITE_API int SQLITE_STDCALL sqlite3_limit(sqlite3 *db, int limitId, int newLimit){
130629 sqlite3 **ppDb, /* OUT: Returned database handle */
130633 sqlite3 *db; /* Store allocated handle here */
130707 db = sqlite3MallocZero( sizeof(sqlite3) );
130840 extern int sqlite3Fts1Init(sqlite3*);
130847 extern int sqlite3Fts2Init(sqlite3*);
130872 int sqlite3_dbstat_register(sqlite3*);
130926 sqlite3 **ppDb
130933 sqlite3 **ppDb, /* OUT: SQLite db handle */
130946 sqlite3 **ppDb
130984 sqlite3* db,
130997 sqlite3* db,
131022 sqlite3* db,
131052 sqlite3 *db,
131054 void(*xCollNeeded)(void*,sqlite3*,int eTextRep,const char*)
131073 sqlite3 *db,
131075 void(*xCollNeeded16)(void*,sqlite3*,int eTextRep,const void*)
131105 SQLITE_API int SQLITE_STDCALL sqlite3_get_autocommit(sqlite3 *db){
131166 sqlite3 *db, /* Connection handle */
131299 SQLITE_API int SQLITE_STDCALL sqlite3_extended_result_codes(sqlite3 *db, int onoff){
131312 SQLITE_API int SQLITE_STDCALL sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *…
131531 sqlite3 *db = va_arg(ap, sqlite3*);
131549 sqlite3 *db = va_arg(ap, sqlite3*);
131629 sqlite3 *db = va_arg(ap, sqlite3*);
131661 sqlite3 *db = va_arg(ap, sqlite3*);
131729 SQLITE_PRIVATE Btree *sqlite3DbNameToBtree(sqlite3 *db, const char *zDbName){
131745 SQLITE_API const char *SQLITE_STDCALL sqlite3_db_filename(sqlite3 *db, const char *zDbName){
131761 SQLITE_API int SQLITE_STDCALL sqlite3_db_readonly(sqlite3 *db, const char *zDbName){
131812 static sqlite3 *SQLITE_WSD sqlite3BlockedList = 0;
131829 static void checkListProperties(sqlite3 *db){
131830 sqlite3 *p;
131833 sqlite3 *p2;
131855 static void removeFromBlockedList(sqlite3 *db){
131856 sqlite3 **pp;
131870 static void addToBlockedList(sqlite3 *db){
131871 sqlite3 **pp;
131921 sqlite3 *db,
131943 sqlite3 *p;
131970 SQLITE_PRIVATE void sqlite3ConnectionBlocked(sqlite3 *db, sqlite3 *pBlocker){
131998 SQLITE_PRIVATE void sqlite3ConnectionUnlocked(sqlite3 *db){
132001 sqlite3 **pp; /* Iterator variable */
132011 sqlite3 *p = *pp;
132097 SQLITE_PRIVATE void sqlite3ConnectionClosed(sqlite3 *db){
132886 sqlite3 *db; /* The database connection */
133232 SQLITE_PRIVATE int sqlite3Fts3InitHashTable(sqlite3 *, Fts3Hash *, const char *);
133251 SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3 *db);
133252 SQLITE_PRIVATE int sqlite3Fts3InitTerm(sqlite3 *db);
133260 SQLITE_PRIVATE int sqlite3Fts3InitAux(sqlite3 *db);
133273 SQLITE_PRIVATE int sqlite3Fts3InitTok(sqlite3*, Fts3Hash *);
133524 sqlite3 *db, /* Database in which to run SQL */
133549 sqlite3 *db = p->db; /* Database handle */
133635 sqlite3 *db = p->db; /* The database connection */
134028 sqlite3 *db, /* Database handle */
134104 sqlite3 *db, /* The SQLite database connection */
134480 sqlite3 *db, /* Database connection */
134490 sqlite3 *db, /* Database connection */
136692 sqlite3 *db = p->db; /* Database connection */
136849 SQLITE_PRIVATE int sqlite3Fts3Init(sqlite3 *db){
138877 sqlite3 *db,
138946 sqlite3 *db, /* Database connection */
139406 SQLITE_PRIVATE int sqlite3Fts3InitAux(sqlite3 *db){
140529 sqlite3 *db,
140635 sqlite3 *db = sqlite3_context_db_handle(context);
140710 SQLITE_PRIVATE int sqlite3Fts3ExprInitTestInterface(sqlite3* db){
142105 sqlite3 *db,
142127 sqlite3 *db,
142179 sqlite3 *db = (sqlite3 *)sqlite3_user_data(context);
142224 sqlite3 *db,
142662 sqlite3 *db, /* Database connection */
142925 SQLITE_PRIVATE int sqlite3Fts3InitTok(sqlite3 *db, Fts3Hash *pHash){
151086 sqlite3 *db; /* Host database connection */
151722 sqlite3 *, void *, int, const char *const*, sqlite3_vtab **, char **, int
151729 sqlite3 *db,
151742 sqlite3 *db,
153917 static int rtreeQueryStat1(sqlite3 *db, Rtree *pRtree){
153977 sqlite3 *db,
154056 static int getIntFromStmt(sqlite3 *db, const char *zSql, int *piVal){
154087 sqlite3 *db, /* Database handle */
154131 sqlite3 *db, /* Database connection */
154308 SQLITE_PRIVATE int sqlite3RtreeInit(sqlite3 *db){
154388 sqlite3 *db, /* Register SQL function on this connection */
154412 sqlite3 *db, /* Register SQL function on this connection */
154437 sqlite3 *db,
154864 sqlite3 *db = (sqlite3 *)sqlite3_user_data(p);
154898 SQLITE_PRIVATE int sqlite3IcuInit(sqlite3 *db){
154942 sqlite3 *db,
155339 sqlite3 *db;
155351 sqlite3 *db,
155839 SQLITE_API int SQLITE_STDCALL sqlite3_dbstat_register(sqlite3 *db){