Documentation
¶
Index ¶
- func DiffTables(current, desired *orderedmap.Map[string, *model.Table], dc DropChecker) ([]string, error)
- func DiffViews(current, desired *orderedmap.Map[string, *model.View], dc DropChecker) ([]string, error)
- type AllowAllDrops
- type DenyAllDrops
- type DomainDiffResult
- type DropChecker
- type EnumDiffResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffTables ¶
func DiffTables(current, desired *orderedmap.Map[string, *model.Table], dc DropChecker) ([]string, error)
func DiffViews ¶
func DiffViews(current, desired *orderedmap.Map[string, *model.View], dc DropChecker) ([]string, error)
Types ¶
type AllowAllDrops ¶ added in v0.14.0
type AllowAllDrops struct{}
AllowAllDrops is a DropChecker that allows all drops.
func (AllowAllDrops) IsDropAllowed ¶ added in v0.14.0
func (AllowAllDrops) IsDropAllowed(string) bool
type DenyAllDrops ¶ added in v0.14.0
type DenyAllDrops struct{}
DenyAllDrops is a DropChecker that denies all drops.
func (DenyAllDrops) IsDropAllowed ¶ added in v0.14.0
func (DenyAllDrops) IsDropAllowed(string) bool
type DomainDiffResult ¶ added in v0.12.0
func DiffDomains ¶ added in v0.12.0
func DiffDomains(current, desired *orderedmap.Map[string, *model.Domain], dc DropChecker) (*DomainDiffResult, error)
type DropChecker ¶ added in v0.14.0
DropChecker checks whether dropping a specific object type is allowed.
func NormalizeDropChecker ¶ added in v0.14.0
func NormalizeDropChecker(dc DropChecker) DropChecker
NormalizeDropChecker returns dc if non-nil, otherwise returns DenyAllDrops.
type EnumDiffResult ¶ added in v0.9.0
func DiffEnums ¶ added in v0.9.0
func DiffEnums(current, desired *orderedmap.Map[string, *model.Enum], dc DropChecker) (*EnumDiffResult, error)
Click to show internal directories.
Click to hide internal directories.