Home | History | Annotate | Download | only in dist

Lines Matching refs:pVtab

5049   int (*xBestIndex)(sqlite3_vtab *pVTab, sqlite3_index_info*);
5050 int (*xDisconnect)(sqlite3_vtab *pVTab);
5051 int (*xDestroy)(sqlite3_vtab *pVTab);
5052 int (*xOpen)(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor);
5061 int (*xBegin)(sqlite3_vtab *pVTab);
5062 int (*xSync)(sqlite3_vtab *pVTab);
5063 int (*xCommit)(sqlite3_vtab *pVTab);
5064 int (*xRollback)(sqlite3_vtab *pVTab);
5065 int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,
5068 int (*xRename)(sqlite3_vtab *pVtab, const char *zNew);
5247 sqlite3_vtab *pVtab; /* Virtual table of this cursor */
7725 VTable *pVtab; /* Used when p4type is P4_VTAB */
8995 Table *pVTab; /* vtab with active Connect/Create method */
9355 sqlite3_vtab *pVtab; /* Pointer to vtab instance */
56226 sqlite3_vtab *pVtab = pOp->p4.pVtab->pVtab;
56227 sqlite3_snprintf(nTemp, zTemp, "vtab:%p:%p", pVtab, pVtab->pModule);
60510 static void importVtabErrMsg(Vdbe *p, sqlite3_vtab *pVtab){
60513 p->zErrMsg = sqlite3DbStrDup(db, pVtab->zErrMsg);
60514 sqlite3_free(pVtab->zErrMsg);
60515 pVtab->zErrMsg = 0;
60805 sqlite3_vtab *pVtab;
60923 VTable *pVTab;
60928 sqlite3_vtab *pVtab;
60938 sqlite3_vtab *pVtab;
60945 sqlite3_vtab *pVtab;
60951 sqlite3_vtab *pVtab;
60957 sqlite3_vtab *pVtab;
60961 sqlite3_vtab *pVtab;
64548 sqlite3_vtab *pVtab;
64563 u.bi.pVtab = u.bi.pC->pVtabCursor->pVtab;
64564 u.bi.pModule = u.bi.pVtab->pModule;
64567 importVtabErrMsg(p, u.bi.pVtab);
65965 VTable *pVTab;
65967 u.cf.pVTab = pOp->p4.pVtab;
65968 rc = sqlite3VtabBegin(db, u.cf.pVTab);
65969 if( u.cf.pVTab ) importVtabErrMsg(p, u.cf.pVTab->pVtab);
66011 sqlite3_vtab *pVtab;
66017 u.cg.pVtab = pOp->p4.pVtab->pVtab;
66018 u.cg.pModule = (sqlite3_module *)u.cg.pVtab->pModule;
66019 assert(u.cg.pVtab && u.cg.pModule);
66020 rc = u.cg.pModule->xOpen(u.cg.pVtab, &u.cg.pVtabCursor);
66021 importVtabErrMsg(p, u.cg.pVtab);
66024 u.cg.pVtabCursor->pVtab = u.cg.pVtab;
66030 u.cg.pCur->pModule = u.cg.pVtabCursor->pVtab->pModule;
66067 sqlite3_vtab *pVtab;
66081 u.ch.pVtab = u.ch.pVtabCursor->pVtab;
66082 u.ch.pModule = u.ch.pVtab->pModule;
66101 importVtabErrMsg(p, u.ch.pVtab);
66125 sqlite3_vtab *pVtab;
66140 u.ci.pVtab = pCur->pVtabCursor->pVtab;
66141 u.ci.pModule = u.ci.pVtab->pModule;
66154 importVtabErrMsg(p, u.ci.pVtab);
66184 sqlite3_vtab *pVtab;
66196 u.cj.pVtab = u.cj.pCur->pVtabCursor->pVtab;
66197 u.cj.pModule = u.cj.pVtab->pModule;
66209 importVtabErrMsg(p, u.cj.pVtab);
66231 sqlite3_vtab *pVtab;
66235 u.ck.pVtab = pOp->p4.pVtab->pVtab;
66237 assert( u.ck.pVtab->pModule->xRename );
66241 rc = u.ck.pVtab->pModule->xRename(u.ck.pVtab, u.ck.pName->z);
66242 importVtabErrMsg(p, u.ck.pVtab);
66275 sqlite3_vtab *pVtab;
66284 u.cl.pVtab = pOp->p4.pVtab->pVtab;
66285 u.cl.pModule = (sqlite3_module *)u.cl.pVtab->pModule;
66298 rc = u.cl.pModule->xUpdate(u.cl.pVtab, u.cl.nArg, u.cl.apArg, &u.cl.rowid);
66299 importVtabErrMsg(p, u.cl.pVtab);
72948 VTable *pVTab = 0; /* Non-zero if this is a v-tab with an xRename() */
73007 pVTab = sqlite3GetVTable(db, pTab);
73008 if( pVTab->pVtab->pModule->xRename==0 ){
73009 pVTab = 0;
73023 sqlite3BeginWriteOperation(pParse, pVTab!=0, iDb);
73032 if( pVTab ){
73035 sqlite3VdbeAddOp4(v, OP_VRename, i, 0, 0,(const char*)pVTab, P4_VTAB);
79390 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
79392 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, 1, iRowid, pVTab, P4_VTAB);
82562 VTable *pVTab = IsVirtual(pTab) ? sqlite3GetVTable(p->db, pTab) : 0;
82581 if( pOp->opcode==OP_VOpen && pOp->p4.pVtab==pVTab ){
82582 assert( pOp->p4.pVtab!=0 );
83390 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
83392 sqlite3VdbeAddOp4(v, OP_VUpdate, 1, pTab->nCol+2, regIns, pVTab, P4_VTAB);
94177 const char *pVTab = (const char*)sqlite3GetVTable(db, pTab);
94222 pVTab, P4_VTAB);
94670 SQLITE_PRIVATE void sqlite3VtabLock(VTable *pVTab){
94671 pVTab->nRef++;
94681 VTable *pVtab;
94683 for(pVtab=pTab->pVTable; pVtab && pVtab->db!=db; pVtab=pVtab->pNext);
94684 return pVtab;
94691 SQLITE_PRIVATE void sqlite3VtabUnlock(VTable *pVTab){
94692 sqlite3 *db = pVTab->db;
94695 assert( pVTab->nRef>0 );
94698 pVTab->nRef--;
94699 if( pVTab->nRef==0 ){
94700 sqlite3_vtab *p = pVTab->pVtab;
94704 sqlite3DbFree(db, pVTab);
95032 assert( !db->pVTab );
95034 db->pVTab = pTab;
95037 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr);
95048 }else if( ALWAYS(pVTable->pVtab) ){
95051 pVTable->pVtab->pModule = pMod->pModule;
95053 if( db->pVTab ){
95101 db->pVTab = 0;
95144 ** Add the virtual table pVTab to the array sqlite3.aVTrans[].
95146 static int addToVTrans(sqlite3 *db, VTable *pVTab){
95161 /* Add pVtab to the end of sqlite3.aVTrans */
95162 db->aVTrans[db->nVTrans++] = pVTab;
95163 sqlite3VtabLock(pVTab);
95221 pTab = db->pVTab;
95249 db->pVTab = 0;
95286 rc = p->pMod->pModule->xDestroy(p->pVtab);
95291 p->pVtab = 0;
95312 VTable *pVTab = db->aVTrans[i];
95313 sqlite3_vtab *p = pVTab->pVtab;
95319 sqlite3VtabUnlock(pVTab);
95343 sqlite3_vtab *pVtab = aVTrans[i]->pVtab;
95344 if( pVtab && (x = pVtab->pModule->xSync)!=0 ){
95345 rc = x(pVtab);
95347 *pzErrmsg = sqlite3DbStrDup(db, pVtab->zErrMsg);
95348 sqlite3_free(pVtab->zErrMsg);
95374 ** If the virtual table pVtab supports the transaction interface
95381 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){
95393 if( !pVTab ){
95396 pModule = pVTab->pVtab->pModule;
95402 /* If pVtab is already in the aVTrans array, return early */
95404 if( db->aVTrans[i]==pVTab ){
95410 rc = pModule->xBegin(pVTab->pVtab);
95412 rc = addToVTrans(db, pVTab);
95438 sqlite3_vtab *pVtab;
95454 pVtab = sqlite3GetVTable(db, pTab)->pVtab;
95455 assert( pVtab!=0 );
95456 assert( pVtab->pModule!=0 );
95457 pMod = (sqlite3_module *)pVtab->pModule;
95468 rc = pMod->xFindFunction(pVtab, nArg, zLowerName, &xFunc, &pArg);
97532 sqlite3_vtab *pVtab = sqlite3GetVTable(pParse->db, pTab)->pVtab;
97538 rc = pVtab->pModule->xBestIndex(pVtab, p);
97544 }else if( !pVtab->zErrMsg ){
97547 sqlite3ErrorMsg(pParse, "%s", pVtab->zErrMsg);
97550 sqlite3_free(pVtab->zErrMsg);
97551 pVtab->zErrMsg = 0;
99958 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
99960 sqlite3VdbeAddOp4(v, OP_VOpen, iCur, 0, 0, pVTab, P4_VTAB);
108799 static int fts3DisconnectMethod(sqlite3_vtab *pVtab){
108800 Fts3Table *p = (Fts3Table *)pVtab;
108849 static int fts3DestroyMethod(sqlite3_vtab *pVtab){
108851 Fts3Table *p = (Fts3Table *)pVtab;
108865 return (rc==SQLITE_OK ? fts3DisconnectMethod(pVtab) : rc);
109252 static int fts3BestIndexMethod(sqlite3_vtab *pVTab, sqlite3_index_info *pInfo){
109253 Fts3Table *p = (Fts3Table *)pVTab;
109305 static int fts3OpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
109308 UNUSED_PARAMETER(pVTab);
109328 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
110358 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
110588 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
111240 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
111347 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
111380 sqlite3_vtab *pVtab, /* Virtual table handle */
111385 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
111392 static int fts3SyncMethod(sqlite3_vtab *pVtab){
111393 int rc = sqlite3Fts3PendingTermsFlush((Fts3Table *)pVtab);
111394 sqlite3Fts3SegmentsClose((Fts3Table *)pVtab);
111401 static int fts3BeginMethod(sqlite3_vtab *pVtab){
111402 UNUSED_PARAMETER(pVtab);
111403 assert( ((Fts3Table *)pVtab)->nPendingData==0 );
111412 static int fts3CommitMethod(sqlite3_vtab *pVtab){
111413 UNUSED_PARAMETER(pVtab);
111414 assert( ((Fts3Table *)pVtab)->nPendingData==0 );
111422 static int fts3RollbackMethod(sqlite3_vtab *pVtab){
111423 sqlite3Fts3PendingTermsClear((Fts3Table *)pVtab);
111618 p = (Fts3Table *)pCursor->base.pVtab;
111660 sqlite3_vtab *pVtab, /* Virtual table handle */
111677 UNUSED_PARAMETER(pVtab);
111696 sqlite3_vtab *pVtab, /* Virtual table handle */
111699 Fts3Table *p = (Fts3Table *)pVtab;
115631 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
117274 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
117349 sqlite3_vtab *pVtab, /* FTS3 vtab object */
117354 Fts3Table *p = (Fts3Table *)pVtab;
118124 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
118602 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
118700 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
118772 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
118913 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
119050 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
119852 static int rtreeDisconnect(sqlite3_vtab *pVtab){
119853 rtreeRelease((Rtree *)pVtab);
119860 static int rtreeDestroy(sqlite3_vtab *pVtab){
119861 Rtree *pRtree = (Rtree *)pVtab;
119887 static int rtreeOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
119894 pCsr->base.pVtab = pVTab;
119925 Rtree *pRtree = (Rtree *)(cur->pVtab);
120170 Rtree *pRtree = (Rtree *)(pVtabCursor->pVtab);
120215 Rtree *pRtree = (Rtree *)pVtabCursor->pVtab;
120228 Rtree *pRtree = (Rtree *)cur->pVtab;
120323 Rtree *pRtree = (Rtree *)pVtabCursor->pVtab;
121746 sqlite3_vtab *pVtab,
121751 Rtree *pRtree = (Rtree *)pVtab;
121910 static int rtreeRename(sqlite3_vtab *pVtab, const char *zNewName){
121911 Rtree *pRtree = (Rtree *)pVtab;