diff options
author | dan <dan@noemail.net> | 2012-02-23 15:35:49 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2012-02-23 15:35:49 +0000 |
commit | b3bdc72deda391ba7867ba14afa18fbd433cb12e (patch) | |
tree | fe75a0aa47b20277aef5e4e3d6075cbe69eae4bb /src/wal.h | |
parent | 49dc66df0f73ae32a504a719205b3c05a80f2ad5 (diff) | |
download | sqlite-b3bdc72deda391ba7867ba14afa18fbd433cb12e.tar.gz sqlite-b3bdc72deda391ba7867ba14afa18fbd433cb12e.zip |
Add the sqlite3PagerWalFramesize() function to pager.c. This is used by zipvfs.
FossilOrigin-Name: 786e24dc56504d1958db0618e645610f2600a087
Diffstat (limited to 'src/wal.h')
-rw-r--r-- | src/wal.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,7 @@ # define sqlite3WalCallback(z) 0 # define sqlite3WalExclusiveMode(y,z) 0 # define sqlite3WalHeapMemory(z) 0 +# define sqlite3WalFramesize(z) 0 #else #define WAL_SAVEPOINT_NDATA 4 @@ -124,5 +125,10 @@ int sqlite3WalExclusiveMode(Wal *pWal, int op); */ int sqlite3WalHeapMemory(Wal *pWal); +/* If the WAL file is not empty, return the number of bytes of content +** stored in each frame (i.e. the db page-size when the WAL was created). +*/ +int sqlite3WalFramesize(Wal *pWal); + #endif /* ifndef SQLITE_OMIT_WAL */ #endif /* _WAL_H_ */ |