storage.SqlValue
A value SQLite stores and binds: booleans cross as 1 and 0.
Utilização
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().Declaração do tipo
export type SqlValue = string | number | null;Tipo
string | numberGerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.