trysql

package module
v0.0.0-...-44a5c58 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 12 Imported by: 2

README

TrySql

Programme that creates a temporary containerised sandbox MySql database for testing

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Testing bool

Functions

This section is empty.

Types

type TrySql

type TrySql struct {
	ReadyState int
	Configs    *configs.Configs
	Details    *jsonextract.JSONExtract
	// contains filtered or unexported fields
}

func Initialise

func Initialise(args []string) (*TrySql, error)

func (*TrySql) DockerVersion

func (ts *TrySql) DockerVersion() string

func (*TrySql) GetContainerDetails

func (ts *TrySql) GetContainerDetails(idOnly bool) string

func (*TrySql) GetDetails

func (ts *TrySql) GetDetails(details []string) string

func (*TrySql) HostPortStr

func (ts *TrySql) HostPortStr() string

func (*TrySql) MySQLCommand

func (ts *TrySql) MySQLCommand() string

func (*TrySql) Password

func (ts *TrySql) Password() string

func (*TrySql) Query

func (ts *TrySql) Query(query string, report bool) (string, error)

func (*TrySql) TearDown

func (ts *TrySql) TearDown() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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