Deletes the rows that pass where and returns how many there were. where is required: pass
#code true to delete every row.
- db: a connection or pool.
- T: the table struct.
- where: the filter.
- call: the code of the call, which lets the query text be checked while compiling. Leave the default.
delete :: (
db: $D,
$T: Type,
$where: Code,
$call := #caller_code
) -> (s64, Pg_Error)
Deletes the rows that pass where and returns how many there were. where is required: pass
#code true to delete every row.
Parameters
- db: $D
- a connection or pool.
- $T: Type
- the table struct.
- $where: Code
- the filter.
- $call := #caller_code
- the code of the call, which lets the query text be checked while compiling. Leave the default.
Returns
- s64