Skip to main content

NO_ACTION

Constant NO_ACTION 

Source
pub const NO_ACTION: ColumnMarker;
Expand description

NO ACTION action: Similar to RESTRICT (default behavior).

ยงExample

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

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