Function delete_one

Source
pub fn delete_one<'a, T>(entity: &T, conn: &mut Conn) -> Result<u64, ToqlError>
where T: 'a + Indelup<'a, T>,
Expand description

Delete a struct.

The field that is used as key must be attributed with #[toql(delup_key)]. Returns the number of deleted rows.