| OLD | NEW |
| 1 /* | 1 /* |
| 2 ** 2010 February 1 | 2 ** 2010 February 1 |
| 3 ** | 3 ** |
| 4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
| 5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
| 6 ** | 6 ** |
| 7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
| 8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
| 9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
| 10 ** | 10 ** |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 # define sqlite3WalUndo(x,y,z) 0 | 37 # define sqlite3WalUndo(x,y,z) 0 |
| 38 # define sqlite3WalSavepoint(y,z) | 38 # define sqlite3WalSavepoint(y,z) |
| 39 # define sqlite3WalSavepointUndo(y,z) 0 | 39 # define sqlite3WalSavepointUndo(y,z) 0 |
| 40 # define sqlite3WalFrames(u,v,w,x,y,z) 0 | 40 # define sqlite3WalFrames(u,v,w,x,y,z) 0 |
| 41 # define sqlite3WalCheckpoint(r,s,t,u,v,w,x,y,z) 0 | 41 # define sqlite3WalCheckpoint(r,s,t,u,v,w,x,y,z) 0 |
| 42 # define sqlite3WalCallback(z) 0 | 42 # define sqlite3WalCallback(z) 0 |
| 43 # define sqlite3WalExclusiveMode(y,z) 0 | 43 # define sqlite3WalExclusiveMode(y,z) 0 |
| 44 # define sqlite3WalHeapMemory(z) 0 | 44 # define sqlite3WalHeapMemory(z) 0 |
| 45 # define sqlite3WalFramesize(z) 0 | 45 # define sqlite3WalFramesize(z) 0 |
| 46 # define sqlite3WalFindFrame(x,y,z) 0 | 46 # define sqlite3WalFindFrame(x,y,z) 0 |
| 47 # define sqlite3WalFile(x) 0 |
| 47 #else | 48 #else |
| 48 | 49 |
| 49 #define WAL_SAVEPOINT_NDATA 4 | 50 #define WAL_SAVEPOINT_NDATA 4 |
| 50 | 51 |
| 51 /* Connection to a write-ahead log (WAL) file. | 52 /* Connection to a write-ahead log (WAL) file. |
| 52 ** There is one object of this type for each pager. | 53 ** There is one object of this type for each pager. |
| 53 */ | 54 */ |
| 54 typedef struct Wal Wal; | 55 typedef struct Wal Wal; |
| 55 | 56 |
| 56 /* Open and close a connection to a write-ahead log. */ | 57 /* Open and close a connection to a write-ahead log. */ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 ** by the pager layer on the database file. | 120 ** by the pager layer on the database file. |
| 120 */ | 121 */ |
| 121 int sqlite3WalExclusiveMode(Wal *pWal, int op); | 122 int sqlite3WalExclusiveMode(Wal *pWal, int op); |
| 122 | 123 |
| 123 /* Return true if the argument is non-NULL and the WAL module is using | 124 /* Return true if the argument is non-NULL and the WAL module is using |
| 124 ** heap-memory for the wal-index. Otherwise, if the argument is NULL or the | 125 ** heap-memory for the wal-index. Otherwise, if the argument is NULL or the |
| 125 ** WAL module is using shared-memory, return false. | 126 ** WAL module is using shared-memory, return false. |
| 126 */ | 127 */ |
| 127 int sqlite3WalHeapMemory(Wal *pWal); | 128 int sqlite3WalHeapMemory(Wal *pWal); |
| 128 | 129 |
| 130 #ifdef SQLITE_ENABLE_SNAPSHOT |
| 131 int sqlite3WalSnapshotGet(Wal *pWal, sqlite3_snapshot **ppSnapshot); |
| 132 void sqlite3WalSnapshotOpen(Wal *pWal, sqlite3_snapshot *pSnapshot); |
| 133 #endif |
| 134 |
| 129 #ifdef SQLITE_ENABLE_ZIPVFS | 135 #ifdef SQLITE_ENABLE_ZIPVFS |
| 130 /* If the WAL file is not empty, return the number of bytes of content | 136 /* If the WAL file is not empty, return the number of bytes of content |
| 131 ** stored in each frame (i.e. the db page-size when the WAL was created). | 137 ** stored in each frame (i.e. the db page-size when the WAL was created). |
| 132 */ | 138 */ |
| 133 int sqlite3WalFramesize(Wal *pWal); | 139 int sqlite3WalFramesize(Wal *pWal); |
| 134 #endif | 140 #endif |
| 135 | 141 |
| 142 /* Return the sqlite3_file object for the WAL file */ |
| 143 sqlite3_file *sqlite3WalFile(Wal *pWal); |
| 144 |
| 136 #endif /* ifndef SQLITE_OMIT_WAL */ | 145 #endif /* ifndef SQLITE_OMIT_WAL */ |
| 137 #endif /* _WAL_H_ */ | 146 #endif /* _WAL_H_ */ |
| OLD | NEW |