database

package
v0.792.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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