sqlutils

package
v0.0.0-...-5889ca3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNullInt32

func NewNullInt32(i int32) sql.NullInt32

NewNullInt32 returns a null if i == 0, otherwise it returns the int32 which was input.

func NewNullInt64

func NewNullInt64(i int64) sql.NullInt64

NewNullInt64 returns a null if i == 0, otherwise it returns the int64 which was input.

func NewNullString

func NewNullString(s string) sql.NullString

NewNullString returns a null if s is empty, otherwise it returns the string which was input

func NewNullTime

func NewNullTime(t time.Time) sql.NullTime

NewNullTime returns a null if t is the zero value for time.Time, otherwise it returns the time which was input

func NewNullUUID

func NewNullUUID(i uuid.UUID) uuid.NullUUID

NewNullUUID returns a null if i == uuid.Nil, otherwise it returns the int32 which was input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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