mysql

package
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(props cntest.PropertyMap) func(*cntest.Container) error

Config func to generate a configurer to use like this cntest.NewContainer(mysql.Config({"db":"mydb","initdb_path":"./testdb",user:"bob"}))

func Container

func Container(props cntest.PropertyMap) *cntest.Container

Container creates a mysql opinionated container with defaults overridden by the supplied props for:

db - name of the database. defaults to random
dbuser - user name for the database. defaults to random
dbpass - user password for the database. defaults to random
initdb_path - folder containing sh and sql files executed in lexical order when the container db starts

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL