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") }) }, }
View Source
var ReplaceFieldsDefault = map[string]string{ReplacePrefixField: ReplacePrefixDefault}
Functions ¶
This section is empty.
Types ¶
type Replacer ¶
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 ¶
func NewReplacerConfig ¶
func NewReplacerConfig() *ReplacerConfig
func ReplacerConfiguration ¶
func ReplacerConfiguration(config *ReplacerConfig, configurator configurator.Configurator) *ReplacerConfig
Click to show internal directories.
Click to hide internal directories.