Postgres module

delete

procedure · 1 overloadsince 0.27.0Source

Deletes the rows that pass where and returns how many there were. where is required: pass #code true to delete every row.

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

See also