Documentation
¶
Overview ¶
Package driver implements a database/sql driver for tinySQL.
What: A minimal driver that exposes tinySQL via the standard database/sql interfaces. It supports in-memory databases (mem://) and file-backed persistence (file:path?options) with optional WAL and autosave. How: A small server wrapper manages a storage.DB and concurrency via reader and writer pools. Connections create snapshots for transactions (MVCC-light) and serialize writes through a WAL when configured. Placeholders (?) are bound by simple string substitution with proper literal escaping. Why: Integrating with database/sql enables familiar APIs, tooling, and portability while keeping the implementation small and self-contained.