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

x/pgc4d/src/deps.ts

A full-featured PostgreSQL Client for Deno
Latest
import * as pgc4d from "https://deno.land/x/pgc4d@v1.3.6/src/deps.ts";

Classes

BufReader implements buffering for a Reader object.

BufWriter implements buffering for an deno.Writer object. If an error occurs writing to a Writer, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.Writer.

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Make an assertion that actual contains expected. If not then thrown.

Executes a function, expecting it to throw. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted.

Shorthand for new TextDecoder().decode()

Shorthand for new TextEncoder().encode()

Use this to stub out methods that will throw when invoked.

Use this to assert unreachable code.