schema

package
v0.70.14 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 SchemaCodegenEnt(v map[string][]string, enumLenLTE int) ([]string, map[string]int, error)

func SchemaCodegenMySQL

func SchemaCodegenMySQL(v map[string][]string, enumLenLTE int) ([]string, map[string]int, error)

func SchemaTypeEnt

func SchemaTypeEnt(colName string, vals []string) (string, error)

func SchemaTypeMySQL

func SchemaTypeMySQL(colName string, vals []string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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