pub async fn ensure_table_pool(pool: &Pool) -> Result<(), Error>Expand description
Bootstrap the audit-log table against either backend. Routes the
per-dialect DDL through the right driver via crate::sql::Pool.
MySQL caveat: CREATE INDEX IF NOT EXISTS doesn’t exist in
MySQL. The bootstrap catches duplicate-index errors (1061) and
continues, so the call remains idempotent.
§Errors
Driver / SQL failures other than the swallowed duplicate-index errors on MySQL.