Skip to content

Expose an interface to sqlite3_file_control #128505

Open

Description

@hashbrowncipher

Feature or enhancement

Proposal:

sqlite3_file_control can affect the semantics of a sqlite3 database, but is not exposed by the sqlite.Connection class. In particular, I would like to use the SQLITE_FCNTL_PERSIST_WAL opcode, which ensures that callers can open a WAL-mode database on a read-only mount even when the writers have closed the DB.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. jbosboom commented on Apr 25, 2026

    @jbosboom
    Contributor

    I'd like to use the SQLITE_FCNTL_DATA_VERSION opcode. This is SQLite's only interface that detects changes on both the current connection and other connections. It isn't exposed as an SQL-level pragma.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions