Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BaseDir string `yaml:"baseDir" validate:"required"` Driver string `yaml:"driver" validate:"required"` DataSource string `yaml:"dataSource" validate:"required"` TenantSelectSQL string `yaml:"tenantSelectSQL,omitempty"` TenantInsertSQL string `yaml:"tenantInsertSQL,omitempty"` SchemaPlaceHolder string `yaml:"schemaPlaceHolder,omitempty"` SingleMigrations []string `yaml:"singleMigrations" validate:"min=1"` TenantMigrations []string `yaml:"tenantMigrations,omitempty"` SingleScripts []string `yaml:"singleScripts,omitempty"` TenantScripts []string `yaml:"tenantScripts,omitempty"` Port string `yaml:"port,omitempty"` PathPrefix string `yaml:"pathPrefix,omitempty"` WebHookURL string `yaml:"webHookURL,omitempty"` WebHookHeaders []string `yaml:"webHookHeaders,omitempty"` }
Config represents Migrator's yaml configuration file
Click to show internal directories.
Click to hide internal directories.