MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / on_delete

Method on_delete

src/entity/relation.rs:420–423  ·  view source on GitHub ↗

An operation to perform on a foreign key when a delete operation occurs

(mut self, action: ForeignKeyAction)

Source from the content-addressed store, hash-verified

418
419 /// An operation to perform on a foreign key when a delete operation occurs
420 pub fn on_delete(mut self, action: ForeignKeyAction) -> Self {
421 self.on_delete = Some(action);
422 self
423 }
424
425 /// An operation to perform on a foreign key when an update operation occurs
426 pub fn on_update(mut self, action: ForeignKeyAction) -> Self {

Callers 8

create_baker_tableFunction · 0.80
create_order_tableFunction · 0.80
create_lineitem_tableFunction · 0.80
create_cake_tableFunction · 0.80
upMethod · 0.80
upMethod · 0.80
upMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected