• Home
  • Raw
  • Download

Lines Matching refs:pMod

17440   Module *pMod;             /* Pointer to module implementation */  member
110516 Module *pMod = (Module*)sqlite3HashFind(&db->aModule, zName);
110517 if( pMod==0 && sqlite3_strnicmp(zName, "pragma_", 7)==0 ){
110518 pMod = sqlite3PragmaVtabRegister(db, zName);
110520 if( pMod && sqlite3VtabEponymousTableInit(pParse, pMod) ){
110521 return pMod->pEpoTab;
112291 Module *pMod; /* Module for the virtual table */
112297 pMod = (Module*)sqlite3HashFind(&db->aModule, pTab->azModuleArg[0]);
112298 if( pMod==0 ) return 0;
112299 if( pMod->pModule->iVersion<3 ) return 0;
112300 if( pMod->pModule->xShadowName==0 ) return 0;
112301 return pMod->pModule->xShadowName(zName+nName+1);
113198 zArg2 = sqlite3GetVTable(db, pTab)->pMod->zName;
115827 return sqlite3GetVTable(pParse->db, pTab)->pMod->pModule->xUpdate==0;
126755 Module *pMod = (Module*)sqliteHashData(j);
126756 sqlite3VdbeMultiLoad(v, 1, "s", pMod->zName);
138963 Module *pMod;
138968 pMod = 0;
138971 pMod = (Module *)sqlite3Malloc(sizeof(Module) + nName + 1);
138972 if( pMod==0 ){
138976 zCopy = (char *)(&pMod[1]);
138978 pMod->zName = zCopy;
138979 pMod->pModule = pModule;
138980 pMod->pAux = pAux;
138981 pMod->xDestroy = xDestroy;
138982 pMod->pEpoTab = 0;
138983 pMod->nRefModule = 1;
138985 pDel = (Module *)sqlite3HashInsert(&db->aModule,zCopy,(void*)pMod);
138987 if( pDel==pMod ){
138990 pMod = 0;
138996 return pMod;
139063 Module *pMod = (Module*)sqliteHashData(pThis);
139067 for(ii=0; azNames[ii]!=0 && strcmp(azNames[ii],pMod->zName)!=0; ii++){}
139070 createModule(db, pMod->zName, 0, 0, 0);
139079 SQLITE_PRIVATE void sqlite3VtabModuleUnref(sqlite3 *db, Module *pMod){
139080 assert( pMod->nRefModule>0 );
139081 pMod->nRefModule--;
139082 if( pMod->nRefModule==0 ){
139083 if( pMod->xDestroy ){
139084 pMod->xDestroy(pMod->pAux);
139086 assert( pMod->pEpoTab==0 );
139087 sqlite3DbFree(db, pMod);
139130 sqlite3VtabModuleUnref(pVTab->db, pVTab->pMod);
139470 Module *pMod,
139506 pVTable->pMod = pMod;
139520 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr);
139537 pVTable->pVtab->pModule = pMod->pModule;
139538 pMod->nRefModule++;
139602 Module *pMod;
139612 pMod = (Module*)sqlite3HashFind(&db->aModule, zMod);
139614 if( !pMod ){
139620 rc = vtabCallConstructor(db, pTab, pMod, pMod->pModule->xConnect, &zErr);
139674 Module *pMod;
139682 pMod = (Module*)sqlite3HashFind(&db->aModule, zMod);
139688 if( pMod==0 || pMod->pModule->xCreate==0 || pMod->pModule->xDestroy==0 ){
139692 rc = vtabCallConstructor(db, pTab, pMod, pMod->pModule->xCreate, pzErr);
139755 && pCtx->pVTable->pMod->pModule->xUpdate!=0
139812 xDestroy = p->pMod->pModule->xDestroy;
139813 if( xDestroy==0 ) xDestroy = p->pMod->pModule->xDisconnect;
139979 const sqlite3_module *pMod = pVTab->pMod->pModule;
139980 if( pVTab->pVtab && pMod->iVersion>=2 ){
139985 xMethod = pMod->xSavepoint;
139989 xMethod = pMod->xRollbackTo;
139992 xMethod = pMod->xRelease;
140026 sqlite3_module *pMod;
140041 pMod = (sqlite3_module *)pVtab->pModule;
140042 if( pMod->xFindFunction==0 ) return pDef;
140060 rc = pMod->xFindFunction(pVtab, nArg, pDef->zName, &xSFunc, &pArg);
140120 SQLITE_PRIVATE int sqlite3VtabEponymousTableInit(Parse *pParse, Module *pMod){
140121 const sqlite3_module *pModule = pMod->pModule;
140126 if( pMod->pEpoTab ) return 1;
140130 pTab->zName = sqlite3DbStrDup(db, pMod->zName);
140135 pMod->pEpoTab = pTab;
140143 rc = vtabCallConstructor(db, pTab, pMod, pModule->xConnect, &zErr);
140147 sqlite3VtabEponymousTableClear(db, pMod);
140157 SQLITE_PRIVATE void sqlite3VtabEponymousTableClear(sqlite3 *db, Module *pMod){
140158 Table *pTab = pMod->pEpoTab;
140165 pMod->pEpoTab = 0;
143742 sqlite3_module *pMod;
143748 pMod = (sqlite3_module *)pVtab->pModule;
143749 if( pMod->xFindFunction!=0 ){
143750 i = pMod->xFindFunction(pVtab,2, pExpr->u.zToken, &xNotUsed, &pNotUsed);
161461 Module *pMod = (Module *)sqliteHashData(p);
161462 if( pMod->pEpoTab ){
161463 sqlite3VtabDisconnect(db, pMod->pEpoTab);
161641 Module *pMod = (Module *)sqliteHashData(i);
161642 sqlite3VtabEponymousTableClear(db, pMod);
161643 sqlite3VtabModuleUnref(db, pMod);
175965 const sqlite3_tokenizer_module *pMod;
176077 const sqlite3_tokenizer_module *pMod = 0;
176096 rc = fts3tokQueryTokenizer((Fts3Hash*)pHash, zModule, &pMod, pzErr);
176099 assert( (rc==SQLITE_OK)==(pMod!=0) );
176102 rc = pMod->xCreate((nDequote>1 ? nDequote-1 : 0), azArg, &pTok);
176114 pTab->pMod = pMod;
176119 pMod->xDestroy(pTok);
176135 pTab->pMod->xDestroy(pTab->pTok);
176193 pTab->pMod->xClose(pCsr->pCsr);
176226 rc = pTab->pMod->xNext(pCsr->pCsr,
176265 rc = pTab->pMod->xOpen(pTab->pTok, pCsr->zInput, nByte, &pCsr->pCsr);
182836 sqlite3_tokenizer_module *pMod;
182838 pMod = (sqlite3_tokenizer_module *)pTab->pTokenizer->pModule;
182849 rc = pMod->xNext(pC, &ZDUMMY, &DUMMY1, &DUMMY2, &DUMMY3, &iCurrent);
182851 pMod->xClose(pC);
182890 sqlite3_tokenizer_module *pMod; /* Tokenizer module methods object */
182903 pMod = (sqlite3_tokenizer_module *)pTab->pTokenizer->pModule;
182927 rc = pMod->xNext(pC, &ZDUMMY, &DUMMY1, &iBegin, &iFin, &iCurrent);
182979 pMod->xClose(pC);
183744 sqlite3_tokenizer_module const *pMod = pTab->pTokenizer->pModule;
183815 rc = pMod->xNext(pC, &ZDUMMY, &NDUMMY, &iStart, &iEnd, &iCurrent);
183840 rc = pMod->xNext(pC, &ZDUMMY, &NDUMMY, &iStart, &iEnd, &iCurrent);
183857 pMod->xClose(pC);
224845 Fts5TokenizerModule *pMod = 0;
224848 pMod = pGlobal->pDfltTok;
224850 for(pMod=pGlobal->pTok; pMod; pMod=pMod->pNext){
224851 if( sqlite3_stricmp(zName, pMod->zName)==0 ) break;
224855 return pMod;
224869 Fts5TokenizerModule *pMod;
224871 pMod = fts5LocateTokenizer((Fts5Global*)pApi, zName);
224872 if( pMod ){
224873 *pTokenizer = pMod->x;
224874 *ppUserData = pMod->pUserData;
224891 Fts5TokenizerModule *pMod;
224894 pMod = fts5LocateTokenizer(pGlobal, nArg==0 ? 0 : azArg[0]);
224895 if( pMod==0 ){
224900 rc = pMod->x.xCreate(pMod->pUserData, &azArg[1], (nArg?nArg-1:0), ppTok);
224901 *ppTokApi = &pMod->x;