Skip to content

Pragmas

The application can interact with the Graft SQLite extension using the following pragma statements.

Report the status of the current Volume and the current connection’s Snapshot. Note that different SQLite connections to the same Graft Volume can concurrently access different snapshots via read transactions.

Returns a compressed description of the current connections Snapshot.

Reports the version and cache status of every page accessible by the current connection’s Snapshot.

Turn background sync on or off.

Reveal the most recent 16 errors and warnings encountered during background sync. This pragma pops errors out of a ring buffer, so calling it repeatedly will only report errors and warnings since the last call.

This pragma drops all local changes and forcibly resets to the latest server Snapshot. Make sure you are ok with loosing local changes permanently when running this pragma.

This pragma prints out Graft’s version and commit hash which can be useful for debugging and support.