Database audits can run from tests — missing primary keys, unindexed foreign keys, redundant indexes, full-table mutations, and more. Plain constructor injection; no DI framework required.
<dependency>
<groupId>io.github.database-audits</groupId>
<artifactId>database-audits-core</artifactId>
<version>VERSION</version>
<scope>test</scope>
</dependency>For Spring Boot, use the database-audits-spring-boot-integration module.
Quick start, usage, audit reference, and architecture at https://database-audits.github.io/core.