Versions in this module Expand all Collapse all v0 v0.0.1 Dec 23, 2021 Changes in this version + var ErrUnsupportedDataType = errors.New("unsupported data type") + var TimeReflectType = reflect.TypeOf(time.Time{}) + func ParseTagSetting(str string, sep string) map[string]string + func ToString(value interface{}) string + type DataType string + const Bool + const Bytes + const Float + const Int + const String + const Time + const Uint + type Field struct + BindNames []string + DBName string + DataType DataType + FieldType reflect.Type + IndirectFieldType reflect.Type + Name string + Precision int + ReflectValueOf func(reflect.Value) reflect.Value + Set func(reflect.Value, interface{}) error + StructField reflect.StructField + TagSettings map[string]string + ValueOf func(reflect.Value) (value interface{}, zero bool) + type Namer interface + ColumnName func(table, column string) string + IndexName func(table, column string) string + SchemaName func(table string) string + TableName func(table string) string + type NamingStrategy struct + NameReplacer Replacer + TablePrefix string + func (ns NamingStrategy) ColumnName(table, column string) string + func (ns NamingStrategy) IndexName(table, column string) string + func (ns NamingStrategy) SchemaName(table string) string + func (ns NamingStrategy) TableName(str string) string + type Replacer interface + Replace func(name string) string + type Schema struct + DBNames []string + Fields []*Field + FieldsByDBName map[string]*Field + FieldsByName map[string]*Field + ModelType reflect.Type + Name string + Table string + func Parse(dest interface{}, cacheStore *sync.Map, namer Namer) (*Schema, error) + func (schema *Schema) ParseField(fieldStruct reflect.StructField) *Field + func (schema Schema) LookUpField(name string) *Field