Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pgc4d/src/connection.ts>PgConnImpl

A full-featured PostgreSQL Client for Deno
Latest
class PgConnImpl
implements PgConn
import { PgConnImpl } from "https://deno.land/x/pgc4d@v1.3.6/src/connection.ts";

Constructors

new
PgConnImpl(_options: ReturnType<computeOptions>, _conn: Deno.Conn)

Properties

readonly
_channels: Map<string, { listeners: Set<NotificationListener>; subscribed: Deferred<void>; }>
readonly
_locks: Pipe<Lock>
readonly
_reader: BufReader
_secretKey: number
readonly
_started: Promise<void>
_stmtCounter: number
readonly
_syncMessage: Pipe<ServerMessage>
readonly
_typeRegistry: TypeRegistry
readonly
_writer: BufWriter
readonly
done: Deferred<Error | undefined>
pid: number
readonly
serverParams: Map<string, string>

Methods

_prepare(
lock: Lock,
name: string,
text: string,
)
addListener(channel: string, listener: NotificationListener): Promise<void>
prepare(text: string)
query(text: string, params?: ColumnValue[])
queryStreaming(text: string, params?: ColumnValue[])
removeListener(channel: string, listener: NotificationListener): Promise<void>