Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrColumnOrderingChanged = fmt.Errorf("column ordering changed: %w", ErrNotImplemented)
)
View Source
var ErrNotImplemented = fmt.Errorf("not implemented")
Functions ¶
This section is empty.
Types ¶
type MigrationHazard ¶
type MigrationHazard struct {
Type MigrationHazardType
Message string
}
func (MigrationHazard) String ¶
func (p MigrationHazard) String() string
type MigrationHazardType ¶
type MigrationHazardType = string
const ( MigrationHazardTypeAcquiresAccessExclusiveLock MigrationHazardType = "ACQUIRES_ACCESS_EXCLUSIVE_LOCK" MigrationHazardTypeDeletesData MigrationHazardType = "DELETES_DATA" MigrationHazardTypeHasUntrackableDependencies MigrationHazardType = "HAS_UNTRACKABLE_DEPENDENCIES" MigrationHazardTypeIndexBuild MigrationHazardType = "INDEX_BUILD" MigrationHazardTypeIndexDropped MigrationHazardType = "INDEX_DROPPED" MigrationHazardTypeImpactsDatabasePerformance MigrationHazardType = "IMPACTS_DATABASE_PERFORMANCE" MigrationHazardTypeIsUserGenerated MigrationHazardType = "IS_USER_GENERATED" )
type PlanOpt ¶
type PlanOpt func(opts *planOptions)
func WithDataPackNewTables ¶
func WithDataPackNewTables() PlanOpt
WithDataPackNewTables configures the plan generation such that it packs the columns in the new tables to minimize padding. It will help minimize the storage used by the tables
func WithDoNotValidatePlan ¶
func WithDoNotValidatePlan() PlanOpt
func WithIgnoreChangesToColOrder ¶
func WithIgnoreChangesToColOrder() PlanOpt
WithIgnoreChangesToColOrder configures the plan generation to ignore any changes to the ordering of columns in existing tables. You will most likely want this enabled
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.