null

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(val bool) sql.NullBool

Bool function will create a NullBool object.

func BoolVal added in v1.2.0

func BoolVal(nullBool sql.NullBool) *bool

BoolVal function will scan NullBool value.

func Byte

func Byte(val byte) sql.NullByte

Byte function will create a NullBool object.

func ByteVal added in v1.2.0

func ByteVal(nullByte sql.NullByte) *byte

ByteVal function will scan NullByte value.

func Float64

func Float64(val float64) sql.NullFloat64

Float64 function will create a NullFloat64 object.

func FloatVal added in v1.2.0

func FloatVal(nullFloat sql.NullFloat64) *float64

FloatVal function will scan NullFloat64 value.

func Int16

func Int16(val int16) sql.NullInt16

Int16 function will create a NullInt16 object.

func Int16Val added in v1.2.0

func Int16Val(nullInt sql.NullInt16) *int16

Int16Val function will scan NullInt16 value.

func Int32

func Int32(val int32) sql.NullInt32

Int32 function will create a NullInt32 object.

func Int32Val added in v1.2.0

func Int32Val(nullInt sql.NullInt32) *int32

Int32Val function will scan NullInt32 value.

func Int64

func Int64(val int64) sql.NullInt64

Int64 function will create a NullInt64 object.

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 string) sql.NullString

String function will create a NullString object.

func StringVal added in v1.2.0

func StringVal(nullString sql.NullString) *string

StringVal function will scan NullString value.

func Time

func Time(val time.Time) sql.NullTime

Time function will create a NullTime object.

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