Skip to main content

replace

Function replace 

Source
pub async fn replace(
    tables: &Tables,
    conn: &dyn Database,
    tenancy: Tenancy,
    headers: &HeaderMap,
    scope: &Scope,
    name: &str,
    key: &Value,
    body: Value,
) -> Result<Value, Problem>
Expand description

Replaces one row, by key.

§Errors

The access decision’s refusal, NOT_A_ROW, NO_SUCH_ROW when nothing was changed — which under owner also covers a row belonging to somebody else — or a database failure.