Dialect refactor improvements and clean up.

This commit is contained in:
go-jet 2019-08-06 10:29:04 +02:00
parent 23fd973699
commit 647ef21aaf
52 changed files with 1097 additions and 671 deletions

View file

@ -31,7 +31,8 @@ func (c ColumnInfo) SqlBuilderColumnType() string {
return "Timestamp"
case "timestamp with time zone":
return "Timestampz"
case "time without time zone":
case "time without time zone",
"time": //MySQL
return "Time"
case "time with time zone":
return "Timez"
@ -67,7 +68,7 @@ func (c ColumnInfo) GoBaseType() string {
case "bigint":
return "int64"
case "date", "timestamp without time zone", "timestamp with time zone", "time with time zone", "time without time zone",
"timestamp", "datetime": // MySQL
"timestamp", "datetime", "time": // MySQL
return "time.Time"
case "bytea",
"binary", "varbinary", "tinyblob", "blob", "mediumblob", "longblob": //MySQL