Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetColumnValue ¶ added in v1.3.2
func GetColumnValue(v interface{}) interface{}
GetColumnValue unwraps our custom nullable types into a value the database can use.
Types ¶
type NullableBool ¶
NullableBool is a custom wrapper for sql.NullBool
func (*NullableBool) UnmarshalText ¶
func (nb *NullableBool) UnmarshalText(text []byte) error
UnmarshalText forces the implementation for csvutil
type NullableFloat64 ¶
type NullableFloat64 struct {
sql.NullFloat64
}
NullableFloat64 is a custom wrapper for sql.NullFloat64
func (*NullableFloat64) UnmarshalText ¶
func (nf *NullableFloat64) UnmarshalText(text []byte) error
UnmarshalText forces the implementation for csvutil
type NullableInt64 ¶
NullableInt64 is a custom type that wraps sql.NullInt64 to implement the encoding.TextUnmarshaler interface.
func (*NullableInt64) UnmarshalText ¶
func (ni *NullableInt64) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type NullableString ¶
type NullableString struct {
sql.NullString
}
func (*NullableString) UnmarshalText ¶
func (ns *NullableString) UnmarshalText(text []byte) error
type NullableTime ¶
NullableTime is a custom wrapper for sql.NullTime
func (*NullableTime) Scan ¶ added in v1.3.1
func (nt *NullableTime) Scan(value interface{}) error
Scan implements the sql.Scanner interface for reading from the database.
func (*NullableTime) UnmarshalText ¶
func (nt *NullableTime) UnmarshalText(text []byte) error
UnmarshalText forces the implementation for csvutil