Module

x/postgres/tests/test_deps.ts

PostgreSQL driver for Deno
Extremely Popular
Go to Latest
import * as mod from "https://dotland.deno.dev/x/postgres@v0.16.1/tests/test_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.

Variables

An wrapper for WebCrypto adding support for additional non-standard algorithms, but delegating to the runtime WebCrypto implementation whenever possible.

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 and expected are not equal, deeply. If not then throw.

Make an assertion that actual object is a subset of expected object, deeply. If not, then throw.

Executes a function which returns a promise, expecting it to throw or reject. 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. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it.

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. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it.

Decodes a given RFC4648 base64 encoded string

CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

Make the text bold.

Copy bytes from the src array to the dst array. Returns the number of bytes copied.

Get number of the day in the year

Calculate difference between two dates.

Format date using format string

Parse date from string using format string

Parse a date to return a IMF formatted string date RFC: https://tools.ietf.org/html/rfc7231#section-7.1.1.1 IMF is the time format to use when generating times in HTTP headers. The time being formatted must be in UTC for Format to generate the correct format.

Get number of the week in the year (ISO-8601)

Creates a Promise with the reject and resolve functions placed as methods on the promise object itself. It allows you to do:

Decodes src into src.length / 2 bytes. If the input is malformed, an error will be thrown.

Encodes src into src.length * 2 bytes.

Copies from src to dst until either EOF (null) is read from src or an error occurs. It resolves to the number of bytes copied or rejects with the first error encountered while copying.

Turns a Reader, r, into an async iterator.

Turns a ReaderSync, r, into an iterator.

Create a ReadableStream from any kind of iterable.

Create a ReadableStream<Uint8Array> from from a Deno.Reader.

Read Reader r until EOF (null) and resolve to the content as Uint8Array`.

Synchronously reads Reader r until EOF (null) and returns the content as Uint8Array.

Create a Deno.Reader from an iterable of Uint8Arrays.

Create a Reader from a ReadableStreamDefaultReader.

Convert the generator function into a TransformStream.

Create a WritableStream from a Writer.

Write all the content of the array buffer (arr) to the writer (w).

Synchronously write all the content of the array buffer (arr) to the writer (w).

Create a Writer from a WritableStreamDefaultWriter.

Set text color to yellow.