Module

x/pg_mem/column.ts>ColRef

An in memory postgres DB instance for your unit tests
Go to Latest
class ColRef
implements _Column
import { ColRef } from "https://dotland.deno.dev/x/pg_mem@2.6.3/column.ts";

Constructors

new
ColRef(
table: MemoryTable,
expression: Evaluator,
_schema: SchemaField,
name: string,
)

Properties

private
drophandlers: Set<DropHandler>
default: IValue | nil
notNull: boolean
usedInIndexes: Set<BIndex>

Methods

private
replaceExpression(newId: string, newType: _IType)
alter(alter: AlterColumn, t: _Transaction): this
checkConstraints(toInsert: any, t: _Transaction)
drop(t: _Transaction): void
rename(to: string, t: _Transaction): this
setDefaults(toInsert: any, t: _Transaction)