Documentation
¶
Index ¶
- Constants
- func DoSimpleAnalysis(input types.ParsedMigrationsSummary, simpleAnalyzer SimpleOneMigrationAnalyzer, ...) types.AnalyzedMigrationsSummary
- func GetConfigValue(ctx context.Context, key string) (string, bool)
- func PadDownMigration(up string, down string) string
- type SimpleOneMigrationAnalyzer
Constants ¶
View Source
const ConfigKey = "config"
Variables ¶
This section is empty.
Functions ¶
func DoSimpleAnalysis ¶
func DoSimpleAnalysis( input types.ParsedMigrationsSummary, simpleAnalyzer SimpleOneMigrationAnalyzer, reportText string, actions []string, ) types.AnalyzedMigrationsSummary
Runs a typical very simple analysis: - run a given SimpleAnalyzer for each migration's Up contents - store any resulting diagnostic - run a given SimpleAnalyzer for each migration's Down contents - store any resulting diagnostic - if any diagnostic is produced, store a Report for that migration file - eventually, return all Reports generated
func PadDownMigration ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.