null

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(val any) sql.NullBool

Bool function will create a NullBool object. It accepts both bool and *bool values.

func BoolAny added in v1.8.0

func BoolAny(nullBool sql.NullBool) driver.Value

BoolAny function will scan NullBool value.

func BoolNil added in v1.8.0

func BoolNil(nullBool sql.NullBool) *bool

BoolNil function will scan NullBool value.

func Byte

func Byte(val any) sql.NullByte

Byte function will create a NullByte object. It accepts both byte and *byte values.

func ByteAny added in v1.8.0

func ByteAny(nullBool sql.NullByte) driver.Value

ByteAny function will scan NullByte value.

func ByteNil added in v1.8.0

func ByteNil(nullByte sql.NullByte) *byte

ByteNil function will scan NullByte value.

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

func Int16(val any) sql.NullInt16

Int16 function will create a NullInt16 object. It accepts both int16 and *int16 values.

func Int16Any added in v1.8.0

func Int16Any(nullInt sql.NullInt16) driver.Value

Int16Any function will scan NullInt16 value.

func Int16Nil added in v1.8.0

func Int16Nil(nullInt sql.NullInt16) *int16

Int16Nil function will scan NullInt16 value.

func Int32

func Int32(val any) sql.NullInt32

Int32 function will create a NullInt32 object. It accepts both int32 and *int32 values.

func Int32Any added in v1.8.0

func Int32Any(nullInt sql.NullInt32) driver.Value

Int32Any function will scan NullInt32 value.

func Int32Nil added in v1.8.0

func Int32Nil(nullInt sql.NullInt32) *int32

Int32Nil function will scan NullInt32 value.

func Int64

func Int64(val any) sql.NullInt64

Int64 function will create a NullInt64 object. It accepts both int64 and *int64 values.

func Int64Any added in v1.8.0

func Int64Any(nullInt sql.NullInt64) driver.Value

Int64Any function will scan NullInt64 value.

func Int64Nil added in v1.8.0

func Int64Nil(nullInt sql.NullInt64) *int64

Int64Nil function will scan NullInt64 value.

func NowTime

func NowTime() sql.NullTime

NowTime function will create a NullTime object.

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

func Time(val any) sql.NullTime

Time function will create a NullTime object. It accepts both time.Time and *time.Time values.

func TimeAny added in v1.8.0

func TimeAny(nullTime sql.NullTime) driver.Value

TimeAny function will scan NullTime value.

func TimeNil added in v1.8.0

func TimeNil(nullTime sql.NullTime) *time.Time

TimeNil function will scan NullTime value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL