Documentation ¶
Index ¶
- Constants
- func CompareContent(t *testing.T, goldenFile, output string)
- func CompareSQL(t *testing.T, expected map[string]string, actual []ScriptOutput)
- func CreateTableDepthMap(tableMap map[string]*sysl.Type) map[int][]string
- func GenerateFromSQLMap(m []ScriptOutput, fs afero.Fs, logger *logrus.Logger) error
- type ScriptOutput
- type ScriptView
- type TableDetails
Constants ¶
View Source
const Add = "ADD"
View Source
const DBTestDir = `../../pkg/database/`
View Source
const Delimiter = ","
View Source
const Retain = "RETAIN"
View Source
const SQLExtension = ".sql"
Variables ¶
This section is empty.
Functions ¶
func CompareContent ¶
func CompareSQL ¶
func CompareSQL(t *testing.T, expected map[string]string, actual []ScriptOutput)
func CreateTableDepthMap ¶
func GenerateFromSQLMap ¶
Types ¶
type ScriptOutput ¶
type ScriptOutput struct {
// contains filtered or unexported fields
}
func MakeScriptOutput ¶
func MakeScriptOutput(filename, content string) *ScriptOutput
type ScriptView ¶
type ScriptView struct {
// contains filtered or unexported fields
}
func MakeDatabaseScriptView ¶
func MakeDatabaseScriptView(title string, logger *logrus.Logger, ) *ScriptView
func (*ScriptView) GenerateDatabaseScriptCreate ¶
func (*ScriptView) ProcessModSysls ¶
func (v *ScriptView) ProcessModSysls(appsOld, appsNew map[string]*sysl.Application, appNames []string, outputDir, dbType string) []ScriptOutput
type TableDetails ¶
type TableDetails struct {
// contains filtered or unexported fields
}
func MakeTableDetails ¶
func MakeTableDetails(table, tableOld *sysl.Type, action, name string, ) *TableDetails
Click to show internal directories.
Click to hide internal directories.