Module

x/pg_mem/interfaces-private.ts>_IType

An in memory postgres DB instance for your unit tests
Go to Latest
interface _IType
implements IType, _RelationBase
import { type _IType } from "https://dotland.deno.dev/x/pg_mem@2.6.13/interfaces-private.ts";

Type Parameters

optional
TRaw = any

Properties

readonly
type: "type"
readonly
primary: DataType

Data type

readonly
name: string

Reg type name

readonly
reg: Reg

Methods

toString(): string
equals(a: TRaw, b: TRaw): boolean | null
gt(a: TRaw, b: TRaw): boolean | null
ge(a: TRaw, b: TRaw): boolean | null
lt(a: TRaw, b: TRaw): boolean | null
le(a: TRaw, b: TRaw): boolean | null
canConvertImplicit(to: _IType<TRaw>): boolean | nil
canCast(to: _IType<TRaw>): boolean | nil
cast<T = any>(value: IValue<TRaw>, to: _IType<T>): IValue<T>
convertImplicit<T = any>(value: IValue<TRaw>, to: _IType<T>): IValue<T>
prefer(type: _IType<any>): _IType | nil
asArray(): _IType<TRaw[]>

Build an array type for this type

asList(): _IType<TRaw[]>
hash(value: TRaw): string | number | null

Get an unicity hash

drop(t: _Transaction): void