pub async fn create(
tables: &Tables,
conn: &dyn Database,
tenancy: Tenancy,
headers: &HeaderMap,
scope: &Scope,
name: &str,
body: Value,
) -> Result<Value, Problem>Expand description
Creates one row.
§Errors
The access decision’s refusal, NOT_A_ROW when the body is not a
legal row, ALREADY_EXISTS when the key collides with a row the
caller may be told about — under owner, their own — the ordinary
rejection when it collides with one they may not, or a database
failure.