Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pg_mem/column.ts>ColRef

An in memory postgres DB instance for your unit tests
Latest
class ColRef
implements _Column
import { ColRef } from "https://deno.land/x/pg_mem@3.0.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)