storage.SqlStatement
One SQL statement and the values bound to its placeholders, for running raw SQL.
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 SqlStatement = { sql: string; params: SqlValue[] };Members 2
| Name | Type | Required | Description |
|---|---|---|---|
sql | string | Yes | — |
params | SqlValue[] | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.