Skip to content

monolayer / schema / PgForeignKey

Class: PgForeignKey<T, C>

Type Parameters

Type Parameter
T extends string
C extends AnyPgTable

Methods

deleteRule()

deleteRule(rule): PgForeignKey<T, C>

Parameters

ParameterType
rule"cascade" | "set null" | "set default" | "restrict" | "no action"

Returns

PgForeignKey<T, C>


external()

external(): PgForeignKey<T, C>

Returns

PgForeignKey<T, C>


updateRule()

updateRule(rule): PgForeignKey<T, C>

Parameters

ParameterType
rule"cascade" | "set null" | "set default" | "restrict" | "no action"

Returns

PgForeignKey<T, C>