Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullBytes ¶
NullTime represents a []byte that may be null. NullBytes implements the sql.Scanner interface so it can be used as a scan destination, similar to sql.NullString.
func NewNullBytes ¶
NewNullBytes create a new NullBytes. It will check if the given bytes is valid.
type NullFloat ¶
type NullFloat struct {
sql.NullFloat64
}
NullFloat wraps sql.NullFloat64.
func NewNullFloat ¶
NewNullFloat will create a new NullFloat.
type NullJsonText ¶
type NullJsonText types.NullJSONText
NullJsonText is a types.NullJSONText just for alias
func NewNullJsonText ¶
func NewNullJsonText(m json.RawMessage) NullJsonText
NewNullJsonText will create a new NullJsonText.
type NullString ¶
type NullString struct {
sql.NullString
}
NullString wraps sql.NullString.
func NewNullString ¶
func NewNullString(s string) NullString
NewNullString will create a new NullString.
type NullTime ¶
NullTime represents a time.Time that may be null. NullTime implements the sql.Scanner interface so it can be used as a scan destination, similar to sql.NullString.
func NewNullTime ¶
NewNullTime create a new NullTime. It will check if the given time is valid.