dumper

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig added in v1.3.0

type DBConfig struct {
	DBName   string
	Username string
	Password string
	Host     string
	Port     int
}

func NewDBConfig added in v1.3.0

func NewDBConfig(dbName, user, password, host string, port int) *DBConfig

type Dumper

type Dumper interface {
	// Dump db content to storage.
	Dump(storage io.Writer) error
}

type MysqlDump added in v1.3.0

type MysqlDump struct {
	*DBConfig
	// contains filtered or unexported fields
}

func NewMysqlDump added in v1.3.0

func NewMysqlDump(job *config.Job) (*MysqlDump, error)

func (*MysqlDump) Dump added in v1.3.0

func (mysql *MysqlDump) Dump(storage io.Writer) error

type MysqlNativeDump added in v1.3.0

type MysqlNativeDump struct {
	DBConfig *mysql.Config
	// contains filtered or unexported fields
}

func NewMysqlNativeDump added in v1.3.0

func NewMysqlNativeDump(job *config.Job) (*MysqlNativeDump, error)

func (*MysqlNativeDump) Dump added in v1.3.0

func (m *MysqlNativeDump) Dump(storage io.Writer) error

type Options added in v1.3.0

type Options map[string]bool

Dump options

type PgDump added in v1.3.0

type PgDump struct {
	*DBConfig
	// contains filtered or unexported fields
}

func NewPgDump added in v1.3.0

func NewPgDump(job *config.Job) (*PgDump, error)

Dsn example: postgres://username:password@localhost:5432/database_name"

func (*PgDump) Dump added in v1.3.0

func (psql *PgDump) Dump(storage io.Writer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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