Module mysql

Module mysql 

Source
Expand description

Shared reusable MySQL container for integration tests.

The container provides a root connection to the default mysql system database. Creating per-test databases and granting product users stays with the product test harness, which can register database names via crate::state::SharedContainerState::remember_resource so stale databases are pruned on later runs.

Structs§

MysqlTestContainer
Handle to the suite’s shared MySQL container.

Constants§

MYSQL_TEST_MAX_CONNECTIONS
Maximum simultaneous connections for nextest’s process-per-test database pools.
MYSQL_TEST_TABLE_DEFINITION_CACHE
Table-definition cache used by the shared MySQL integration-test container.