mysqldump

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

mysql dump tool

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MysqlDump

func MysqlDump(opt DumpOpt) error

Types

type DumpOpt

type DumpOpt struct {
	DumpDir        string   `json:"dumpdir"`
	TableNames     []string `json:"table_names"`
	Host           string   `json:"db_host"`
	User           string   `json:"db_user"`
	DBName         string   `json:"db_name"`
	Password       string   `json:"db_password"`
	Type           TypeFlag `json:"export_type"`
	UseTrasnAction bool     `json:"transaction_enable"`
}

type TypeFlag

type TypeFlag int
const (
	TypeCSV  TypeFlag = 1
	TypeJSON TypeFlag = 0
)

Jump to

Keyboard shortcuts

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