storage.SqlValue
A value SQLite stores and binds: booleans cross as 1 and 0.
Usage
Describe a parameterized statement for a SQL integration.
// Describe a parameterized statement for a SQL integration.
import type { storage } from 'kuito';
export function noteInsert(id: string, body: string): storage.SqlStatement {
const params: storage.SqlValue[] = [id, body];
return { sql: 'INSERT INTO notes (id, body) VALUES (?, ?)', params };
}
// These are data types, not a public raw-SQL executor. App writes use db.table().Type declaration
export type SqlValue = string | number | null;Type
string | numberGenerated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.