Version: v0.5.1 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 14 Imported by: 0




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"


This section is empty.


func CompareContent

func CompareContent(t *testing.T, goldenFile, output string)

func CompareSQL

func CompareSQL(t *testing.T, expected map[string]string, actual []ScriptOutput)

func CreateTableDepthMap

func CreateTableDepthMap(tableMap map[string]*sysl.Type) map[int][]string

func GenerateFromSQLMap

func GenerateFromSQLMap(m []ScriptOutput, fs afero.Fs, logger *logrus.Logger) error


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 (v *ScriptView) GenerateDatabaseScriptCreate(tableMap map[string]*sysl.Type,
	dbType, appName string) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL