Documentation ¶
Overview ¶
Package sqlite have some helpers and types for working with sqlite.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSQLTimeUnmarshallType = errors.New("incompatible type for SQLTime")
)
Functions ¶
This section is empty.
Types ¶
type SQLTime ¶
SQLTime will represent an time.Time for sqlite with milliseconds support.
func SQLTimeFromTime ¶
SQLTimeFromTime will create a SQLTime from time.Time. It converts the time to time.UTC().
func (SQLTime) 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 (*SQLTime) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. The time is expected to be a quoted string in RFC 3339 format.
Click to show internal directories.
Click to hide internal directories.