[][src]Function sql_audit::set_local_app_user

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

Set a value to be recorded in the app_user 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.