Skip to main content

Module sqlite

Module sqlite 

Source
Expand description

SQLite primitives (sqlite.mjs): readers open read-only — the contract every supercode reader keeps over a live store — and writers create fresh files. Rows are read as JSON objects so the codecs see the same shapes the Node package saw.

Enums§

Param
A parameter value for write_table.

Functions§

read_rows
Every row of sql as a JSON object keyed by column name; None when the file does not exist.
table_exists
Whether table exists in the store at path (false when the file does not exist).
write_table
Create (ddl) and fill (insert, one parameter list per row) a store in one transaction.