aboutsummaryrefslogtreecommitdiff
path: root/src/wal.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-01-08 02:27:01 +0000
committerdrh <drh@noemail.net>2016-01-08 02:27:01 +0000
commit21d61853e741bae5cc2d89c1ead99431b9e6454e (patch)
tree312b4a100af147d8ac3ae9c52408906dd89bd578 /src/wal.c
parentc9d6d1b67b4a3c140437f1a48045efab65357958 (diff)
downloadsqlite-21d61853e741bae5cc2d89c1ead99431b9e6454e.tar.gz
sqlite-21d61853e741bae5cc2d89c1ead99431b9e6454e.zip
Add the experimental SQLITE_FCNTL_JOURNAL_POINTER file control for obtaining
the sqlite3_file pointer associated with a rollback journal or WAL file. FossilOrigin-Name: a02ace9a746ff02fc1a5969bf13939b568624f93
Diffstat (limited to 'src/wal.c')
-rw-r--r--src/wal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wal.c b/src/wal.c
index 4238ea483..f38e24a96 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -3310,4 +3310,10 @@ int sqlite3WalFramesize(Wal *pWal){
}
#endif
+/* Return the sqlite3_file object for the WAL file
+*/
+sqlite3_file *sqlite3WalFile(Wal *pWal){
+ return pWal->pWalFd;
+}
+
#endif /* #ifndef SQLITE_OMIT_WAL */