DefaultColumns() helper on Table

This commit is contained in:
charlie 2025-02-06 09:34:22 +01:00
parent 00b8155f74
commit 38ea65434f
8 changed files with 50 additions and 3 deletions

View file

@ -136,7 +136,7 @@ type TableSQLBuilderColumn struct {
Type string
}
var reservedKeywords = []string{"TableName", "Table", "SchemaName", "Alias", "AllColumns", "MutableColumns"}
var reservedKeywords = []string{"TableName", "Table", "SchemaName", "Alias", "AllColumns", "MutableColumns", "DefaultColumns"}
func renameIfReserved(name string) string {
if slices.Contains(reservedKeywords, name) {