Expand description
Toasty driver for Turso, an async-native, SQLite-compatible database engine.
Speaks the same SQL dialect as the SQLite driver
but uses the async Turso client. Supports file-backed and in-memory
databases, an optional concurrent-writes mode that uses Turso’s MVCC
journal so transactions don’t serialize on a single writer, and per-driver
toggles for Turso’s experimental features (experimental_encryption,
experimental_attach, etc.) that mirror turso::Builder.
§Examples
use toasty_driver_turso::Turso;
// In-memory database
let driver = Turso::in_memory();
// File-backed database
let driver = Turso::file("path/to/db");
// Allow transactions to run concurrently instead of serializing writers
let driver = Turso::file("path/to/db").concurrent_writes();Structs§
- Connection
- An open connection to a Turso database.
- Turso
- A Turso
Driverthat opens connections to a file or in-memory database.
Type Aliases§
- Encryption
Opts - Encryption configuration for Turso. Re-exported from the upstream
tursocrate so callers don’t need a direct dependency on it.