Skip to main content
Module

x/pg/message.ts>default

PostgreSQL client for Deno
Latest
class default
import { default } from "https://deno.land/x/pg@v0.6.1/message.ts";

Constructors

new
default(unnamed 0: Param)

Index Signatures

[propName: string]: any

Properties

private
chunk: Uint8Array
private
decoder: TextDecoder
private
header: string
private
length: number
private
mode
private
offset: number

Methods

CommandComplete Identifies the message as a command-completed response

DataRow Identifies the message as a data row.

ErrorResponse Identifies the message as an error

Identifies the message as cancellation key data. The frontend must save these values if it wishes to be able to issue CancelRequest messages later.

Authentication related Identifies the message as an authentication request

ParameterStatus Identifies the message as a run-time parameter status report

RowDescription Identifies the message as a row description

ReadyForQuery Identifies the message type. ReadyForQuery is sent whenever the backend is ready for a new query cycle.

readBytes(length: number): Uint8Array
readInt16(): number
readInt32(): number
readString(length: number): string
readZeroString(): string