Module

x/pg_mem/schema/values-table.ts>ValuesTable

An in memory postgres DB instance for your unit tests
Latest
class ValuesTable
extends ReadOnlyTable
import { ValuesTable } from "https://dotland.deno.dev/x/pg_mem@3.0.2/schema/values-table.ts";

Constructors

new
ValuesTable(
alias: string,
items: Expr[][],
columnNames: string[] | nil,
acceptDefault?: boolean,
)

Properties

private
assignments: (IValue | "default")[][]
private
symbol: symbol
_schema: Schema

Methods

protected
buildColumnEvaluator(_col: SchemaField, i: number): IValue
entropy(t: _Transaction): number
enumerate(t: _Transaction): Iterable<any>
hasItem(value: any, t: _Transaction): boolean