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
§
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.