dumpling

package
v0.0.0-...-fa598ba Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTableFilter = []string{"*.*", export.DefaultTableFilter}

DefaultTableFilter is the default table filter for dumpling.

Functions

func ParseArgLikeBash

func ParseArgLikeBash(args []string) []string

ParseArgLikeBash parses list arguments like bash, which helps us to run executable command via os/exec more likely running from bash.

func ParseExtraArgs

func ParseExtraArgs(logger *log.Logger, dumpCfg *export.Config, args []string) error

func ParseMetaData

func ParseMetaData(
	ctx context.Context,
	dir string,
	filename string,
	extStorage brstorage.ExternalStorage,
) (*binlog.Location, *binlog.Location, error)

ParseMetaData parses mydumper's output meta file and returns binlog location. since v2.0.0, dumpling maybe configured to output master status after connection pool is established, we return this location as well. If `extStorage` is nil, we will use `dir` to open a storage.

func ParseMetaDataByReader

func ParseMetaDataByReader(filename string, rd io.Reader) (*binlog.Location, *binlog.Location, error)

ParseMetaDataByReader parses mydumper's output meta file by created reader and returns binlog location.

Types

This section is empty.

Jump to

Keyboard shortcuts

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