Clases |
struct | PgHdr |
struct | Pager |
struct | PageRecord |
'defines' |
#define | SET_PAGER(X) |
#define | CLR_PAGER(X) |
#define | TRACE1(X) |
#define | TRACE2(X, Y) |
#define | TRACE3(X, Y, Z) |
#define | SQLITE_UNLOCK 0 |
#define | SQLITE_READLOCK 1 |
#define | SQLITE_WRITELOCK 2 |
#define | CODEC(P, D, N, X) |
#define | PGHDR_TO_DATA(P) ((void*)(&(P)[1])) |
#define | DATA_TO_PGHDR(D) (&((PgHdr*)(D))[-1]) |
#define | PGHDR_TO_EXTRA(P) ((void*)&((char*)(&(P)[1]))[SQLITE_PAGE_SIZE]) |
#define | N_PG_HASH 2048 |
#define | pager_hash(PN) ((PN)&(N_PG_HASH-1)) |
#define | PAGER_ERR_FULL 0x01 |
#define | PAGER_ERR_MEM 0x02 |
#define | PAGER_ERR_LOCK 0x04 |
#define | PAGER_ERR_CORRUPT 0x08 |
#define | PAGER_ERR_DISK 0x10 |
#define | JOURNAL_FORMAT_1 1 |
#define | JOURNAL_FORMAT_2 2 |
#define | JOURNAL_FORMAT_3 3 |
#define | journal_format 3 |
#define | JOURNAL_HDR_SZ(X) (sizeof(aJournalMagic1) + sizeof(Pgno) + ((X)>=3)*2*sizeof(u32)) |
#define | JOURNAL_PG_SZ(X) (SQLITE_PAGE_SIZE + sizeof(Pgno) + ((X)>=3)*sizeof(u32)) |
#define | REFINFO(X) |
#define | page_ref(P) ((P)->nRef==0?_page_ref(P):(void)(P)->nRef++) |
'typedefs' |
typedef struct PgHdr | PgHdr |
typedef struct PageRecord | PageRecord |
Funciones |
void | sqlitepager_set_cachesize (Pager *pPager, int mxPage) |
void | sqlitepager_set_safety_level (Pager *pPager, int level) |
int | sqlitepager_open (Pager **ppPager, const char *zFilename, int mxPage, int nExtra, int useJournal) |
void | sqlitepager_set_destructor (Pager *pPager, void(*xDesc)(void *)) |
int | sqlitepager_pagecount (Pager *pPager) |
int | sqlitepager_truncate (Pager *pPager, Pgno nPage) |
int | sqlitepager_close (Pager *pPager) |
Pgno | sqlitepager_pagenumber (void *pData) |
int | sqlitepager_ref (void *pData) |
int | sqlitepager_get (Pager *pPager, Pgno pgno, void **ppPage) |
void * | sqlitepager_lookup (Pager *pPager, Pgno pgno) |
int | sqlitepager_unref (void *pData) |
int | sqlitepager_begin (void *pData) |
int | sqlitepager_write (void *pData) |
int | sqlitepager_iswriteable (void *pData) |
int | sqlitepager_overwrite (Pager *pPager, Pgno pgno, void *pData) |
void | sqlitepager_dont_write (Pager *pPager, Pgno pgno) |
void | sqlitepager_dont_rollback (void *pData) |
int | sqlitepager_commit (Pager *pPager) |
int | sqlitepager_rollback (Pager *pPager) |
int | sqlitepager_isreadonly (Pager *pPager) |
int * | sqlitepager_stats (Pager *pPager) |
int | sqlitepager_ckpt_begin (Pager *pPager) |
int | sqlitepager_ckpt_commit (Pager *pPager) |
int | sqlitepager_ckpt_rollback (Pager *pPager) |
const char * | sqlitepager_filename (Pager *pPager) |
void | sqlitepager_set_codec (Pager *pPager, void(*xCodec)(void *, void *, Pgno, int), void *pCodecArg) |