Skip to main content

Module sqlite

Module sqlite 

Source
Expand description

SQLite initialization, WAL setup, and migration runner.

Functions§

init_in_memory
Create an in-memory SQLite connection with PRAGMAs applied. Useful for testing.
init_schema
Initialize a SQLite database with WAL mode, foreign keys, and a custom schema.
init_schema_with_migrations
Initialize a SQLite database with optional incremental migration support.

Type Aliases§

MigrationFn
Migration callback: given a connection and the current schema version, apply incremental migrations and return the new version.