Documentation ¶
Overview ¶
Package null implements typed adapters for Go values to nullable DB columns.
Index ¶
- Variables
- func If[T any](v T, pred func(T) bool) any
- func IfEq[T comparable](v, null T) any
- func IfLe[T constraints.Ordered](v, cmpr T) any
- func IfLt[T constraints.Ordered](v, cmpr T) any
- type Bool
- type Bytes
- type Float32
- type Float64
- type Int
- type Int16
- type Int32
- type Int64
- type String
- type Time
- type UInt16
- type UInt32
- type UInt64
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Ignore ignType Value nullType )
Functions ¶
func IfEq ¶ added in v0.8.3
func IfEq[T comparable](v, null T) any
func IfLe ¶ added in v0.8.3
func IfLe[T constraints.Ordered](v, cmpr T) any
func IfLt ¶ added in v0.8.3
func IfLt[T constraints.Ordered](v, cmpr T) any
Types ¶
Click to show internal directories.
Click to hide internal directories.