Files
dealplustech/dealplustech-astro/node_modules/@libsql/hrana-client/lib-esm/stmt.d.ts
Kunthawat Greethong 6402d885f9 Complete Astro migration - PDPA compliant website
- Migrated all pages from Next.js to Astro
- Added PDPA-compliant Privacy Policy (Thai)
- Added PDPA-compliant Terms & Conditions (Thai)
- Added Cookie Policy with disclosure (Thai)
- Implemented cookie consent banner (client-side)
- Integrated Umami Analytics placeholder
- Blog system with 3 posts
- Optimized Docker configuration for production
- Static site build (184KB, 11 pages)
- Ready for Easypanel deployment

Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
2026-03-09 18:28:01 +07:00

33 lines
1.6 KiB
TypeScript

import type * as proto from "./shared/proto.js";
import type { InSql, SqlOwner } from "./sql.js";
import type { InValue } from "./value.js";
/** A statement that you can send to the database. Statements are represented by the {@link Stmt} class, but
* as a shorthand, you can specify an SQL text without arguments, or a tuple with the SQL text and positional
* or named arguments.
*/
export type InStmt = Stmt | InSql | [InSql, InStmtArgs];
/** Arguments for a statement. Either an array that is bound to parameters by position, or an object with
* values that are bound to parameters by name. */
export type InStmtArgs = Array<InValue> | Record<string, InValue>;
/** A statement that can be evaluated by the database. Besides the SQL text, it also contains the positional
* and named arguments. */
export declare class Stmt {
/** The SQL statement text. */
sql: InSql;
/** @private */
_args: Array<proto.Value>;
/** @private */
_namedArgs: Map<string, proto.Value>;
/** Initialize the statement with given SQL text. */
constructor(sql: InSql);
/** Binds positional parameters from the given `values`. All previous positional bindings are cleared. */
bindIndexes(values: Iterable<InValue>): this;
/** Binds a parameter by a 1-based index. */
bindIndex(index: number, value: InValue): this;
/** Binds a parameter by name. */
bindName(name: string, value: InValue): this;
/** Clears all bindings. */
unbindAll(): this;
}
export declare function stmtToProto(sqlOwner: SqlOwner, stmt: InStmt, wantRows: boolean): proto.Stmt;