Skip to main content

foreignKeyAction

@webda/sql-schema


Function: foreignKeyAction()

foreignKeyAction(policy): ForeignKeyAction

Defined in: packages/sql-schema/src/metadata.ts:193

ON DELETE of the foreign key of a reference column, from the delete policy of its relation

NONE keeps the NO ACTION the references always had: the database still refuses to delete a referenced row.

Parameters​

policy​

DeletePolicy | undefined

the delete policy

Returns​

ForeignKeyAction

the SQL action