Lines Matching defs:pVtab

7650   int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,
7653 int (*xRename)(sqlite3_vtab *pVtab, const char *zNew);
7973 sqlite3_vtab *pVtab; /* Virtual table of this cursor */
16503 VTable *pVtab; /* Used when p4type is P4_VTAB */
18372 sqlite3_vtab *pVtab; /* Pointer to vtab instance */
86808 sqlite3_vtab *pVtab = pOp->p4.pVtab->pVtab;
86809 sqlite3_str_appendf(&x, "vtab:%p", pVtab);
87593 const sqlite3_module *pModule = pVCur->pVtab->pModule;
87594 assert( pVCur->pVtab->nRef>0 );
87595 pVCur->pVtab->nRef--;
90260 SQLITE_PRIVATE void sqlite3VtabImportErrmsg(Vdbe *p, sqlite3_vtab *pVtab){
90261 if( pVtab->zErrMsg ){
90264 p->zErrMsg = sqlite3DbStrDup(db, pVtab->zErrMsg);
90265 sqlite3_free(pVtab->zErrMsg);
90266 pVtab->zErrMsg = 0;
99176 sqlite3_vtab *pVtab;
99192 pVtab = pC->uc.pVCur->pVtab;
99193 pModule = pVtab->pModule;
99196 sqlite3VtabImportErrmsg(p, pVtab);
101217 pVTab = pOp->p4.pVtab;
101219 if( pVTab ) sqlite3VtabImportErrmsg(p, pVTab->pVtab);
101280 sqlite3_vtab *pVtab;
101286 pVtab = pOp->p4.pVtab->pVtab;
101287 if( pVtab==0 || NEVER(pVtab->pModule==0) ){
101291 pModule = pVtab->pModule;
101292 rc = pModule->xOpen(pVtab, &pVCur);
101293 sqlite3VtabImportErrmsg(p, pVtab);
101297 pVCur->pVtab = pVtab;
101303 pVtab->nRef++;
101325 sqlite3_vtab *pVtab;
101337 pVtab = pTab->u.vtab.p->pVtab;
101338 assert( pVtab!=0 );
101339 pModule = pVtab->pModule;
101345 rc = pModule->xIntegrity(pVtab, db->aDb[pOp->p1].zDbSName, pTab->zName,
101414 sqlite3_vtab *pVtab;
101428 pVtab = pVCur->pVtab;
101429 pModule = pVtab->pModule;
101442 sqlite3VtabImportErrmsg(p, pVtab);
101468 sqlite3_vtab *pVtab;
101484 pVtab = pCur->uc.pVCur->pVtab;
101485 pModule = pVtab->pModule;
101502 sqlite3VtabImportErrmsg(p, pVtab);
101524 sqlite3_vtab *pVtab;
101535 pVtab = pCur->uc.pVCur->pVtab;
101536 pModule = pVtab->pModule;
101546 sqlite3VtabImportErrmsg(p, pVtab);
101566 sqlite3_vtab *pVtab;
101572 pVtab = pOp->p4.pVtab->pVtab;
101574 assert( pVtab->pModule->xRename );
101584 rc = pVtab->pModule->xRename(pVtab, pName->z);
101586 sqlite3VtabImportErrmsg(p, pVtab);
101622 sqlite3_vtab *pVtab;
101636 pVtab = pOp->p4.pVtab->pVtab;
101637 if( pVtab==0 || NEVER(pVtab->pModule==0) ){
101641 pModule = pVtab->pModule;
101655 rc = pModule->xUpdate(pVtab, nArg, apArg, &rowid);
101657 sqlite3VtabImportErrmsg(p, pVtab);
101662 if( (rc&0xff)==SQLITE_CONSTRAINT && pOp->p4.pVtab->bConstraint ){
105676 static int bytecodevtabDisconnect(sqlite3_vtab *pVtab){
105677 bytecodevtab *p = (bytecodevtab*)pVtab;
105730 bytecodevtab *pTab = (bytecodevtab*)cur->pVtab;
105774 bytecodevtab *pVTab = (bytecodevtab*)cur->pVtab;
105909 bytecodevtab *pVTab = (bytecodevtab *)pVtabCursor->pVtab;
116336 if( pVTab->pVtab->pModule->xRename==0 ){
133146 if( pOp->opcode==OP_VOpen && pOp->p4.pVtab==pVTab ){
133147 assert( pOp->p4.pVtab!=0 );
140877 pVTab = pTab->u.vtab.p->pVtab;
141572 static int pragmaVtabDisconnect(sqlite3_vtab *pVtab){
141573 PragmaVtab *pTab = (PragmaVtab*)pVtab;
141623 static int pragmaVtabOpen(sqlite3_vtab *pVtab, sqlite3_vtab_cursor **ppCursor){
141628 pCsr->base.pVtab = pVtab;
141678 PragmaVtab *pTab = (PragmaVtab*)(pVtabCursor->pVtab);
141736 PragmaVtab *pTab = (PragmaVtab*)(pVtabCursor->pVtab);
155585 VTable *pVtab;
155587 for(pVtab=pTab->u.vtab.p; pVtab && pVtab->db!=db; pVtab=pVtab->pNext);
155588 return pVtab;
155605 sqlite3_vtab *p = pVTab->pVtab;
156005 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr);
156021 }else if( ALWAYS(pVTable->pVtab) ){
156024 memset(pVTable->pVtab, 0, sizeof(pVTable->pVtab[0]));
156025 pVTable->pVtab->pModule = pMod->pModule;
156148 /* Add pVtab to the end of sqlite3.aVTrans */
156326 assert( p->pVtab );
156327 if( p->pVtab->nRef>0 ){
156336 rc = xDestroy(p->pVtab);
156340 p->pVtab = 0;
156365 sqlite3_vtab *p = pVTab->pVtab;
156394 sqlite3_vtab *pVtab = aVTrans[i]->pVtab;
156395 if( pVtab && (x = pVtab->pModule->xSync)!=0 ){
156396 rc = x(pVtab);
156397 sqlite3VtabImportErrmsg(p, pVtab);
156423 ** If the virtual table pVtab supports the transaction interface
156445 pModule = pVTab->pVtab->pModule;
156450 /* If pVtab is already in the aVTrans array, return early */
156461 rc = pModule->xBegin(pVTab->pVtab);
156467 rc = pModule->xSavepoint(pVTab->pVtab, iSvpt-1);
156500 if( pVTab->pVtab && pMod->iVersion>=2 ){
156518 rc = xMethod(pVTab->pVtab, iSavepoint);
156548 sqlite3_vtab *pVtab;
156562 pVtab = sqlite3GetVTable(db, pTab)->pVtab;
156563 assert( pVtab!=0 );
156564 assert( pVtab->pModule!=0 );
156565 pMod = (sqlite3_module *)pVtab->pModule;
156584 rc = pMod->xFindFunction(pVtab, nArg, pDef->zName, &xSFunc, &pArg);
160654 sqlite3_vtab *pVtab;
160658 pVtab = sqlite3GetVTable(db, pCol->y.pTab)->pVtab;
160659 assert( pVtab!=0 );
160660 assert( pVtab->pModule!=0 );
160662 pMod = (sqlite3_module *)pVtab->pModule;
160664 i = pMod->xFindFunction(pVtab,2, pExpr->u.zToken, &xNotUsed, &pNotUsed);
163662 sqlite3_vtab *pVtab = sqlite3GetVTable(pParse->db, pTab)->pVtab;
163667 rc = pVtab->pModule->xBestIndex(pVtab, p);
163674 }else if( !pVtab->zErrMsg ){
163677 sqlite3ErrorMsg(pParse, "%s", pVtab->zErrMsg);
163683 sqlite3_free(pVtab->zErrMsg);
163684 pVtab->zErrMsg = 0;
186680 static int fts3DisconnectMethod(sqlite3_vtab *pVtab){
186681 Fts3Table *p = (Fts3Table *)pVtab;
186746 static int fts3DestroyMethod(sqlite3_vtab *pVtab){
186747 Fts3Table *p = (Fts3Table *)pVtab;
186770 return (rc==SQLITE_OK ? fts3DisconnectMethod(pVtab) : rc);
187917 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
187947 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
187949 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
187966 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
187996 Fts3Table *pTab = (Fts3Table*)pCsr->base.pVtab;
188006 if( rc==SQLITE_OK && ((Fts3Table *)pCsr->base.pVtab)->zContentTbl==0 ){
189262 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
189401 Fts3Table *pTab = (Fts3Table*)pCursor->pVtab;
189414 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
189459 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
189609 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
189647 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
189657 sqlite3_vtab *pVtab, /* Virtual table handle */
189662 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
189669 static int fts3SyncMethod(sqlite3_vtab *pVtab){
189692 Fts3Table *p = (Fts3Table*)pVtab;
189739 static int fts3BeginMethod(sqlite3_vtab *pVtab){
189740 Fts3Table *p = (Fts3Table*)pVtab;
189742 UNUSED_PARAMETER(pVtab);
189762 static int fts3CommitMethod(sqlite3_vtab *pVtab){
189763 TESTONLY( Fts3Table *p = (Fts3Table*)pVtab );
189764 UNUSED_PARAMETER(pVtab);
189777 static int fts3RollbackMethod(sqlite3_vtab *pVtab){
189778 Fts3Table *p = (Fts3Table*)pVtab;
189943 p = (Fts3Table *)pCursor->base.pVtab;
189985 sqlite3_vtab *pVtab, /* Virtual table handle */
190002 UNUSED_PARAMETER(pVtab);
190021 sqlite3_vtab *pVtab, /* Virtual table handle */
190024 Fts3Table *p = (Fts3Table *)pVtab;
190082 static int fts3SavepointMethod(sqlite3_vtab *pVtab, int iSavepoint){
190084 Fts3Table *pTab = (Fts3Table*)pVtab;
190115 static int fts3ReleaseMethod(sqlite3_vtab *pVtab, int iSavepoint){
190116 Fts3Table *pTab = (Fts3Table*)pVtab;
190129 static int fts3RollbackToMethod(sqlite3_vtab *pVtab, int iSavepoint){
190130 Fts3Table *pTab = (Fts3Table*)pVtab;
190160 sqlite3_vtab *pVtab, /* The virtual table to be checked */
190161 const char *zSchema, /* Name of schema in which pVtab lives */
190166 Fts3Table *p = (Fts3Table*)pVtab;
190480 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
190630 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
190902 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
191003 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
191156 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
191209 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
191337 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
192009 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
192113 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
192163 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
192470 static int fts3auxDisconnectMethod(sqlite3_vtab *pVtab){
192471 Fts3auxTable *p = (Fts3auxTable *)pVtab;
192578 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
192611 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
192715 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
196232 static int fts3tokDisconnectMethod(sqlite3_vtab *pVtab){
196233 Fts3tokTable *pTab = (Fts3tokTable *)pVtab;
196292 Fts3tokTable *pTab = (Fts3tokTable *)(pCsr->base.pVtab);
196322 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
196351 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
198038 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
201991 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
202145 sqlite3_vtab *pVtab, /* FTS3 vtab object */
202150 Fts3Table *p = (Fts3Table *)pVtab;
203039 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
203178 Fts3Table *pTab = (Fts3Table *)p->pCursor->base.pVtab;
203548 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
203668 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
203756 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
203903 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
204044 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
209696 static int jsonEachDisconnect(sqlite3_vtab *pVtab){
209697 JsonEachConnection *p = (JsonEachConnection*)pVtab;
209698 sqlite3DbFree(p->db, pVtab);
209704 JsonEachConnection *pVtab = (JsonEachConnection*)p;
209708 pCur = sqlite3DbMallocZero(pVtab->db, sizeof(*pCur));
209710 pCur->db = pVtab->db;
210105 sqlite3_free(cur->pVtab->zErrMsg);
210106 cur->pVtab->zErrMsg = jsonBadPathError(0, zRoot);
210108 return cur->pVtab->zErrMsg ? SQLITE_ERROR : SQLITE_NOMEM;
210123 sqlite3_free(cur->pVtab->zErrMsg);
210124 cur->pVtab->zErrMsg = jsonBadPathError(0, zRoot);
210126 return cur->pVtab->zErrMsg ? SQLITE_ERROR : SQLITE_NOMEM;
210161 sqlite3_free(cur->pVtab->zErrMsg);
210162 cur->pVtab->zErrMsg = sqlite3_mprintf("malformed JSON");
210164 return cur->pVtab->zErrMsg ? SQLITE_ERROR : SQLITE_NOMEM;
210616 #define RTREE_OF_CURSOR(X) ((Rtree*)((X)->base.pVtab))
211357 static int rtreeDisconnect(sqlite3_vtab *pVtab){
211358 rtreeRelease((Rtree *)pVtab);
211365 static int rtreeDestroy(sqlite3_vtab *pVtab){
211366 Rtree *pRtree = (Rtree *)pVtab;
211401 pCsr->base.pVtab = pVTab;
211415 Rtree *pRtree = (Rtree *)(pCsr->base.pVtab);
211434 pCsr->base.pVtab = (sqlite3_vtab*)pRtree;
211443 Rtree *pRtree = (Rtree *)(cur->pVtab);
212050 Rtree *pRtree = (Rtree *)cur->pVtab;
212167 Rtree *pRtree = (Rtree *)pVtabCursor->pVtab;
213396 sqlite3_vtab *pVtab,
213401 Rtree *pRtree = (Rtree *)pVtab;
213542 static int rtreeBeginTransaction(sqlite3_vtab *pVtab){
213543 Rtree *pRtree = (Rtree *)pVtab;
213553 static int rtreeEndTransaction(sqlite3_vtab *pVtab){
213554 Rtree *pRtree = (Rtree *)pVtab;
213559 static int rtreeRollback(sqlite3_vtab *pVtab){
213560 return rtreeEndTransaction(pVtab);
213566 static int rtreeRename(sqlite3_vtab *pVtab, const char *zNewName){
213567 Rtree *pRtree = (Rtree *)pVtab;
213599 static int rtreeSavepoint(sqlite3_vtab *pVtab, int iSavepoint){
213600 Rtree *pRtree = (Rtree *)pVtab;
214514 sqlite3_vtab *pVtab, /* The virtual table to check */
214520 Rtree *pRtree = (Rtree*)pVtab;
215969 Rtree *pRtree = (Rtree *)pVtabCursor->pVtab;
216150 Rtree *pRtree = (Rtree *)cur->pVtab;
216205 sqlite3_vtab *pVtab,
216210 Rtree *pRtree = (Rtree *)pVtab;
216243 pVtab->zErrMsg =
216341 sqlite3_vtab *pVtab,
216347 (void)pVtab;
223739 static int statDisconnect(sqlite3_vtab *pVtab){
223740 sqlite3_free(pVtab);
223837 pCsr->base.pVtab = pVTab;
224050 StatTable *pTab = (StatTable *)((sqlite3_vtab_cursor *)pCsr)->pVtab;
224113 StatTable *pTab = (StatTable *)pCursor->pVtab;
224279 StatTable *pTab = (StatTable*)(pCursor->pVtab);
224549 static int dbpageDisconnect(sqlite3_vtab *pVtab){
224550 sqlite3_free(pVtab);
224626 pCsr->base.pVtab = pVTab;
224675 DbpageTable *pTab = (DbpageTable *)pCursor->pVtab;
224761 sqlite3_vtab *pVtab,
224766 DbpageTable *pTab = (DbpageTable *)pVtab;
224826 sqlite3_free(pVtab->zErrMsg);
224827 pVtab->zErrMsg = sqlite3_mprintf("%s", zErr);
224835 static int dbpageBegin(sqlite3_vtab *pVtab){
224836 DbpageTable *pTab = (DbpageTable *)pVtab;
249366 static int fts5structDisconnectMethod(sqlite3_vtab *pVtab){
249367 Fts5StructVtab *p = (Fts5StructVtab*)pVtab;
249924 static int fts5DisconnectMethod(sqlite3_vtab *pVtab){
249925 fts5FreeVtab((Fts5FullTable*)pVtab);
249932 static int fts5DestroyMethod(sqlite3_vtab *pVtab){
249933 Fts5Table *pTab = (Fts5Table*)pVtab;
249936 fts5FreeVtab((Fts5FullTable*)pVtab);
250291 if( pCsr->base.pVtab==(sqlite3_vtab*)pTab ) return SQLITE_OK;
250347 Fts5FullTable *pTab = (Fts5FullTable*)(pCsr->base.pVtab);
250392 Fts5FullTable *pTab = (Fts5FullTable*)(pCursor->pVtab);
250453 && pCsr->base.pVtab==(sqlite3_vtab*)pTab
250476 Fts5FullTable *pTab = (Fts5FullTable*)(pCsr->base.pVtab);
250518 && ((Fts5Table*)pCursor->pVtab)->pConfig->bTokendata
250543 Fts5Config *pConfig = ((Fts5Table*)pCursor->pVtab)->pConfig;
250551 pCursor->pVtab->zErrMsg = sqlite3_mprintf(
250713 Fts5FullTable *pTab = (Fts5FullTable*)(pCsr->base.pVtab);
250784 pCsr->base.pVtab->zErrMsg = sqlite3_mprintf(
250828 Fts5FullTable *pTab = (Fts5FullTable*)(pCursor->pVtab);
251080 Fts5FullTable *pTab = (Fts5FullTable*)(pCsr->base.pVtab);
251090 Fts5Table *pTab = (Fts5Table*)(pCsr->base.pVtab);
251251 sqlite3_vtab *pVtab, /* Virtual table handle */
251256 Fts5FullTable *pTab = (Fts5FullTable*)pVtab;
251265 assert( pVtab->zErrMsg==0 );
251411 static int fts5SyncMethod(sqlite3_vtab *pVtab){
251413 Fts5FullTable *pTab = (Fts5FullTable*)pVtab;
251424 static int fts5BeginMethod(sqlite3_vtab *pVtab){
251425 fts5CheckTransactionState((Fts5FullTable*)pVtab, FTS5_BEGIN, 0);
251426 fts5NewTransaction((Fts5FullTable*)pVtab);
251435 static int fts5CommitMethod(sqlite3_vtab *pVtab){
251436 UNUSED_PARAM(pVtab); /* Call below is a no-op for NDEBUG builds */
251437 fts5CheckTransactionState((Fts5FullTable*)pVtab, FTS5_COMMIT, 0);
251445 static int fts5RollbackMethod(sqlite3_vtab *pVtab){
251447 Fts5FullTable *pTab = (Fts5FullTable*)pVtab;
251462 return ((Fts5Table*)(pCsr->base.pVtab))->pConfig->nCol;
251471 Fts5FullTable *pTab = (Fts5FullTable*)(pCsr->base.pVtab);
251477 Fts5FullTable *pTab = (Fts5FullTable*)(pCsr->base.pVtab);
251488 Fts5Table *pTab = (Fts5Table*)(pCsr->base.pVtab);
251512 Fts5Table *pTab = (Fts5Table*)(pCsr->base.pVtab);
251515 }else if( fts5IsContentless((Fts5FullTable*)(pCsr->base.pVtab))
251536 Fts5Config *pConfig = ((Fts5Table*)(pCsr->base.pVtab))->pConfig;
251593 int nCol = ((Fts5Table*)pCsr->base.pVtab)->pConfig->nCol;
251719 Fts5FullTable *pTab = (Fts5FullTable*)(pCsr->base.pVtab);
251872 Fts5Config *pConfig = ((Fts5Table*)(pCsr->base.pVtab))->pConfig;
251904 Fts5Config *pConfig = ((Fts5Table*)(pCsr->base.pVtab))->pConfig;
252024 Fts5FullTable *pTab = (Fts5FullTable*)(pCsr->base.pVtab);
252028 rc = fts5OpenMethod(pCsr->base.pVtab, (sqlite3_vtab_cursor**)&pNew);
252033 pNew->base.pVtab = (sqlite3_vtab*)pTab;
252111 return (Fts5Table*)pCsr->base.pVtab;
252138 switch( ((Fts5Table*)(pCsr->base.pVtab))->pConfig->eDetail ){
252193 Fts5FullTable *pTab = (Fts5FullTable*)(pCursor->pVtab);
252248 sqlite3_vtab *pVtab, /* Virtual table handle */
252254 Fts5FullTable *pTab = (Fts5FullTable*)pVtab;
252273 sqlite3_vtab *pVtab, /* Virtual table handle */
252277 Fts5FullTable *pTab = (Fts5FullTable*)pVtab;
252292 static int fts5SavepointMethod(sqlite3_vtab *pVtab, int iSavepoint){
252293 Fts5FullTable *pTab = (Fts5FullTable*)pVtab;
252297 rc = sqlite3Fts5FlushToDisk((Fts5Table*)pVtab);
252309 static int fts5ReleaseMethod(sqlite3_vtab *pVtab, int iSavepoint){
252310 Fts5FullTable *pTab = (Fts5FullTable*)pVtab;
252327 static int fts5RollbackToMethod(sqlite3_vtab *pVtab, int iSavepoint){
252328 Fts5FullTable *pTab = (Fts5FullTable*)pVtab;
252564 sqlite3_vtab *pVtab, /* the FTS5 virtual table to check */
252570 Fts5FullTable *pTab = (Fts5FullTable*)pVtab;
256661 static int fts5VocabDisconnectMethod(sqlite3_vtab *pVtab){
256662 Fts5VocabTable *pTab = (Fts5VocabTable*)pVtab;
256670 static int fts5VocabDestroyMethod(sqlite3_vtab *pVtab){
256671 Fts5VocabTable *pTab = (Fts5VocabTable*)pVtab;
257003 Fts5VocabTable *pTab = (Fts5VocabTable*)pCursor->pVtab;
257136 Fts5VocabTable *pTab = (Fts5VocabTable*)pCursor->pVtab;
257215 int eType = ((Fts5VocabTable*)(pCursor->pVtab))->eType;
257447 static int stmtDisconnect(sqlite3_vtab *pVtab){
257448 sqlite3_free(pVtab);