table

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReplacerFieldsFieldName = "db.replace"

	ReplacePrefixField   = "prefix"
	ReplacePrefixDefault = ""
)

Variables

View Source
var Component = &app.Component{
	Constructor: func(container container.Container) error {
		return container.Provides(
			NewReplacerConfig,
			NewReplacerWithConfigurator,
		)
	},
	BindFlags: func(flagSet *pflag.FlagSet, container container.Container) error {
		return container.Invoke(func(config *ReplacerConfig) {
			flagSet.StringToStringVar(&config.Fields, ReplacerFieldsFieldName, ReplaceFieldsDefault, "list of fields to replace in migrations")
		})
	},
}

Functions

This section is empty.

Types

type Replacer

type Replacer interface {
	Replace(s string) string
}

func NewReplacer

func NewReplacer(config *ReplacerConfig, informer logger.Informer) Replacer

func NewReplacerWithConfigurator

func NewReplacerWithConfigurator(config *ReplacerConfig, configurator configurator.Configurator, informer logger.Informer) Replacer

type ReplacerConfig

type ReplacerConfig struct {
	Fields map[string]string
}

func NewReplacerConfig

func NewReplacerConfig() *ReplacerConfig

func ReplacerConfiguration

func ReplacerConfiguration(config *ReplacerConfig, configurator configurator.Configurator) *ReplacerConfig

Jump to

Keyboard shortcuts

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