Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyResult ¶
type ApplyResult commands.MigrateApplyResult
type MigrationDirection ¶
type MigrationDirection string
const MigrationDirectionDown MigrationDirection = "down"
const MigrationDirectionUp MigrationDirection = "up"
type ProjectMigrate ¶
type ProjectMigrate struct {
// contains filtered or unexported fields
}
func NewProjectMigrate ¶
func NewProjectMigrate(projectDirectory string, opts ...ProjectMigrateOption) (*ProjectMigrate, error)
func (*ProjectMigrate) Apply ¶
func (p *ProjectMigrate) Apply(opts ...ProjectMigrationApplierOption) ([]ApplyResult, error)
func (*ProjectMigrate) StatusJSON ¶
func (p *ProjectMigrate) StatusJSON(opts ...ProjectMigrationStatusOption) (io.Reader, error)
type ProjectMigrateOption ¶
type ProjectMigrateOption func(*ProjectMigrate)
func WithAdminSecret ¶
func WithAdminSecret(adminSecret string) ProjectMigrateOption
func WithEndpoint ¶
func WithEndpoint(endpoint string) ProjectMigrateOption
type ProjectMigrationApplierOption ¶
type ProjectMigrationApplierOption func(applier *projectMigrationsApplier)
func ApplyOnAllDatabases ¶
func ApplyOnAllDatabases() ProjectMigrationApplierOption
func ApplyOnDatabaseName ¶
func ApplyOnDatabaseName(databaseName string) ProjectMigrationApplierOption
func ApplyVersion ¶
func ApplyVersion(version string, direction MigrationDirection) ProjectMigrationApplierOption
func ApplyWithSkipExecution ¶ added in v2.6.0
func ApplyWithSkipExecution() ProjectMigrationApplierOption
type ProjectMigrationStatusOption ¶
type ProjectMigrationStatusOption func(applier *projectMigrationsStatus)
func StatusAllDatabases ¶
func StatusAllDatabases() ProjectMigrationStatusOption
Click to show internal directories.
Click to hide internal directories.