RESTRICT

Constant RESTRICT 

Source
pub const RESTRICT: ColumnMarker;
Expand description

RESTRICT action: Prevent delete/update if referenced.

§Example

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

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