Documentation
¶
Index ¶
Constants ¶
View Source
const ( MariaDBVersion = "10.5.27" MariaDBDockerImage = "mariadb:" + MariaDBVersion )
Variables ¶
This section is empty.
Functions ¶
func MariaDBContainer ¶
func MariaDBContainer(ctx context.Context, database, username, password string) ( ctr testcontainers.Container, cleanup func(), port int32, err error, )
MariaDBContainer creates and runs a MariaDB TestContainer.
If there is an error on startup, this function will terminate the TestContainer before returning. After calling this function, the caller must be sure to defer cleanup, e.g. by `t.Cleanup(cleanup)`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.