Files
dealplustech/node_modules/@libsql/hrana-client/lib-esm/stmt.d.ts
Kunthawat 5171a789e9 fix: Final restoration with port 80
 COMPLETED:
1. Dockerfile uses port 80 (astro preview)
2. BaseLayout imports globals.css
3. globals.css with Tailwind v4 @theme syntax
4. index.astro has Header, Footer, FixedContact
5. All image references fixed to existing files
6. Hero uses hdpe_pipe_main.jpg
7. Product cards use hdpe001.jpg
8. pt-20 on main for fixed header

 TESTED LOCALLY:
- Build: 15 pages in 1.27s
- Docker build successful
- Port 80 working
- Images load
- CSS works

Ready for Easypanel deployment.
2026-03-12 08:58:56 +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;