Documentation
¶
Index ¶
- type NullBool
- func (r *NullBool) GetBool() *bool
- func (r *NullBool) GetFloat64() *float64
- func (r *NullBool) GetInt64() *int64
- func (r *NullBool) GetString() *string
- func (r *NullBool) GetTime() *time.Time
- func (r *NullBool) GetType() NullableType
- func (r *NullBool) GetValue() *bool
- func (r *NullBool) IsNil() bool
- func (r *NullBool) MarshalJSON() ([]byte, error)
- func (r *NullBool) Scan(value interface{}) error
- func (r *NullBool) SetValue(value *bool)
- func (r *NullBool) UnmarshalJSON(b []byte) error
- type NullBoolIfc
- type NullFloat64
- func (r *NullFloat64) GetBool() *bool
- func (r *NullFloat64) GetFloat64() *float64
- func (r *NullFloat64) GetInt64() *int64
- func (r *NullFloat64) GetString() *string
- func (r *NullFloat64) GetTime() *time.Time
- func (r *NullFloat64) GetType() NullableType
- func (r *NullFloat64) GetValue() *float64
- func (r *NullFloat64) IsNil() bool
- func (r *NullFloat64) MarshalJSON() ([]byte, error)
- func (r *NullFloat64) Scan(value interface{}) error
- func (r *NullFloat64) SetValue(value *float64)
- func (r *NullFloat64) UnmarshalJSON(b []byte) error
- type NullFloat64Ifc
- type NullInt64
- func (r *NullInt64) GetBool() *bool
- func (r *NullInt64) GetFloat64() *float64
- func (r *NullInt64) GetInt64() *int64
- func (r *NullInt64) GetString() *string
- func (r *NullInt64) GetTime() *time.Time
- func (r *NullInt64) GetType() NullableType
- func (r *NullInt64) GetValue() *int64
- func (r *NullInt64) IsNil() bool
- func (r *NullInt64) MarshalJSON() ([]byte, error)
- func (r *NullInt64) Scan(value interface{}) error
- func (r *NullInt64) SetValue(value *int64)
- func (r *NullInt64) UnmarshalJSON(b []byte) error
- type NullInt64Ifc
- type NullString
- func (r *NullString) GetBool() *bool
- func (r *NullString) GetFloat64() *float64
- func (r *NullString) GetInt64() *int64
- func (r *NullString) GetString() *string
- func (r *NullString) GetTime() *time.Time
- func (r *NullString) GetType() NullableType
- func (r *NullString) GetValue() *string
- func (r *NullString) IsNil() bool
- func (r *NullString) MarshalJSON() ([]byte, error)
- func (r *NullString) Scan(value interface{}) error
- func (r *NullString) SetValue(value *string)
- func (r *NullString) UnmarshalJSON(b []byte) error
- type NullStringIfc
- type NullTime
- func (r *NullTime) GetBool() *bool
- func (r *NullTime) GetFloat64() *float64
- func (r *NullTime) GetInt64() *int64
- func (r *NullTime) GetString() *string
- func (r *NullTime) GetTime() *time.Time
- func (r *NullTime) GetType() NullableType
- func (r *NullTime) GetValue() *time.Time
- func (r *NullTime) IsNil() bool
- func (r *NullTime) MarshalJSON() ([]byte, error)
- func (r *NullTime) Scan(value interface{}) error
- func (r *NullTime) SetValue(v *time.Time)
- func (r *NullTime) UnmarshalJSON(b []byte) error
- type NullTimeIfc
- type Nullable
- func (r *Nullable) GetBool() *bool
- func (r *Nullable) GetBoolDefault(d bool) bool
- func (r *Nullable) GetFloat64() *float64
- func (r *Nullable) GetFloat64Default(d float64) float64
- func (r *Nullable) GetInt64() *int64
- func (r *Nullable) GetInt64Default(d int64) int64
- func (r *Nullable) GetString() *string
- func (r *Nullable) GetStringDefault(d string) string
- func (r *Nullable) GetTime() *time.Time
- func (r *Nullable) GetTimeDefault(d time.Time) time.Time
- func (r *Nullable) GetType() NullableType
- func (r *Nullable) IsNil() bool
- func (r *Nullable) MarshalJSON() ([]byte, error)
- func (r *Nullable) Scan(value interface{}) error
- func (r *Nullable) SetValue(v interface{}) error
- func (r *Nullable) UnmarshalJSON(b []byte) error
- type NullableIfc
- type NullableType
- type NullableValueIfc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullBool ¶
type NullBool struct {
// contains filtered or unexported fields
}
NullBool has non-exported sql.NullBool, requires use of exported receiver functions to access
func NewNullBool ¶
func (*NullBool) GetFloat64 ¶
func (*NullBool) GetType ¶
func (r *NullBool) GetType() NullableType
func (*NullBool) MarshalJSON ¶
func (*NullBool) UnmarshalJSON ¶
type NullBoolIfc ¶
type NullFloat64 ¶
type NullFloat64 struct {
// contains filtered or unexported fields
}
func NewNullFloat64 ¶
func NewNullFloat64(value float64) *NullFloat64
func (*NullFloat64) GetBool ¶
func (r *NullFloat64) GetBool() *bool
func (*NullFloat64) GetFloat64 ¶
func (r *NullFloat64) GetFloat64() *float64
func (*NullFloat64) GetInt64 ¶
func (r *NullFloat64) GetInt64() *int64
func (*NullFloat64) GetString ¶
func (r *NullFloat64) GetString() *string
func (*NullFloat64) GetTime ¶
func (r *NullFloat64) GetTime() *time.Time
func (*NullFloat64) GetType ¶
func (r *NullFloat64) GetType() NullableType
func (*NullFloat64) GetValue ¶
func (r *NullFloat64) GetValue() *float64
func (*NullFloat64) IsNil ¶
func (r *NullFloat64) IsNil() bool
func (*NullFloat64) MarshalJSON ¶
func (r *NullFloat64) MarshalJSON() ([]byte, error)
func (*NullFloat64) Scan ¶
func (r *NullFloat64) Scan(value interface{}) error
func (*NullFloat64) SetValue ¶
func (r *NullFloat64) SetValue(value *float64)
func (*NullFloat64) UnmarshalJSON ¶
func (r *NullFloat64) UnmarshalJSON(b []byte) error
type NullFloat64Ifc ¶
NullFloat has non-exported sql.NullFloat, requires use of exported receiver functions to access
type NullInt64 ¶
type NullInt64 struct {
// contains filtered or unexported fields
}
func NewNullInt64 ¶
func (*NullInt64) GetFloat64 ¶
func (*NullInt64) GetType ¶
func (r *NullInt64) GetType() NullableType
func (*NullInt64) MarshalJSON ¶
func (*NullInt64) UnmarshalJSON ¶
type NullInt64Ifc ¶
NullInt64 has non-exported sql.NullInt64, requires use of exported receiver functions to access
type NullString ¶
type NullString struct {
// contains filtered or unexported fields
}
NullString has non-exported sql.NullString, requires use of exported receiver functions to access
func NewNullString ¶
func NewNullString(value string) *NullString
func (*NullString) GetBool ¶
func (r *NullString) GetBool() *bool
func (*NullString) GetFloat64 ¶
func (r *NullString) GetFloat64() *float64
func (*NullString) GetInt64 ¶
func (r *NullString) GetInt64() *int64
func (*NullString) GetString ¶
func (r *NullString) GetString() *string
func (*NullString) GetTime ¶
func (r *NullString) GetTime() *time.Time
func (*NullString) GetType ¶
func (r *NullString) GetType() NullableType
func (*NullString) GetValue ¶
func (r *NullString) GetValue() *string
func (*NullString) IsNil ¶
func (r *NullString) IsNil() bool
func (*NullString) MarshalJSON ¶
func (r *NullString) MarshalJSON() ([]byte, error)
func (*NullString) Scan ¶
func (r *NullString) Scan(value interface{}) error
func (*NullString) SetValue ¶
func (r *NullString) SetValue(value *string)
func (*NullString) UnmarshalJSON ¶
func (r *NullString) UnmarshalJSON(b []byte) error
type NullStringIfc ¶
type NullTime ¶
type NullTime struct {
// contains filtered or unexported fields
}
NullTime is an alias for sql.NullTime data type which we extend
func NewNullTime ¶
func (*NullTime) GetFloat64 ¶
func (*NullTime) GetType ¶
func (r *NullTime) GetType() NullableType
func (*NullTime) MarshalJSON ¶
func (*NullTime) UnmarshalJSON ¶
type NullTimeIfc ¶
NullTime has non-exported sql.NullTime, requires use of exported receiver functions to access
type Nullable ¶
type Nullable struct {
// contains filtered or unexported fields
}
func NewNullable ¶
func NewNullable(value interface{}) *Nullable
func (*Nullable) GetBoolDefault ¶
func (*Nullable) GetFloat64 ¶
func (*Nullable) GetFloat64Default ¶
func (*Nullable) GetInt64Default ¶
func (*Nullable) GetStringDefault ¶
func (*Nullable) GetType ¶
func (r *Nullable) GetType() NullableType
func (*Nullable) MarshalJSON ¶
func (*Nullable) SetValue ¶
Convert value to appropriate Nullable; return true on success, else false
func (*Nullable) UnmarshalJSON ¶
type NullableIfc ¶
type NullableType ¶
type NullableType int8
const ( NULLABLE_NIL NullableType = iota NULLABLE_INT64 NULLABLE_BOOL NULLABLE_FLOAT64 NULLABLE_STRING NULLABLE_TIME )
Click to show internal directories.
Click to hide internal directories.