storage.SqlStatement
One SQL statement and the values bound to its placeholders, for running raw SQL.
Verwendung
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().Typdeklaration
export type SqlStatement = { sql: string; params: SqlValue[] };Mitglieder 2
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
sql | string | Ja | — |
params | SqlValue[] | Ja | — |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.