Documentation ¶
Overview ¶
Package mysql provides setup for spinning up a mysql container.
Index ¶
- func DSN(dbName, dbUser, dbPassword string) string
- func Request(dbName, dbUser, dbPassword string, ...) testcontainers.StartGenericContainerRequest
- func RunMigrations(migrationSource string) testcontainers.ContainerCallback
- func StartGenericContainer(ctx context.Context, dbName, dbUser, dbPassword string, ...) (testcontainers.Container, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Request ¶
func Request(dbName, dbUser, dbPassword string, opts ...testcontainers.GenericContainerOption) testcontainers.StartGenericContainerRequest
Request creates a new request for starting a mysql server.
func RunMigrations ¶
func RunMigrations(migrationSource string) testcontainers.ContainerCallback
RunMigrations is option to run migrations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.