Documentation
¶
Index ¶
- func VersionedSchemaName(schema string, version string) string
- type Option
- type PGVersion
- type Roll
- func (m *Roll) Close() error
- func (m *Roll) Complete(ctx context.Context) error
- func (m *Roll) Init(ctx context.Context) error
- func (m *Roll) PGVersion() PGVersion
- func (m *Roll) Rollback(ctx context.Context) error
- func (m *Roll) Start(ctx context.Context, migration *migrations.Migration, ...) error
- func (m *Roll) Status(ctx context.Context, schema string) (*state.Status, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VersionedSchemaName ¶
Types ¶
type Option ¶ added in v0.5.0
type Option func(*options)
func WithDisableViewsManagement ¶ added in v0.5.0
func WithDisableViewsManagement() Option
WithDisableViewsManagement disables pgroll version schemas management when passed, pgroll will not create or drop version schemas
func WithLockTimeoutMs ¶ added in v0.5.0
WithLockTimeoutMs sets the lock timeout in milliseconds for pgroll DDL operations
type Roll ¶
type Roll struct {
// contains filtered or unexported fields
}
func (*Roll) Start ¶
func (m *Roll) Start(ctx context.Context, migration *migrations.Migration, cbs ...migrations.CallbackFn) error
Start will apply the required changes to enable supporting the new schema version
Click to show internal directories.
Click to hide internal directories.