Module

x/pg_mem/transforms/transform-base.ts>DataSourceBase

An in memory postgres DB instance for your unit tests
Latest
class DataSourceBase
implements _ISelection
Abstract
import { DataSourceBase } from "https://dotland.deno.dev/x/pg_mem@3.0.3/transforms/transform-base.ts";

Constructors

new
DataSourceBase(ownerSchema: _ISchema)

Properties

abstract
readonly
columns: ReadonlyArray<IValue>
readonly
db
abstract
readonly
isExecutionWithNoResult: boolean

Methods

abstract
entropy(t: _Transaction): number
abstract
enumerate(t: _Transaction): Iterable<Row>
filter(filter: Expr | undefined | null): _ISelection
abstract
getColumn(column: string, nullIfNotFound?: boolean): IValue
abstract
getIndex(forValue: IValue): _IIndex | null | undefined
groupBy(grouping: Expr[] | nil): _ISelection
abstract
hasItem(value: Row, t: _Transaction): boolean
abstract
isOriginOf(a: IValue): boolean
listColumns(): Iterable<IValue>
select(select: (string | SelectedColumn)[] | nil): _ISelection
selectAlias(alias: string): _IAlias | nil
setAlias(alias?: string): _ISelection
abstract
stats(t: _Transaction): Stats | null