Skip to main content

RESTRICT

Constant RESTRICT 

Source
pub const RESTRICT: ColumnMarker;
Expand description

RESTRICT: reject the delete or update while rows reference it.

ยงExamples

#[column(references = User::id, on_delete = RESTRICT)]
user_id: i32,

See: https://sqlite.org/foreignkeys.html#fk_actions