Module

x/kysely_postgrs_js_dialect/deps.ts>kysely.ForeignKeyConstraintNode

Kysely dialect for PostgreSQL using the Postgres.js client.
interface kysely.ForeignKeyConstraintNode
implements OperationNode
import { type kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/deps.ts";
const { ForeignKeyConstraintNode } = kysely;

Properties

readonly
kind: "ForeignKeyConstraintNode"
readonly
columns: ReadonlyArray<ColumnNode>
readonly
references: ReferencesNode
readonly
optional
onDelete: OnModifyForeignAction
readonly
optional
onUpdate: OnModifyForeignAction
readonly
optional
name: IdentifierNode
variable kysely.ForeignKeyConstraintNode
import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/deps.ts";
const { ForeignKeyConstraintNode } = kysely;

type

Readonly<{ is(node: OperationNode): node is ForeignKeyConstraintNode; create(
sourceColumns: ReadonlyArray<ColumnNode>,
targetTable: TableNode,
targetColumns: ReadonlyArray<ColumnNode>,
constraintName?: string,
): ForeignKeyConstraintNode; cloneWith(node: ForeignKeyConstraintNode, props: ForeignKeyConstraintNodeProps): Readonly<{ name?: IdentifierNode | undefined; onDelete?:
| "no action"
| "restrict"
| "cascade"
| "set null"
| "set default"
| undefined
; onUpdate?:
| "no action"
| "restrict"
| "cascade"
| "set null"
| "set default"
| undefined
; kind: "ForeignKeyConstraintNode"; columns: ReadonlyArray<ColumnNode>; references: ReferencesNode; }>; }>
import kysely.ForeignKeyConstraintNode
import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/deps.ts";
const { ForeignKeyConstraintNode } = kysely;