Documentation
¶
Index ¶
- func Bool(val any) sql.NullBool
- func BoolAny(nullBool sql.NullBool) driver.Value
- func BoolNil(nullBool sql.NullBool) *bool
- func Byte(val any) sql.NullByte
- func ByteAny(nullBool sql.NullByte) driver.Value
- func ByteNil(nullByte sql.NullByte) *byte
- func Float64(val any) sql.NullFloat64
- func Float64Any(nullInt sql.NullFloat64) driver.Value
- func FloatNil(nullFloat sql.NullFloat64) *float64
- func Int16(val any) sql.NullInt16
- func Int16Any(nullInt sql.NullInt16) driver.Value
- func Int16Nil(nullInt sql.NullInt16) *int16
- func Int32(val any) sql.NullInt32
- func Int32Any(nullInt sql.NullInt32) driver.Value
- func Int32Nil(nullInt sql.NullInt32) *int32
- func Int64(val any) sql.NullInt64
- func Int64Any(nullInt sql.NullInt64) driver.Value
- func Int64Nil(nullInt sql.NullInt64) *int64
- func NowTime() sql.NullTime
- func String(val any) sql.NullString
- func StringAny(nullString sql.NullString) driver.Value
- func StringNil(nullString sql.NullString) *string
- func Time(val any) sql.NullTime
- func TimeAny(nullTime sql.NullTime) driver.Value
- func TimeNil(nullTime sql.NullTime) *time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64 ¶
func Float64(val any) sql.NullFloat64
Float64 function will create a NullFloat64 object. It accepts both float64 and *float64 values.
func Float64Any ¶ added in v1.8.0
func Float64Any(nullInt sql.NullFloat64) driver.Value
Float64Any function will scan NullFloat64 value.
func FloatNil ¶ added in v1.8.0
func FloatNil(nullFloat sql.NullFloat64) *float64
FloatNil function will scan NullFloat64 value.
func Int16 ¶
Int16 function will create a NullInt16 object. It accepts both int16 and *int16 values.
func Int32 ¶
Int32 function will create a NullInt32 object. It accepts both int32 and *int32 values.
func Int64 ¶
Int64 function will create a NullInt64 object. It accepts both int64 and *int64 values.
func String ¶
func String(val any) sql.NullString
String function will create a NullString object. It accepts both string and *string values.
func StringAny ¶ added in v1.8.0
func StringAny(nullString sql.NullString) driver.Value
StringAny function will scan NullString value.
func StringNil ¶ added in v1.8.0
func StringNil(nullString sql.NullString) *string
StringNil function will scan NullString value.
func Time ¶
Time function will create a NullTime object. It accepts both time.Time and *time.Time values.
Types ¶
This section is empty.