Documentation ¶
Index ¶
- func BoolToInt64(value bool) int64
- func BoolToNullBool(v bool) sql.NullBool
- func Int64ToBool(value int64) bool
- func NullBoolToBool(v sql.NullBool) bool
- func NullBoolToPtrBool(v sql.NullBool) *bool
- func NullInt64ToInt64(value sql.NullInt64) int64
- func NullInt64ToPtrInt64(v sql.NullInt64) *int64
- func NullStringToPtrStr(v sql.NullString) *string
- func NullStringToStr(value sql.NullString) string
- func NullTimeToPtrUnix(t sql.NullTime) *int64
- func NullTimeToUnix(value sql.NullTime) int64
- func PtrBoolToNullBool(value *bool) sql.NullBool
- func PtrIntToNullInt64[I ~int | ~int64 | ~int8 | ~int32 | ~int16](value *I) sql.NullInt64
- func PtrStrToNullString(value *string) sql.NullString
- func PtrUnixToNullTime(t *int64, nsec int64) sql.NullTime
- func StrToNullString(value string) sql.NullString
- func ValueToPtr[T ~int | ~int8 | ~int16 | ~int32 | ~int64 | string | bool](t T) *T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToNullBool ¶ added in v1.2.88
func Int64ToBool ¶
func NullBoolToBool ¶ added in v1.2.88
func NullBoolToPtrBool ¶ added in v1.2.88
func NullInt64ToInt64 ¶
func NullInt64ToPtrInt64 ¶ added in v1.2.88
func NullStringToPtrStr ¶ added in v1.3.1
func NullStringToPtrStr(v sql.NullString) *string
func NullStringToStr ¶ added in v1.3.1
func NullStringToStr(value sql.NullString) string
func NullTimeToPtrUnix ¶ added in v1.2.88
func NullTimeToUnix ¶
func PtrBoolToNullBool ¶ added in v1.2.88
func PtrIntToNullInt64 ¶ added in v1.2.88
func PtrStrToNullString ¶ added in v1.3.1
func PtrStrToNullString(value *string) sql.NullString
func StrToNullString ¶ added in v1.3.1
func StrToNullString(value string) sql.NullString
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.