null

package
v1.7.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 BoolVal added in v1.2.0

func BoolVal(nullBool sql.NullBool) *bool

BoolVal 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 ByteVal added in v1.2.0

func ByteVal(nullByte sql.NullByte) *byte

ByteVal 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 FloatVal added in v1.2.0

func FloatVal(nullFloat sql.NullFloat64) *float64

FloatVal 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 Int16Val added in v1.2.0

func Int16Val(nullInt sql.NullInt16) *int16

Int16Val 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 Int32Val added in v1.2.0

func Int32Val(nullInt sql.NullInt32) *int32

Int32Val 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 Int64Val added in v1.2.0

func Int64Val(nullInt sql.NullInt64) *int64

Int64Val function will scan NullInt64 value.

func NowTime

func NowTime() sql.NullTime

NowTime function will create a NullTime object.

func ScanBool

func ScanBool(nullBool sql.NullBool) driver.Value

ScanBool function will scan NullBool value.

func ScanByte

func ScanByte(nullBool sql.NullByte) driver.Value

ScanByte function will scan NullByte value.

func ScanFloat64

func ScanFloat64(nullInt sql.NullFloat64) driver.Value

ScanFloat64 function will scan NullFloat64 value.

func ScanInt16

func ScanInt16(nullInt sql.NullInt16) driver.Value

ScanInt16 function will scan NullInt16 value.

func ScanInt32

func ScanInt32(nullInt sql.NullInt32) driver.Value

ScanInt32 function will scan NullInt32 value.

func ScanInt64

func ScanInt64(nullInt sql.NullInt64) driver.Value

ScanInt64 function will scan NullInt64 value.

func ScanString

func ScanString(nullString sql.NullString) driver.Value

ScanString function will scan NullString value.

func ScanTime

func ScanTime(nullTime sql.NullTime) driver.Value

ScanTime function will scan NullTime value.

func String

func String(val any) sql.NullString

String function will create a NullString object. It accepts both string and *string values.

func StringVal added in v1.2.0

func StringVal(nullString sql.NullString) *string

StringVal 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 TimeVal added in v1.2.0

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

TimeVal 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