Skip to content

Initializer

init(table:columns:onDelete:onUpdate:)

Create a foreign key specification.
init(table: any SQLExpression, columns: [any SQLExpression], onDelete: (any SQLExpression)?, onUpdate: (any SQLExpression)?)

Parameters

table

The table to reference.

columns

One or more columns to reference.

onDelete

An optional action to take when referenced rows are deleted.

onUpdate

An optional action to take when referenced rows are updated.