Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineDBDataType ¶
DetermineDBDataType determines the underlying database type implemented by gorm
func MarshalString ¶
MarshalString takes in an interface and marshals it to json and returns it as a Value interface
Types ¶
type MapStringInterface ¶
type MapStringInterface map[string]interface{}
MapStringInterface defined JSON data type, need to implements driver.Valuer, sql.Scanner interface
func (MapStringInterface) GormDBDataType ¶
GormDBDataType gorm db data type
func (MapStringInterface) GormDataType ¶
func (m MapStringInterface) GormDataType() string
GormDataType gorm common data type
func (*MapStringInterface) Scan ¶
func (m *MapStringInterface) Scan(val interface{}) error
Scan scan value into Jsonb, implements sql.Scanner interface
type StringSlice ¶
type StringSlice []string
StringSlice defined JSON data type, need to implements driver.Valuer, sql.Scanner interface
func (StringSlice) GormDBDataType ¶
GormDBDataType gorm db data type
func (StringSlice) GormDataType ¶
func (m StringSlice) GormDataType() string
GormDataType gorm common data type
func (*StringSlice) Scan ¶
func (m *StringSlice) Scan(val interface{}) error
Scan scan value into Jsonb, implements sql.Scanner interface
Click to show internal directories.
Click to hide internal directories.