MCPcopy Create free account
hub / github.com/MQEnergy/go-skeleton / WithTableMethods

Function WithTableMethods

pkg/command/gorm_gen_command.go:115–121  ·  view source on GitHub ↗
(tableMethods entity.MethodMaps)

Source from the content-addressed store, hash-verified

113}
114
115func WithTableMethods(tableMethods entity.MethodMaps) *OptionsFunc {
116 return &OptionsFunc{
117 fun: func(db *GormGenCommand) {
118 db.tableMethods = tableMethods
119 },
120 }
121}
122
123func WithDataTypeMap(dataTypeMap map[string]func(detailType gorm.ColumnType) (dataType string)) *OptionsFunc {
124 return &OptionsFunc{

Callers 1

handleGenModelFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected