Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow manual checkpointing #502

Open
northeastprince opened this issue Feb 3, 2024 · 2 comments
Open

Allow manual checkpointing #502

northeastprince opened this issue Feb 3, 2024 · 2 comments
Labels

Comments

@northeastprince
Copy link

It'd be nice if there was a way to manually checkpoint the WAL file if you need everything in one file at a certain moment.

@flavorjones
Copy link
Member

@northeastprince Thanks for asking about this. Can you share a bit more information about your use case? Adding a wrapper for sqlite3_wal_checkpoint_v2() wouldn't be hard, but I do want to know what it's being used before committing to adding it to the gem.

@flavorjones
Copy link
Member

You may be able to use the pragma for this: https://www.sqlite.org/pragma.html#pragma_wal_checkpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants