Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pgc4d/src/mod.ts>PreparedStatement

A full-featured PostgreSQL Client for Deno
Latest
interface PreparedStatement
import { type PreparedStatement } from "https://deno.land/x/pgc4d@v1.3.6/src/mod.ts";

Methods

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

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

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

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.

close(): Promise<void>

Release the prepared statement on the server.