Documentation
¶
Index ¶
- func NewGormMySQlDB(ctx context.Context, opts ...gorm.Option) (*gorm.DB, error)
- type MySQL
- type Option
- func WithConnOptions(opts string) Option
- func WithContainerCmd(cmd []string) Option
- func WithContainerEnv(env []string) Option
- func WithContainerName(name string) Option
- func WithContainerPort(port nat.Port) Option
- func WithImageName(name string) Option
- func WithMaxWaitTime(interval time.Duration) Option
- func WithWaitInterval(interval time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MySQL ¶
type MySQL struct { dockertest.DockerItemGenerator ImageName string ContainerPort nat.Port DatabaseName string // contains filtered or unexported fields }
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithConnOptions ¶
func WithContainerCmd ¶
func WithContainerEnv ¶
func WithContainerName ¶
func WithContainerPort ¶
func WithImageName ¶
func WithMaxWaitTime ¶
func WithWaitInterval ¶
Click to show internal directories.
Click to hide internal directories.