Skip to main content
Module

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

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

Constructors

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

Properties

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

Methods

entropy(t: _Transaction): number
enumerate(t: _Transaction): Iterable<any>
hasItem(value: any, t: _Transaction): boolean