database

package
v0.656.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 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

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 (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
y or Y : Canonical URL