Home | History | Annotate | Download | only in orig

Lines Matching defs:pVTab

5427   int (*xBestIndex)(sqlite3_vtab *pVTab, sqlite3_index_info*);
5428 int (*xDisconnect)(sqlite3_vtab *pVTab);
5429 int (*xDestroy)(sqlite3_vtab *pVTab);
5430 int (*xOpen)(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor);
5439 int (*xBegin)(sqlite3_vtab *pVTab);
5440 int (*xSync)(sqlite3_vtab *pVTab);
5441 int (*xCommit)(sqlite3_vtab *pVTab);
5442 int (*xRollback)(sqlite3_vtab *pVTab);
5443 int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,
5446 int (*xRename)(sqlite3_vtab *pVtab, const char *zNew);
5449 int (*xSavepoint)(sqlite3_vtab *pVTab, int);
5450 int (*xRelease)(sqlite3_vtab *pVTab, int);
5451 int (*xRollbackTo)(sqlite3_vtab *pVTab, int);
5644 sqlite3_vtab *pVtab; /* Virtual table of this cursor */
9149 VTable *pVtab; /* Used when p4type is P4_VTAB */
10901 sqlite3_vtab *pVtab; /* Pointer to vtab instance */
63304 sqlite3_vtab *pVtab = pOp->p4.pVtab->pVtab;
63305 sqlite3_snprintf(nTemp, zTemp, "vtab:%p:%p", pVtab, pVtab->pModule);
63965 const sqlite3_module *pModule = pVtabCursor->pVtab->pModule;
66237 SQLITE_PRIVATE void sqlite3VtabImportErrmsg(Vdbe *p, sqlite3_vtab *pVtab){
66240 p->zErrMsg = sqlite3DbStrDup(db, pVtab->zErrMsg);
66241 sqlite3_free(pVtab->zErrMsg);
66242 pVtab->zErrMsg = 0;
72417 sqlite3_vtab *pVtab;
72431 pVtab = pC->pVtabCursor->pVtab;
72432 pModule = pVtab->pModule;
72435 sqlite3VtabImportErrmsg(p, pVtab);
73970 VTable *pVTab;
73971 pVTab = pOp->p4.pVtab;
73972 rc = sqlite3VtabBegin(db, pVTab);
73973 if( pVTab ) sqlite3VtabImportErrmsg(p, pVTab->pVtab);
74014 sqlite3_vtab *pVtab;
74020 pVtab = pOp->p4.pVtab->pVtab;
74021 pModule = (sqlite3_module *)pVtab->pModule;
74022 assert(pVtab && pModule);
74023 rc = pModule->xOpen(pVtab, &pVtabCursor);
74024 sqlite3VtabImportErrmsg(p, pVtab);
74027 pVtabCursor->pVtab = pVtab;
74069 sqlite3_vtab *pVtab;
74082 pVtab = pVtabCursor->pVtab;
74083 pModule = pVtab->pModule;
74101 sqlite3VtabImportErrmsg(p, pVtab);
74125 sqlite3_vtab *pVtab;
74139 pVtab = pCur->pVtabCursor->pVtab;
74140 pModule = pVtab->pModule;
74153 sqlite3VtabImportErrmsg(p, pVtab);
74182 sqlite3_vtab *pVtab;
74193 pVtab = pCur->pVtabCursor->pVtab;
74194 pModule = pVtab->pModule;
74206 sqlite3VtabImportErrmsg(p, pVtab);
74227 sqlite3_vtab *pVtab;
74230 pVtab = pOp->p4.pVtab->pVtab;
74232 assert( pVtab->pModule->xRename );
74242 rc = pVtab->pModule->xRename(pVtab, pName->z);
74243 sqlite3VtabImportErrmsg(p, pVtab);
74279 sqlite3_vtab *pVtab;
74291 pVtab = pOp->p4.pVtab->pVtab;
74292 pModule = (sqlite3_module *)pVtab->pModule;
74306 rc = pModule->xUpdate(pVtab, nArg, apArg, &rowid);
74308 sqlite3VtabImportErrmsg(p, pVtab);
74313 if( (rc&0xff)==SQLITE_CONSTRAINT && pOp->p4.pVtab->bConstraint ){
82990 VTable *pVTab = 0; /* Non-zero if this is a v-tab with an xRename() */
83046 pVTab = sqlite3GetVTable(db, pTab);
83047 if( pVTab->pVtab->pModule->xRename==0 ){
83048 pVTab = 0;
83062 sqlite3BeginWriteOperation(pParse, pVTab!=0, iDb);
83071 if( pVTab ){
83074 sqlite3VdbeAddOp4(v, OP_VRename, i, 0, 0,(const char*)pVTab, P4_VTAB);
91331 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
91333 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, 1, iKey, pVTab, P4_VTAB);
94945 VTable *pVTab = IsVirtual(pTab) ? sqlite3GetVTable(p->db, pTab) : 0;
94964 if( pOp->opcode==OP_VOpen && pOp->p4.pVtab==pVTab ){
94965 assert( pOp->p4.pVtab!=0 );
95735 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
95737 sqlite3VdbeAddOp4(v, OP_VUpdate, 1, pTab->nCol+2, regIns, pVTab, P4_VTAB);
108903 const char *pVTab = (const char*)sqlite3GetVTable(db, pTab);
108948 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, pTab->nCol+2, iReg, pVTab, P4_VTAB);
109438 SQLITE_PRIVATE void sqlite3VtabLock(VTable *pVTab){
109439 pVTab->nRef++;
109449 VTable *pVtab;
109451 for(pVtab=pTab->pVTable; pVtab && pVtab->db!=db; pVtab=pVtab->pNext);
109452 return pVtab;
109459 SQLITE_PRIVATE void sqlite3VtabUnlock(VTable *pVTab){
109460 sqlite3 *db = pVTab->db;
109463 assert( pVTab->nRef>0 );
109466 pVTab->nRef--;
109467 if( pVTab->nRef==0 ){
109468 sqlite3_vtab *p = pVTab->pVtab;
109472 sqlite3DbFree(db, pVTab);
109518 ** list in p->pVTab. It also decrements the VTable ref count. This is
109532 VTable *pVTab = *ppVTab;
109533 *ppVTab = pVTab->pNext;
109534 sqlite3VtabUnlock(pVTab);
109838 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr);
109850 }else if( ALWAYS(pVTable->pVtab) ){
109853 pVTable->pVtab->pModule = pMod->pModule;
109966 ** Add the virtual table pVTab to the array sqlite3.aVTrans[]. Space should
109969 static void addToVTrans(sqlite3 *db, VTable *pVTab){
109970 /* Add pVtab to the end of sqlite3.aVTrans */
109971 db->aVTrans[db->nVTrans++] = pVTab;
109972 sqlite3VtabLock(pVTab);
110097 rc = p->pMod->pModule->xDestroy(p->pVtab);
110102 p->pVtab = 0;
110123 VTable *pVTab = db->aVTrans[i];
110124 sqlite3_vtab *p = pVTab->pVtab;
110130 pVTab->iSavepoint = 0;
110131 sqlite3VtabUnlock(pVTab);
110154 sqlite3_vtab *pVtab = aVTrans[i]->pVtab;
110155 if( pVtab && (x = pVtab->pModule->xSync)!=0 ){
110156 rc = x(pVtab);
110157 sqlite3VtabImportErrmsg(p, pVtab);
110183 ** If the virtual table pVtab supports the transaction interface
110190 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){
110202 if( !pVTab ){
110205 pModule = pVTab->pVtab->pModule;
110210 /* If pVtab is already in the aVTrans array, return early */
110212 if( db->aVTrans[i]==pVTab ){
110221 rc = pModule->xBegin(pVTab->pVtab);
110223 addToVTrans(db, pVTab);
110253 VTable *pVTab = db->aVTrans[i];
110254 const sqlite3_module *pMod = pVTab->pMod->pModule;
110255 if( pVTab->pVtab && pMod->iVersion>=2 ){
110260 pVTab->iSavepoint = iSavepoint+1;
110269 if( xMethod && pVTab->iSavepoint>iSavepoint ){
110270 rc = xMethod(pVTab->pVtab, iSavepoint);
110298 sqlite3_vtab *pVtab;
110314 pVtab = sqlite3GetVTable(db, pTab)->pVtab;
110315 assert( pVtab!=0 );
110316 assert( pVtab->pModule!=0 );
110317 pMod = (sqlite3_module *)pVtab->pModule;
110328 rc = pMod->xFindFunction(pVtab, nArg, zLowerName, &xFunc, &pArg);
112745 sqlite3_vtab *pVtab = sqlite3GetVTable(pParse->db, pTab)->pVtab;
112750 rc = pVtab->pModule->xBestIndex(pVtab, p);
112756 }else if( !pVtab->zErrMsg ){
112759 sqlite3ErrorMsg(pParse, "%s", pVtab->zErrMsg);
112762 sqlite3_free(pVtab->zErrMsg);
112763 pVtab->zErrMsg = 0;
117160 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
117162 sqlite3VdbeAddOp4(v, OP_VOpen, iCur, 0, 0, pVTab, P4_VTAB);
127313 static int fts3DisconnectMethod(sqlite3_vtab *pVtab){
127314 Fts3Table *p = (Fts3Table *)pVtab;
127367 static int fts3DestroyMethod(sqlite3_vtab *pVtab){
127368 Fts3Table *p = (Fts3Table *)pVtab;
127386 return (rc==SQLITE_OK ? fts3DisconnectMethod(pVtab) : rc);
128328 static int fts3BestIndexMethod(sqlite3_vtab *pVTab, sqlite3_index_info *pInfo){
128329 Fts3Table *p = (Fts3Table *)pVTab;
128450 static int fts3OpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
128453 UNUSED_PARAMETER(pVTab);
128473 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
128479 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
128498 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
128527 if( rc==SQLITE_OK && ((Fts3Table *)pCsr->base.pVtab)->zContentTbl==0 ){
129719 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
129868 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
129925 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
130058 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
130092 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
130102 sqlite3_vtab *pVtab, /* Virtual table handle */
130107 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
130114 static int fts3SyncMethod(sqlite3_vtab *pVtab){
130137 Fts3Table *p = (Fts3Table*)pVtab;
130187 static int fts3BeginMethod(sqlite3_vtab *pVtab){
130188 Fts3Table *p = (Fts3Table*)pVtab;
130189 UNUSED_PARAMETER(pVtab);
130204 static int fts3CommitMethod(sqlite3_vtab *pVtab){
130205 TESTONLY( Fts3Table *p = (Fts3Table*)pVtab );
130206 UNUSED_PARAMETER(pVtab);
130219 static int fts3RollbackMethod(sqlite3_vtab *pVtab){
130220 Fts3Table *p = (Fts3Table*)pVtab;
130360 p = (Fts3Table *)pCursor->base.pVtab;
130402 sqlite3_vtab *pVtab, /* Virtual table handle */
130419 UNUSED_PARAMETER(pVtab);
130438 sqlite3_vtab *pVtab, /* Virtual table handle */
130441 Fts3Table *p = (Fts3Table *)pVtab;
130495 static int fts3SavepointMethod(sqlite3_vtab *pVtab, int iSavepoint){
130498 assert( ((Fts3Table *)pVtab)->inTransaction );
130499 assert( ((Fts3Table *)pVtab)->mxSavepoint < iSavepoint );
130500 TESTONLY( ((Fts3Table *)pVtab)->mxSavepoint = iSavepoint );
130501 if( ((Fts3Table *)pVtab)->bIgnoreSavepoint==0 ){
130502 rc = fts3SyncMethod(pVtab);
130512 static int fts3ReleaseMethod(sqlite3_vtab *pVtab, int iSavepoint){
130513 TESTONLY( Fts3Table *p = (Fts3Table*)pVtab );
130515 UNUSED_PARAMETER(pVtab);
130527 static int fts3RollbackToMethod(sqlite3_vtab *pVtab, int iSavepoint){
130528 Fts3Table *p = (Fts3Table*)pVtab;
130813 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
130958 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
131229 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
131329 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
131480 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
131533 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
131657 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
132297 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
132406 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
132456 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
132762 static int fts3auxDisconnectMethod(sqlite3_vtab *pVtab){
132763 Fts3auxTable *p = (Fts3auxTable *)pVtab;
132784 sqlite3_vtab *pVTab,
132794 UNUSED_PARAMETER(pVTab);
132853 static int fts3auxOpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
132856 UNUSED_PARAMETER(pVTab);
132870 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
132903 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
133003 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
136465 static int fts3tokDisconnectMethod(sqlite3_vtab *pVtab){
136466 Fts3tokTable *pTab = (Fts3tokTable *)pVtab;
136477 sqlite3_vtab *pVTab,
136481 UNUSED_PARAMETER(pVTab);
136505 static int fts3tokOpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
136507 UNUSED_PARAMETER(pVTab);
136525 Fts3tokTable *pTab = (Fts3tokTable *)(pCsr->base.pVtab);
136555 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
136584 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
138232 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
142043 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
142197 sqlite3_vtab *pVtab, /* FTS3 vtab object */
142202 Fts3Table *p = (Fts3Table *)pVtab;
142973 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
143392 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
143492 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
143564 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
143707 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
143846 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
144884 #define RTREE_OF_CURSOR(X) ((Rtree*)((X)->base.pVtab))
145458 static int rtreeDisconnect(sqlite3_vtab *pVtab){
145459 rtreeRelease((Rtree *)pVtab);
145466 static int rtreeDestroy(sqlite3_vtab *pVtab){
145467 Rtree *pRtree = (Rtree *)pVtab;
145493 static int rtreeOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
145500 pCsr->base.pVtab = pVTab;
145531 Rtree *pRtree = (Rtree *)(cur->pVtab);
146061 Rtree *pRtree = (Rtree *)cur->pVtab;
146172 Rtree *pRtree = (Rtree *)pVtabCursor->pVtab;
146185 pCsr->base.pVtab = (sqlite3_vtab*)pRtree;
147441 sqlite3_vtab *pVtab,
147446 Rtree *pRtree = (Rtree *)pVtab;
147561 static int rtreeRename(sqlite3_vtab *pVtab, const char *zNewName){
147562 Rtree *pRtree = (Rtree *)pVtab;