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

Method DecodeSQLNullString

decode_sqlnull.go:6–11  ·  view source on GitHub ↗

DecodeSQLNullString decodes a sql.NullString

(v *sql.NullString)

Source from the content-addressed store, hash-verified

4
5// DecodeSQLNullString decodes a sql.NullString
6func (dec *Decoder) DecodeSQLNullString(v *sql.NullString) error {
7 if dec.isPooled == 1 {
8 panic(InvalidUsagePooledDecoderError("Invalid usage of pooled decoder"))
9 }
10 return dec.decodeSQLNullString(v)
11}
12
13func (dec *Decoder) decodeSQLNullString(v *sql.NullString) error {
14 var str string

Callers 1

TestDecodeSQLNullStringFunction · 0.95

Calls 2

decodeSQLNullStringMethod · 0.95

Tested by 1

TestDecodeSQLNullStringFunction · 0.76