Skip to main content

require_snapshot_initialized

Function require_snapshot_initialized 

Source
pub fn require_snapshot_initialized<E>(
    connection: &Connection,
    schema: SchemaVersion,
) -> Result<(), InitializationError<E>>
Expand description

Require the exact schema marker on an inert SQLite snapshot.

Unlike require_file_initialized, this does not inspect journal mode, configure the connection, or acquire the initialization lock. Callers must first isolate the source from SQLite’s durable bookkeeping (for example, by opening an immutable=1 URI or a disposable copy). Such snapshots may not expose the source’s live journal mode, so the owned marker is their authoritative readiness boundary.