Skip to content

Add sqlite_dbpage extension build tag #1320

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hifi
Copy link

@hifi hifi commented Feb 25, 2025

Provides raw access to database pages. Useful for taking consistent live snapshots of WAL databases without causing write locks by reading out all of the pages and writing them either to a file or some external storage.

The sqlite3_rsync utility that is bundled with sqlite3 source is one way to use it to somewhat efficiently synchronize a remote database.

Fixes #1288

@mattn
Copy link
Owner

mattn commented Apr 1, 2025

Can you write a test?

@hifi hifi force-pushed the feature/opt-dbpage branch from 369a728 to ba67c76 Compare April 9, 2025 04:51
@hifi hifi force-pushed the feature/opt-dbpage branch from ba67c76 to 98169e3 Compare April 9, 2025 04:54
@hifi
Copy link
Author

hifi commented Apr 9, 2025

Added a test that makes a full copy of a database using sqlite_dbpage table and checks the copy is consistent and has the expected data.

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

Successfully merging this pull request may close these issues.

Build tag request: SQLITE_ENABLE_DBPAGE_VTAB
2 participants