Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialectExecutor ¶
type DialectExecutor interface {
// Setup is called on the dialect on initialization, returns the DSN (modified if necessary) to use for migrations
Setup(context.Context) (string, error)
// Validate is called before startup to check that the dialect can execute properly
Validate(context.Context) (bool, error)
// Finalize is called after migrations and upgrades are run
Finalize(context.Context) error
}
func GetExecutor ¶
func GetExecutor(logger hclog.Logger, dsn string, c *history.Config) (schema.DialectType, DialectExecutor, error)
Click to show internal directories.
Click to hide internal directories.