Skip to content

Exposing file control operations #1101

@devinivy

Description

@devinivy

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions