You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a use case where it would be useful to be able to run file control operations (i.e. sqlite3_file_control()). Our primary use will actually be to set PERSIST_WAL, also mentioned by another user in #1029. More specifically, we're looking manage the database in such a way that it is safe to use with litestream, which as discussed in benbjohnson/litestream#510 relies on the wal being persisted.
We understand that we could achieve this with a custom build, but this can also be set at runtime using sqlite3_file_control(), which of course would be a more convenient alternative. There's some prior art to setting file control operations at runtime, such as the sqlite3 CLI's .filectrl command and the go driver's SetFileControlInt().
Would the project be open to a contribution that exposes this interface through a method on Database?
The text was updated successfully, but these errors were encountered:
better-sqlite3 is designed to be immune to segfaults and undefined behavior, regardless of what the user does. But perhaps this could be enabled for unsafe mode.
We have a use case where it would be useful to be able to run file control operations (i.e.
sqlite3_file_control()
). Our primary use will actually be to setPERSIST_WAL
, also mentioned by another user in #1029. More specifically, we're looking manage the database in such a way that it is safe to use with litestream, which as discussed in benbjohnson/litestream#510 relies on the wal being persisted.We understand that we could achieve this with a custom build, but this can also be set at runtime using
sqlite3_file_control()
, which of course would be a more convenient alternative. There's some prior art to setting file control operations at runtime, such as the sqlite3 CLI's.filectrl
command and the go driver'sSetFileControlInt()
.Would the project be open to a contribution that exposes this interface through a method on
Database
?The text was updated successfully, but these errors were encountered: