Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PreparedStatement

import type { PreparedStatement } from "https://raw.githubusercontent.com/jakajancar/pgc4d/master/src/mod.ts";
interface PreparedStatement {
close(): Promise<void>;
execute(params?: ColumnValue[]): Promise<BufferedQueryResult>;
executeStreaming(params?: ColumnValue[]): Promise<StreamingQueryResult>;
}

§Methods

§
close(): Promise<void>
[src]

Release the prepared statement on the server.

§
execute(params?: ColumnValue[]): Promise<BufferedQueryResult>
[src]

Executes the prepared statement and returns a buffered result once all the rows are received.

§
executeStreaming(params?: ColumnValue[]): Promise<StreamingQueryResult>
[src]

Executes the prepared statement and returns a streaming result as soon as the query has been accepted by the server. Rows will be retrieved as you consume them.