UNPKG

db0

Version:

Lightweight SQL Connector

12 lines (11 loc) 454 B
import type { Primitive, Statement, PreparedStatement } from "db0"; export declare abstract class BoundableStatement<T> implements Statement { _statement: T; constructor(rawStmt: T); bind(...params: Primitive[]): PreparedStatement; abstract all(...params: Primitive[]): Promise<unknown[]>; abstract run(...params: Primitive[]): Promise<{ success: boolean; }>; abstract get(...params: Primitive[]): Promise<unknown>; }