core

package
v0.0.0-...-463c1e9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIfNotExists

func AppendIfNotExists(slice []string, add string) []string

AppendIfNotExists from the slice.

Types

type Rewrite

type Rewrite map[string]string

type Rules

type Rules struct {
	Rewrite map[string]Rewrite `yaml:"rewrite" json:"rewrite"`
	NoData  []string           `yaml:"nodata"  json:"nodata"`
	Ignore  []string           `yaml:"ignore"  json:"ignore"`
	Where   map[string]string  `yaml:"where"   json:"where"`
}

func Load

func Load(b []byte) (Rules, error)

func (Rules) RewriteToMap

func (r Rules) RewriteToMap() map[string]map[string]string

RewriteToMap list for sanitizing the MySQL dump.

Jump to

Keyboard shortcuts

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