mysql

package
v0.0.0-...-a735c6b Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDelay = 5 * time.Second

DefaultDelay is the default poll interval to check an Instance

Variables

This section is empty.

Functions

This section is empty.

Types

type Backup

type Backup struct {
	Exec string
}

Backup can be used to generate database backups

func NewBackup

func NewBackup() *Backup

NewBackup instanciate a backup interface

func (*Backup) Run

func (m *Backup) Run(filename string) error

Run runs a backup and store it as the filename

type Instance

type Instance struct {
	DB *sql.DB
}

Instance is the interface implementation for MySQL

func NewInstance

func NewInstance(db *sql.DB) *Instance

NewInstance provides the interfaces required to start an instance

func (*Instance) Check

func (db *Instance) Check(retry int) error

Check wait for the instance to start

func (*Instance) Initialize

func (db *Instance) Initialize() error

Initialize creates a set of queries to connect to the database from tools

Jump to

Keyboard shortcuts

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