Documentation
¶
Index ¶
- func SchemaCodegen(v map[string][]string, enumLenLTE int, ...) ([]string, map[string]int, error)
- func SchemaCodegenEnt(v map[string][]string, enumLenLTE int) ([]string, map[string]int, error)
- func SchemaCodegenMySQL(v map[string][]string, enumLenLTE int) ([]string, map[string]int, error)
- func SchemaTypeEnt(colName string, vals []string) (string, error)
- func SchemaTypeMySQL(colName string, vals []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SchemaCodegen ¶
func SchemaCodegen(v map[string][]string, enumLenLTE int, schemaLineFunc func(colName string, vals []string) (string, error)) ([]string, map[string]int, error)
SchemaCodegen generates Ent schema lines for enum values where the count of unique values is less than the provided `enumLenLTE` value. The keys to the map are expected to be column names.
func SchemaCodegenEnt ¶
func SchemaCodegenMySQL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.