engine

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEditSelectKeyForColumn

func GetEditSelectKeyForColumn(tableName, columnName string) string

func GetEditSelectValueForColumn

func GetEditSelectValueForColumn(tableName, columnName string) string

func GetFkTableNamePlural

func GetFkTableNamePlural(tableName, columnName string) string

func GetGoParseIntConversionSuffix added in v0.0.9

func GetGoParseIntConversionSuffix(datatype string) string

func GoIntCast added in v0.0.9

func GoIntCast(parameterName, datatype string) string

func ProcessJson added in v0.0.12

func ProcessJson(templateFile string)

func ProcessTables

func ProcessTables(tables []models.Table, unitTestValuesJson, templateFile, gui string)

func WriteContextToJson

func WriteContextToJson(context *MonstarilloContext) error

func WriteFile

func WriteFile(fileData []byte, fileName string) error

func WriteTablesToJson

func WriteTablesToJson(tables []models.Table, fileName string) error

Types

type MonstarilloContext

type MonstarilloContext struct {
	Tables             []models.Table
	Tags               []models.Tag
	CurrentTable       models.Table
	CurrentGuiTable    models.GuiListTable
	UnitTestValuesFile string
	GuiListTables      models.GuiListTables
}

func GetMonstarilloContext

func GetMonstarilloContext(file string) MonstarilloContext

func ReadMonstrilloContext

func ReadMonstrilloContext(contextFile string) MonstarilloContext

func (*MonstarilloContext) GetColumn

func (m *MonstarilloContext) GetColumn(tableName, columnName string) models.Column

func (*MonstarilloContext) GetFkTableName

func (m *MonstarilloContext) GetFkTableName(tableName, columnName string) string

func (*MonstarilloContext) GetFkTableNamePlural

func (m *MonstarilloContext) GetFkTableNamePlural(tableName, columnName string) string

func (*MonstarilloContext) GetTable

func (m *MonstarilloContext) GetTable(tableName string) models.Table

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL