Skip to main content

SET_NULL

Constant SET_NULL 

Source
pub const SET_NULL: ColumnMarker;
Expand description

SET NULL: set the referencing columns to NULL.

ยงExamples

#[column(references = User::id, on_delete = SET_NULL)]
user_id: Option<i32>,

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