entc/gen: fixed conflict with package name table/column (#4357)

* entc/gen: fixed conflict with package name table/column

* examples: codegen

* entc/integration: codegen
This commit is contained in:
Giau. Tran Minh
2025-03-19 16:00:07 +07:00
committed by GitHub
parent ce61476d6d
commit 6b1d0a2e84
45 changed files with 90 additions and 90 deletions

View File

@@ -70,13 +70,13 @@ var (
)
// checkColumn checks if the column exists in the given table.
func checkColumn(table, column string) error {
func checkColumn(t, c string) error {
initCheck.Do(func() {
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{
user.Table: user.ValidColumn,
})
})
return columnCheck(table, column)
return columnCheck(t, c)
}
// Asc applies the given fields in ASC order.