Skip to main content

holder_update

Function holder_update 

Source
fn holder_update(
    conn: &Connection,
    sql: impl Fn(&str) -> String,
    params: &[&dyn ToSql],
) -> Result<Option<HolderMatch>, StoreError>
Expand description

Run a holder-only UPDATE (sql renders it around a holder predicate) with the UID predicate, then the name one. Every holder statement binds ?1 id, ?2 the request’s name, ?3 the fence and ?6 the caller’s UID ('' when Unattributed).