Function count_audit_logs

Source
pub async fn count_audit_logs(pool: &Pool<MySql>) -> Result<i64>
Expand description

Count the total number of audit logs in the system.

This function provides a simple count of all audit logs stored in the database. It is useful for understanding the volume of logged actions and can be used in conjunction with pagination to inform users about the total number of available logs.

§Arguments

  • pool - Database connection pool for executing the query

§Returns

  • Ok(i64) - Total number of audit logs in the system