UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

27 lines (26 loc) 611 B
/** * @module Utilities */ /** * * IMPORT_PATH: `"@daiso-tech/core/utilities"` * @group Contracts */ export type ISqliteStatement = { readonly reader: boolean; all(parameters: ReadonlyArray<unknown>): unknown[]; run(parameters: ReadonlyArray<unknown>): { changes: number | bigint; lastInsertRowid: number | bigint; }; iterate(parameters: ReadonlyArray<unknown>): IterableIterator<unknown>; }; /** * * IMPORT_PATH: `"@daiso-tech/core/utilities"` * @group Contracts */ export type ISqliteDatabase = { close(): void; prepare(sql: string): ISqliteStatement; };