Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertModelsEquivalent ¶
func AssertModelsEquivalent(got, want Model, opts CompareOptions) error
Types ¶
type Attribute ¶
type Attribute struct {
Attribute string `yaml:"attribute" json:"attribute"`
Type string `yaml:"type" json:"type"`
Format string `yaml:"format" json:"format"`
Encryption any `yaml:"encryption" json:"encryption"`
Roles []string `yaml:"roles" json:"roles"`
Required bool `yaml:"required" json:"required"`
Optional bool `yaml:"optional" json:"optional"`
OmitEmpty bool `yaml:"omit_empty" json:"omit_empty"`
JSON bool `yaml:"json" json:"json"`
Binary bool `yaml:"binary" json:"binary"`
}
type CompareOptions ¶
type CompareOptions struct {
IgnoreTableName bool
}
type Document ¶
type Document struct {
DMSVersion string `yaml:"dms_version" json:"dms_version"`
Namespace string `yaml:"namespace" json:"namespace"`
Models []Model `yaml:"models" json:"models"`
}
func ParseDocument ¶
type Index ¶
type Index struct {
Name string `yaml:"name" json:"name"`
Type string `yaml:"type" json:"type"` // GSI | LSI
Partition KeyAttribute `yaml:"partition" json:"partition"`
Sort *KeyAttribute `yaml:"sort" json:"sort"`
Projection Projection `yaml:"projection" json:"projection"`
}
type KeyAttribute ¶
type Keys ¶
type Keys struct {
Sort *KeyAttribute `yaml:"sort" json:"sort"`
Partition KeyAttribute `yaml:"partition" json:"partition"`
}
type Model ¶
type Projection ¶
Click to show internal directories.
Click to hide internal directories.