Versions in this module Expand all Collapse all v2 v2.4.10 Mar 3, 2020 v2.4.9 Jan 29, 2020 v2.4.8 Jan 27, 2020 v2.4.7 Jan 17, 2020 Changes in this version + var NullBytes = []byte("null") + type Bool struct + Bool bool + Valid bool + func BoolFrom(b bool) Bool + func BoolFromPtr(b *bool) Bool + func NewBool(b bool, valid bool) Bool + func (b *Bool) Scan(value interface{}) error + func (b *Bool) SetValid(v bool) + func (b *Bool) UnmarshalJSON(data []byte) error + func (b *Bool) UnmarshalText(text []byte) error + func (b Bool) IsNull() bool + func (b Bool) MarshalJSON() ([]byte, error) + func (b Bool) MarshalText() ([]byte, error) + func (b Bool) Ptr() *bool + func (b Bool) Value() (driver.Value, error) + type Byte struct + Byte byte + Valid bool + func ByteFrom(b byte) Byte + func ByteFromPtr(b *byte) Byte + func NewByte(b byte, valid bool) Byte + func (b *Byte) Scan(value interface{}) error + func (b *Byte) SetValid(n byte) + func (b *Byte) UnmarshalJSON(data []byte) error + func (b *Byte) UnmarshalText(text []byte) error + func (b Byte) IsNull() bool + func (b Byte) MarshalJSON() ([]byte, error) + func (b Byte) MarshalText() ([]byte, error) + func (b Byte) Ptr() *byte + func (b Byte) Value() (driver.Value, error) + type Bytes struct + Bytes []byte + Valid bool + func BytesFrom(b []byte) Bytes + func BytesFromPtr(b *[]byte) Bytes + func NewBytes(b []byte, valid bool) Bytes + func (b *Bytes) Scan(value interface{}) error + func (b *Bytes) SetValid(n []byte) + func (b *Bytes) UnmarshalJSON(data []byte) error + func (b *Bytes) UnmarshalText(text []byte) error + func (b Bytes) IsNull() bool + func (b Bytes) MarshalJSON() ([]byte, error) + func (b Bytes) MarshalText() ([]byte, error) + func (b Bytes) Ptr() *[]byte + func (b Bytes) Value() (driver.Value, error) + type Float32 struct + Float32 float32 + Valid bool + func Float32From(f float32) Float32 + func Float32FromPtr(f *float32) Float32 + func NewFloat32(f float32, valid bool) Float32 + func (f *Float32) Scan(value interface{}) error + func (f *Float32) SetValid(n float32) + func (f *Float32) UnmarshalJSON(data []byte) error + func (f *Float32) UnmarshalText(text []byte) error + func (f Float32) IsNull() bool + func (f Float32) MarshalJSON() ([]byte, error) + func (f Float32) MarshalText() ([]byte, error) + func (f Float32) Ptr() *float32 + func (f Float32) Value() (driver.Value, error) + type Float64 struct + Float64 float64 + Valid bool + func Float64From(f float64) Float64 + func Float64FromPtr(f *float64) Float64 + func NewFloat64(f float64, valid bool) Float64 + func (f *Float64) Scan(value interface{}) error + func (f *Float64) SetValid(n float64) + func (f *Float64) UnmarshalJSON(data []byte) error + func (f *Float64) UnmarshalText(text []byte) error + func (f Float64) IsNull() bool + func (f Float64) MarshalJSON() ([]byte, error) + func (f Float64) MarshalText() ([]byte, error) + func (f Float64) Ptr() *float64 + func (f Float64) Value() (driver.Value, error) + type Int struct + Int int + Valid bool + func IntFrom(i int) Int + func IntFromPtr(i *int) Int + func NewInt(i int, valid bool) Int + func (i *Int) Scan(value interface{}) error + func (i *Int) SetValid(n int) + func (i *Int) UnmarshalJSON(data []byte) error + func (i *Int) UnmarshalText(text []byte) error + func (i Int) IsNull() bool + func (i Int) MarshalJSON() ([]byte, error) + func (i Int) MarshalText() ([]byte, error) + func (i Int) Ptr() *int + func (i Int) Value() (driver.Value, error) + type Int16 struct + Int16 int16 + Valid bool + func Int16From(i int16) Int16 + func Int16FromPtr(i *int16) Int16 + func NewInt16(i int16, valid bool) Int16 + func (i *Int16) Scan(value interface{}) error + func (i *Int16) SetValid(n int16) + func (i *Int16) UnmarshalJSON(data []byte) error + func (i *Int16) UnmarshalText(text []byte) error + func (i Int16) IsNull() bool + func (i Int16) MarshalJSON() ([]byte, error) + func (i Int16) MarshalText() ([]byte, error) + func (i Int16) Ptr() *int16 + func (i Int16) Value() (driver.Value, error) + type Int32 struct + Int32 int32 + Valid bool + func Int32From(i int32) Int32 + func Int32FromPtr(i *int32) Int32 + func NewInt32(i int32, valid bool) Int32 + func (i *Int32) Scan(value interface{}) error + func (i *Int32) SetValid(n int32) + func (i *Int32) UnmarshalJSON(data []byte) error + func (i *Int32) UnmarshalText(text []byte) error + func (i Int32) IsNull() bool + func (i Int32) MarshalJSON() ([]byte, error) + func (i Int32) MarshalText() ([]byte, error) + func (i Int32) Ptr() *int32 + func (i Int32) Value() (driver.Value, error) + type Int64 struct + Int64 int64 + Valid bool + func Int64From(i int64) Int64 + func Int64FromPtr(i *int64) Int64 + func NewInt64(i int64, valid bool) Int64 + func (i *Int64) Scan(value interface{}) error + func (i *Int64) SetValid(n int64) + func (i *Int64) UnmarshalJSON(data []byte) error + func (i *Int64) UnmarshalText(text []byte) error + func (i Int64) IsNull() bool + func (i Int64) MarshalJSON() ([]byte, error) + func (i Int64) MarshalText() ([]byte, error) + func (i Int64) Ptr() *int64 + func (i Int64) Value() (driver.Value, error) + type Int8 struct + Int8 int8 + Valid bool + func Int8From(i int8) Int8 + func Int8FromPtr(i *int8) Int8 + func NewInt8(i int8, valid bool) Int8 + func (i *Int8) Scan(value interface{}) error + func (i *Int8) SetValid(n int8) + func (i *Int8) UnmarshalJSON(data []byte) error + func (i *Int8) UnmarshalText(text []byte) error + func (i Int8) IsNull() bool + func (i Int8) MarshalJSON() ([]byte, error) + func (i Int8) MarshalText() ([]byte, error) + func (i Int8) Ptr() *int8 + func (i Int8) Value() (driver.Value, error) + type JSON struct + JSON []byte + Valid bool + func JSONFrom(b []byte) JSON + func JSONFromPtr(b *[]byte) JSON + func NewJSON(b []byte, valid bool) JSON + func (j *JSON) Marshal(obj interface{}) error + func (j *JSON) Scan(value interface{}) error + func (j *JSON) SetValid(n []byte) + func (j *JSON) UnmarshalJSON(data []byte) error + func (j *JSON) UnmarshalText(text []byte) error + func (j JSON) IsNull() bool + func (j JSON) MarshalJSON() ([]byte, error) + func (j JSON) MarshalText() ([]byte, error) + func (j JSON) Ptr() *[]byte + func (j JSON) Unmarshal(dest interface{}) error + func (j JSON) Value() (driver.Value, error) + type Nullable interface + IsNull func() bool + type String struct + String string + Valid bool + func NewString(s string, valid bool) String + func StringFrom(s string) String + func StringFromPtr(s *string) String + func (s *String) Scan(value interface{}) error + func (s *String) SetValid(v string) + func (s *String) UnmarshalJSON(data []byte) error + func (s *String) UnmarshalText(text []byte) error + func (s String) IsNull() bool + func (s String) MarshalJSON() ([]byte, error) + func (s String) MarshalText() ([]byte, error) + func (s String) Ptr() *string + func (s String) Value() (driver.Value, error) + type Time struct + Time time.Time + Valid bool + func NewTime(t time.Time, valid bool) Time + func TimeFrom(t time.Time) Time + func TimeFromPtr(t *time.Time) Time + func (t *Time) Scan(value interface{}) error + func (t *Time) SetValid(v time.Time) + func (t *Time) UnmarshalJSON(data []byte) error + func (t *Time) UnmarshalText(text []byte) error + func (t Time) IsNull() bool + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) MarshalText() ([]byte, error) + func (t Time) Ptr() *time.Time + func (t Time) Value() (driver.Value, error) + type Uint struct + Uint uint + Valid bool + func NewUint(i uint, valid bool) Uint + func UintFrom(i uint) Uint + func UintFromPtr(i *uint) Uint + func (u *Uint) Scan(value interface{}) error + func (u *Uint) SetValid(n uint) + func (u *Uint) UnmarshalJSON(data []byte) error + func (u *Uint) UnmarshalText(text []byte) error + func (u Uint) IsNull() bool + func (u Uint) MarshalJSON() ([]byte, error) + func (u Uint) MarshalText() ([]byte, error) + func (u Uint) Ptr() *uint + func (u Uint) Value() (driver.Value, error) + type Uint16 struct + Uint16 uint16 + Valid bool + func NewUint16(i uint16, valid bool) Uint16 + func Uint16From(i uint16) Uint16 + func Uint16FromPtr(i *uint16) Uint16 + func (u *Uint16) Scan(value interface{}) error + func (u *Uint16) SetValid(n uint16) + func (u *Uint16) UnmarshalJSON(data []byte) error + func (u *Uint16) UnmarshalText(text []byte) error + func (u Uint16) IsNull() bool + func (u Uint16) MarshalJSON() ([]byte, error) + func (u Uint16) MarshalText() ([]byte, error) + func (u Uint16) Ptr() *uint16 + func (u Uint16) Value() (driver.Value, error) + type Uint32 struct + Uint32 uint32 + Valid bool + func NewUint32(i uint32, valid bool) Uint32 + func Uint32From(i uint32) Uint32 + func Uint32FromPtr(i *uint32) Uint32 + func (u *Uint32) Scan(value interface{}) error + func (u *Uint32) SetValid(n uint32) + func (u *Uint32) UnmarshalJSON(data []byte) error + func (u *Uint32) UnmarshalText(text []byte) error + func (u Uint32) IsNull() bool + func (u Uint32) MarshalJSON() ([]byte, error) + func (u Uint32) MarshalText() ([]byte, error) + func (u Uint32) Ptr() *uint32 + func (u Uint32) Value() (driver.Value, error) + type Uint64 struct + Uint64 uint64 + Valid bool + func NewUint64(i uint64, valid bool) Uint64 + func Uint64From(i uint64) Uint64 + func Uint64FromPtr(i *uint64) Uint64 + func (u *Uint64) Scan(value interface{}) error + func (u *Uint64) SetValid(n uint64) + func (u *Uint64) UnmarshalJSON(data []byte) error + func (u *Uint64) UnmarshalText(text []byte) error + func (u Uint64) IsNull() bool + func (u Uint64) MarshalJSON() ([]byte, error) + func (u Uint64) MarshalText() ([]byte, error) + func (u Uint64) Ptr() *uint64 + func (u Uint64) Value() (driver.Value, error) + type Uint8 struct + Uint8 uint8 + Valid bool + func NewUint8(i uint8, valid bool) Uint8 + func Uint8From(i uint8) Uint8 + func Uint8FromPtr(i *uint8) Uint8 + func (u *Uint8) Scan(value interface{}) error + func (u *Uint8) SetValid(n uint8) + func (u *Uint8) UnmarshalJSON(data []byte) error + func (u *Uint8) UnmarshalText(text []byte) error + func (u Uint8) IsNull() bool + func (u Uint8) MarshalJSON() ([]byte, error) + func (u Uint8) MarshalText() ([]byte, error) + func (u Uint8) Ptr() *uint8 + func (u Uint8) Value() (driver.Value, error)