docs/modules/databases/index.md
You might want to use Testcontainers' database support:
!!! note Of course, it's still important to have as few tests that hit the database as possible, and make good use of mocks for components higher up the stack.
See JDBC and R2DBC for information on how to use Testcontainers with SQL-like databases.