DefaultColumns() helper on Table
This commit is contained in:
parent
00b8155f74
commit
38ea65434f
8 changed files with 50 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue