Documentation
¶
Overview ¶
Package sqlite is the SQLite record source for `ds:table` (docs/SPEC.md §9.5, §37.1): rows of a table become records with one field per column. Filtering, sorting, projection, and limits are applied by the root records package, so every source answers the same query language; the database only supplies rows.
The driver is modernc.org/sqlite, pure Go, so a `ds` binary with this source needs no C toolchain.
Index ¶
Constants ¶
const DriverName = "sqlite"
DriverName is the database/sql driver this package registers.
Variables ¶
var ErrBadTable = errors.New("sqlite records: table must be an identifier")
ErrBadTable rejects a table name that is not a plain identifier. Table names cannot be bound as parameters, so they are validated instead of quoted; a `ds:table kind=` in a doc is user input.
var ErrNoTable = errors.New("sqlite records: no table: set kind= on the directive or table in [records]")
ErrNoTable is returned when neither kind= nor a default table names one.
Functions ¶
Types ¶
This section is empty.