Skip to content

Support sqlite3_file_control()  #999

Closed
@benbjohnson

Description

@benbjohnson

Hi @mattn, thanks for the great library. I use it all the time.

I'm using go-sqlite3 in my Litestream project for SQLite replication and I've been doing a hack to persist the WAL file across restarts where I just don't call Close() on the database. Definitely hacky but it works. However, I recently learned there's sqlite3_file_control() opcode called SQLITE_FCNTL_PERSIST_WAL that does the same thing.

Is there an existing way to execute sqlite3_file_control() in go-sqlite3? I didn't see one but I thought I'd ask.

I'm happy to add the functionality. Are you open to accepting a patch for it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions