types

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBoolFromNull

func NewBoolFromNull(value sql.NullBool) bool

func NewBoolPtr

func NewBoolPtr(value bool) *bool

func NewInt32FromNull

func NewInt32FromNull(value sql.NullInt32) int32

func NewInt32Ptr

func NewInt32Ptr(value int32) *int32

func NewInt64FromNull

func NewInt64FromNull(value sql.NullInt64) int64

func NewInt64Ptr

func NewInt64Ptr(value int64) *int64

func NewNullBool

func NewNullBool(value interface{}) sql.NullBool

func NewNullInt32

func NewNullInt32(value interface{}) sql.NullInt32

func NewNullInt64

func NewNullInt64(value interface{}) sql.NullInt64

func NewNullString

func NewNullString(value interface{}) sql.NullString

func NewNullTime

func NewNullTime(value interface{}) sql.NullTime

NewNullTime creates a new sql.NullTime from a time.Time or *time.Time value.

func NewStringFromNull

func NewStringFromNull(value sql.NullString) string

func NewStringPtr

func NewStringPtr(value string) *string

func NewTimeFromNull

func NewTimeFromNull(value sql.NullTime) time.Time

NewTimeFromNull returns a time.Time value from a sql.NullTime. If the NullTime is not valid, it returns the zero value of time.Time.

func NewTimePtr

func NewTimePtr(value time.Time) *time.Time

NewTimePtr returns a pointer to a time.Time value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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