dump

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dump

type Dump struct {
	InputDir string
	DumpDir  string
	JobsNum  int
	DB       *sql.DB
}

Dump contains data needed for dumping names data into CSV files.

func NewDump

func NewDump(d MyDB, inputDir string, jobs int) Dump

NewDump is a factory for Dump.

func (Dump) CreateCSV

func (dmp Dump) CreateCSV() error

CreateCSV creates all the CSV file needed for migration of the data.

type MyDB

type MyDB struct {
	MyHost string
	MyUser string
	MyPass string
	MyDB   string
}

MyDB keeps data needed for old MySQL data interaction.

func (MyDB) NewDb

func (d MyDB) NewDb() *sql.DB

NewDb creates a handler for interaction with MySQL database.

Jump to

Keyboard shortcuts

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