generator

package
v0.8.29 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindColumn

func FindColumn(columnDataList []genertarModels.ColumnData, name string) *genertarModels.ColumnData

func GQLInit

func GQLInit(dbSchema lambdaModels.DBSCHEMA, graphqlchemas []models.ProjectSchemas)

func Generate

func Generate()

func GenerateSchema

func GenerateSchema(graphqlchemas []models.ProjectSchemas, dbSchema lambdaModels.DBSCHEMA)

func GetColumnsFromTableMeta

func GetColumnsFromTableMeta(columns []lambdaModels.TableMeta, hiddenColumns []string) []genertarModels.ColumnData

func GetColumnsWithMeta

func GetColumnsWithMeta(columns []lambdaModels.TableMeta, hiddenColumns []string) []map[string]string

func GetModelAlias

func GetModelAlias(modelName string) string

func GetProtobuf

func GetProtobuf(table string)

func GetStruct

func GetStruct(table string)

func GetTableSchemaFromColumns

func GetTableSchemaFromColumns(columns []lambdaModels.TableMeta) string

func ModelInit

func ModelInit(dbSchema lambdaModels.DBSCHEMA, formSchemas []genertarModels.ProjectSchemas, gridSchemas []genertarModels.ProjectSchemas, copyClientModels bool, WithUUID bool)

func TableMetaColumnsWithMeta

func TableMetaColumnsWithMeta(columns []lambdaModels.TableMeta, table string, hiddenColumns []string) []map[string]string

func TableMetaToGraphql

func TableMetaToGraphql(columns []lambdaModels.TableMeta, table string, hiddenColumns []string, Subs []string, isInpute bool) string

func TableMetaToStruct

func TableMetaToStruct(columns []lambdaModels.TableMeta, table string, hiddenColumns []string, pkgName string, Subs []string) string

func WriteFormModel

func WriteFormModel(dbSchema lambdaModels.DBSCHEMA, schemas []genertarModels.ProjectSchemas)

func WriteFormsModelData

func WriteFormsModelData(dbSchema lambdaModels.DBSCHEMA, schemas []genertarModels.ProjectSchemas, copyClienModels bool)

func WriteGridDataCaller

func WriteGridDataCaller(grids []genertarModels.ProjectSchemas, copyClienModels bool)

func WriteGridsModel

func WriteGridsModel(dbSchema lambdaModels.DBSCHEMA, grids []genertarModels.ProjectSchemas, copyClienModels bool)

func WriteModelCaller

func WriteModelCaller(dbSchema lambdaModels.DBSCHEMA, forms []genertarModels.ProjectSchemas, copyClienModels bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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