Skip to content

Commit 486dd38

Browse files
committed
wal: add optional pointer to private methods data in struct Wal
It will be useful for any state that custom WAL methods could potentially have.
1 parent 929f9ba commit 486dd38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ struct Wal {
222222
WalIndexHdr *pSnapshot; /* Start transaction here if not NULL */
223223
sqlite3 *db;
224224
libsql_wal_methods *pMethods; /* Virtual methods for interacting with WAL */;
225+
void *pMethodsData; /* Optional context for private use of libsql_wal_methods */
225226
};
226227

227228
#endif /* SQLITE_WAL_H */

0 commit comments

Comments
 (0)