Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map map[string]interface{}
Map type is an alias for map[string]interface{}
It implements native SQL driver interfaces and hence can be used for SQL json or jsonb types as a drop in replacement of golang native maps
func (Map) Interface ¶
func (m Map) Interface() interface{}
Interface implements the nulls.nullable interface.
func (*Map) Scan ¶
Scan implements the sql.Scanner interface. It allows to read the map from the database value.
func (*Map) UnmarshalJSON ¶
UnmarshalJSON will unmarshall JSON value into the map representation of this value.
func (Map) UnmarshalText ¶
UnmarshalText will unmarshall text value into the map representation of this value.
type Time ¶
Time is a wrapper for time.Time and implements Scanner and Valuer interfaces to support SQL driver
This wrapper adds support for unconventional data types likes string []byte as date types but also supports time.Time parsing
func (*Time) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface. The time is a quoted string in RFC 3339 format, with sub-second precision added if present.
func (*Time) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface. The time is formatted in RFC 3339 format, with sub-second precision added if present.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. The time is expected to be a quoted string in RFC 3339 format
func (*Time) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface. The time is expected to be in RFC 3339 format.