Skip to content

Commit

Permalink
wal: add optional pointer to private methods data in struct Wal
Browse files Browse the repository at this point in the history
It will be useful for any state that custom WAL methods could
potentially have.
  • Loading branch information
psarna committed Dec 14, 2022
1 parent 929f9ba commit 486dd38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wal.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ struct Wal {
WalIndexHdr *pSnapshot; /* Start transaction here if not NULL */
sqlite3 *db;
libsql_wal_methods *pMethods; /* Virtual methods for interacting with WAL */;
void *pMethodsData; /* Optional context for private use of libsql_wal_methods */
};

#endif /* SQLITE_WAL_H */

0 comments on commit 486dd38

Please sign in to comment.