Skip to main content

exec_count

Function exec_count 

Source
pub async fn exec_count(
    conn: &mut Conn,
    sql: &str,
    params: Params,
) -> Result<u64>
Expand description

Reads one whole number out of a single-cell result.

ยงErrors

Returns the mapped driver failure, or a server failure when the answer did not carry the single number it was asked for.