types

package
v0.0.0-...-9ea3a31 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package types provides basic operations with SQL types

Package types provides basic operations with SQL types

Package types provides basic operations with SQL types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int16ToSQL

func Int16ToSQL(i int16) sql.NullInt16

Int16ToSQL converts int16 to sql.NullInt16

func Int32ToSQL

func Int32ToSQL(i int32) sql.NullInt32

Int32ToSQL converts int32 to sql.NullInt32

func Int64ToSQL

func Int64ToSQL(i int64) sql.NullInt64

Int64ToSQL converts int16 to sql.NullInt64

func RefEmptyStringToSQL

func RefEmptyStringToSQL(str *string) sql.NullString

RefEmptyStringToSQL converts reference on string to sql.NullString with check on empty

func RefInt16ToSQL

func RefInt16ToSQL(i *int16) sql.NullInt16

RefInt16ToSQL converts reference on int16 to sql.NullInt16

func RefInt32ToSQL

func RefInt32ToSQL(i *int32) sql.NullInt32

RefInt32ToSQL converts reference on int32 to sql.NullInt32

func RefInt64ToSQL

func RefInt64ToSQL(i *int64) sql.NullInt64

RefInt64ToSQL converts reference on int64 to sql.NullInt64

func RefStringToSQL

func RefStringToSQL(str *string) sql.NullString

RefStringToSQL converts reference on string to sql.NullString

func SQLToRefInt16

func SQLToRefInt16(i sql.NullInt16) *int16

SQLToRefInt16 converts sql.NullInt16 to reference on int16

func SQLToRefInt32

func SQLToRefInt32(i sql.NullInt32) *int32

SQLToRefInt32 converts sql.NullInt32 to reference on int32

func SQLToRefInt64

func SQLToRefInt64(i sql.NullInt64) *int64

SQLToRefInt64 converts sql.NullInt64 to reference on int64

func SQLToRefString

func SQLToRefString(str sql.NullString) *string

SQLToRefString converts sql.NullString to reference on string

func SQLToRefTime

func SQLToRefTime(time sql.NullTime) *time.Time

func SQLToString

func SQLToString(str sql.NullString) string

SQLToString converts sql.NullString to string

func StrToDateTime

func StrToDateTime(input string) (time.Time, error)

StrToDateTime converts string to datetime

func StrToDateTimeRef

func StrToDateTimeRef(input string) (*time.Time, error)

StrToDateTimeRef converts string to reference on datetime

func StrToTime

func StrToTime(input string) (time.Time, error)

StrToTime converts string to date

func StringToSQL

func StringToSQL(str string) sql.NullString

StringToSQL converts string to sql.NullString

func TimeToStr

func TimeToStr(time time.Time) string

TimeToStr converts time.Time to string

Types

This section is empty.

Jump to

Keyboard shortcuts

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