MCPcopy Create free account
hub / github.com/francoispqt/gojay / decodeSQLNullFloat64

Method decodeSQLNullFloat64

decode_sqlnull.go:49–57  ·  view source on GitHub ↗
(v *sql.NullFloat64)

Source from the content-addressed store, hash-verified

47}
48
49func (dec *Decoder) decodeSQLNullFloat64(v *sql.NullFloat64) error {
50 var i float64
51 if err := dec.decodeFloat64(&i); err != nil {
52 return err
53 }
54 v.Float64 = i
55 v.Valid = true
56 return nil
57}
58
59// DecodeSQLNullBool decodes a sql.NullString with the given format
60func (dec *Decoder) DecodeSQLNullBool(v *sql.NullBool) error {

Callers 1

DecodeSQLNullFloat64Method · 0.95

Calls 1

decodeFloat64Method · 0.95

Tested by

no test coverage detected