Home
last modified time | relevance | path

Searched refs:Pgno (Results 1 – 19 of 19) sorted by relevance

/sqlite-3.40.0/src/
H A Dpager.h33 typedef u32 Pgno; typedef
53 #define PAGER_SJ_PGNO_COMPUTED(x) ((Pgno)((PENDING_BYTE/((x)->pageSize))+1))
132 Pgno sqlite3PagerMaxPageCount(Pager*, Pgno);
147 int sqlite3PagerGet(Pager *pPager, Pgno pgno, DbPage **ppPage, int clrFlag);
148 DbPage *sqlite3PagerLookup(Pager *pPager, Pgno pgno);
157 int sqlite3PagerMovepage(Pager*,DbPage*,Pgno,int);
198 int sqlite3PagerDirectReadOk(Pager *pPager, Pgno pgno);
224 void sqlite3PagerTruncateImage(Pager*,Pgno);
226 void sqlite3PagerRekey(DbPage*, Pgno, u16);
230 Pgno sqlite3PagerPagenumber(DbPage*);
H A Dbackup.c27 Pgno iNext; /* Page number of the next source page to copy */
36 Pgno nRemaining; /* Number of pages left to copy */
37 Pgno nPagecount; /* Total number of pages to copy */
228 Pgno iSrcPg, /* Source database page to backup */ in backupOnePage()
259 Pgno iDest = (Pgno)(iOff/nDestPgsz)+1; in backupOnePage()
393 for(ii=0; (nPage<0 || ii<nPage) && p->iNext<=(Pgno)nSrcPage && !rc; ii++){ in sqlite3_backup_step()
394 const Pgno iSrcPg = p->iNext; /* Source page number */ in sqlite3_backup_step()
408 if( p->iNext>(Pgno)nSrcPage ){ in sqlite3_backup_step()
475 Pgno iPg; in sqlite3_backup_step()
516 const Pgno iSrcPg = (Pgno)((iOff/pgszSrc)+1); in sqlite3_backup_step()
[all …]
H A Dpcache.h32 Pgno pgno; /* Page number for this page */
94 sqlite3_pcache_page *sqlite3PcacheFetch(PCache*, Pgno, int createFlag);
95 int sqlite3PcacheFetchStress(PCache*, Pgno, sqlite3_pcache_page**);
96 PgHdr *sqlite3PcacheFetchFinish(PCache*, Pgno, sqlite3_pcache_page *pPage);
106 void sqlite3PcacheMove(PgHdr*, Pgno);
109 void sqlite3PcacheTruncate(PCache*, Pgno x);
H A Dbtree.c186 Pgno iTab = 0; in hasSharedCacheTableLock()
971 static Pgno ptrmapPageno(BtShared *pBt, Pgno pgno){ in ptrmapPageno()
3045 Pgno sqlite3BtreeMaxPageCount(Btree *p, Pgno mxPage){ in sqlite3BtreeMaxPageCount()
3046 Pgno n; in sqlite3BtreeMaxPageCount()
3971 static Pgno finalDbSize(BtShared *pBt, Pgno nOrig, Pgno nFree){ in finalDbSize()
5011 Pgno *aNew = (Pgno*)sqlite3Realloc( in accessPayload()
5429 Pgno pgno; in moveToLeftmost()
5454 Pgno pgno; in moveToRightmost()
7727 Pgno n;
9531 Pgno n; in sqlite3BtreeDelete()
[all …]
H A DbtreeInt.h277 Pgno pgno; /* Page number for this page */
315 Pgno iTable; /* Root page of table */
533 Pgno *aOverflow; /* Cache of overflow page locations */
543 Pgno pgnoRoot; /* The root page of this tree */
603 #define PENDING_BYTE_PAGE(pBt) ((Pgno)((PENDING_BYTE/((pBt)->pageSize))+1))
698 Pgno nPage; /* Number of pages in the database */
703 Pgno v1; /* Value for first %u substitution in zPfx */
H A Dbtree.h74 Pgno sqlite3BtreeMaxPageCount(Btree*,Pgno);
75 Pgno sqlite3BtreeLastPage(Btree*);
87 int sqlite3BtreeCreateTable(Btree*, Pgno*, int flags);
236 Pgno iTable, /* Index of root page */
332 char *sqlite3BtreeIntegrityCheck(sqlite3*,Btree*,Pgno*aRoot,int nRoot,int,int*);
H A Dpager.c1040 static int getPageMMap(Pager*,Pgno,DbPage**,int);
1071 Pgno pgno = pPg->pgno; in subjRequiresPage()
3260 pPager->mxPgno = (Pgno)nPage; in pagerPagecount()
3783 Pgno sqlite3PagerMaxPageCount(Pager *pPager, Pgno mxPage){ in sqlite3PagerMaxPageCount()
3927 Pgno pgno = pPg->pgno; in assertTruncateConstraintCb()
4172 Pgno sqlite3PagerPagenumber(DbPage *pPg){ in sqlite3PagerPagenumber()
4394 Pgno pgno = pList->pgno; in pager_write_pagelist()
5484 Pgno pgno, /* Page number to fetch */ in getPageNormal()
5586 Pgno pgno, /* Page number to fetch */ in getPageMMap()
5655 Pgno pgno, /* Page number to fetch */ in getPageError()
[all …]
H A Dwal.h75 int sqlite3WalFindFrame(Wal *, Pgno, u32 *);
79 Pgno sqlite3WalDbsize(Wal *pWal);
86 int sqlite3WalUndo(Wal *pWal, int (*xUndo)(void *, Pgno), void *pUndoCtx);
97 int sqlite3WalFrames(Wal *pWal, int, PgHdr *, Pgno, int, int);
H A Dpcache.c392 Pgno pgno, /* Page number to obtain */ in sqlite3PcacheFetch()
434 Pgno pgno, /* Page number to obtain */ in sqlite3PcacheFetchStress()
490 Pgno pgno, /* Page number obtained */ in pcacheFetchFinishWithInit()
516 Pgno pgno, /* Page number obtained */ in sqlite3PcacheFetchFinish()
650 void sqlite3PcacheMove(PgHdr *p, Pgno newPgno){ in sqlite3PcacheMove()
682 void sqlite3PcacheTruncate(PCache *pCache, Pgno pgno){ in sqlite3PcacheTruncate()
H A Dvdbevtab.c209 Pgno iRoot = (Pgno)pOp->p2; in bytecodevtabColumn()
H A Ddbpage.c313 Pgno pgno; in dbpageUpdate()
332 if( (Pgno)sqlite3_value_int(argv[1])!=pgno ){ in dbpageUpdate()
H A DsqliteInt.h1576 Pgno newTnum; /* Rootpage of table being initialized */
2280 Pgno tnum; /* Root BTree page for this table */
2619 Pgno tnum; /* DB Page containing root of this index */
3960 Pgno mxPage; /* Maximum page number. 0 for no limit. */
4327 int sqlite3CorruptPgnoError(int,Pgno);
5071 void sqlite3RootPageMoved(sqlite3*, int, Pgno, Pgno);
5155 void sqlite3BackupUpdate(sqlite3_backup *, Pgno, const u8 *);
5193 void sqlite3TableLock(Parse *, int, Pgno, u8, const char *);
H A Dbuild.c34 Pgno iTab; /* The root page of the table to be locked */
52 Pgno iTab, /* Root page number of the table to be locked */ in lockTable()
88 Pgno iTab, /* Root page number of the table to be locked */ in sqlite3TableLock()
3218 void sqlite3RootPageMoved(sqlite3 *db, int iDb, Pgno iFrom, Pgno iTo){ in sqlite3RootPageMoved()
3295 Pgno iTab = pTab->tnum; in destroyTable()
3296 Pgno iDestroyed = 0; in destroyTable()
3300 Pgno iLargest = 0; in destroyTable()
3306 Pgno iIdx = pIdx->tnum; in destroyTable()
3740 Pgno tnum; /* Root page of index */ in sqlite3RefillIndex()
3761 tnum = (Pgno)memRootPage; in sqlite3RefillIndex()
[all …]
H A Dwal.c1660 Pgno dbpage; in walMerge()
3137 Pgno pgno, /* Database page number to read data for */ in sqlite3WalFindFrame()
3259 Pgno sqlite3WalDbsize(Wal *pWal){ in sqlite3WalDbsize()
3350 int sqlite3WalUndo(Wal *pWal, int (*xUndo)(void *, Pgno), void *pUndoCtx){ in sqlite3WalUndo() argument
3353 Pgno iMax = pWal->hdr.mxFrame; in sqlite3WalUndo()
3354 Pgno iFrame; in sqlite3WalUndo()
3608 Pgno nTruncate, /* Database size after this commit */ in sqlite3WalFrames()
H A DvdbeInt.h119 Pgno pgnoRoot; /* Root page of the open btree cursor */
H A Dvdbe.c6744 Pgno pgno; in sqlite3VdbeExec()
6935 Pgno *aRoot; /* Array of rootpage numbers for tables to be checked */ in sqlite3VdbeExec()
6944 assert( aRoot[0]==(Pgno)nRoot ); in sqlite3VdbeExec()
H A Dinsert.c238 Pgno tnum = pOp->p2; in readsTable()
H A Dmain.c3736 int sqlite3CorruptPgnoError(int lineno, Pgno pgno){ in sqlite3CorruptPgnoError()
H A Dselect.c7732 Pgno iRoot = pTab->tnum; /* Root page of scanned b-tree */ in sqlite3Select()