engine

package
v0.0.302 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 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 ProcessModels added in v0.0.301

func ProcessModels(modelsToProcess []models.OrmModel, 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 WriteModelsToJson added in v0.0.21

func WriteModelsToJson(models []models.OrmModel, fileName string) error

func WriteOrmContextToJson added in v0.0.301

func WriteOrmContextToJson(context *MonstarilloOrmContext) 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

type MonstarilloOrmContext added in v0.0.301

type MonstarilloOrmContext struct {
	Models       []models.OrmModel
	Tags         []models.Tag
	CurrentModel models.OrmModel
}

Jump to

Keyboard shortcuts

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