package
4.18.2+incompatible
Repository: https://github.com/ec2-software/pop.git
Documentation: pkg.go.dev
# README
github.com/gobuffalo/pop/nulls
DEPRECATED: use github.com/gobuffalo/nulls instead.
This package should be used in place of the built-in null types in the sql
package.
The real benefit of this packages comes in its implementation of MarshalJSON
and UnmarshalJSON
to properly encode/decode null
values.
Installation
$ go get github.com/gobuffalo/pop/nulls
Supported Datatypes
string
(nulls.String
) - Replacessql.NullString
int64
(nulls.Int64
) - Replacessql.NullInt64
float64
(nulls.Float64
) - Replacessql.NullFloat64
bool
(nulls.Bool
) - Replacessql.NullBool
[]byte
(nulls.ByteSlice
)float32
(nulls.Float32
)int
(nulls.Int
)int32
(nulls.Int32
)uint32
(nulls.UInt32
)time.Time
(nulls.Time
)