added column specify time zone support

This commit is contained in:
Lunny Xiao 2016-02-03 11:10:20 +08:00
parent 85579d38ad
commit 7aa53cce17
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import (
"fmt"
"reflect"
"strings"
"time"
)
const (
@ -34,6 +35,8 @@ type Column struct {
DefaultIsEmpty bool
EnumOptions map[string]int
SetOptions map[string]int
DisableTimeZone bool
TimeZone *time.Location // column specified time zone
}
func NewColumn(name, fieldName string, sqlType SQLType, len1, len2 int, nullable bool) *Column {