[][src]Function sql_audit::set_local_request_id

pub async fn set_local_request_id<'_, '_>(
    request_id: &'_ str,
    pool: &'_ PgPool
) -> Result<()>

Set a value to be recorded in the request_id column of the audit table. Only valid for the current transaction and does nothing if there is no current transaction.

Errors

Fails if the query fails, usually due to connection issues.