Module

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

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

Constructors

new
DataSourceBase(ownerSchema: _ISchema)

Properties

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

Methods

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