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

Method SQLNullStringNullEmpty

encode_sqlnull.go:66–70  ·  view source on GitHub ↗

SQLNullStringNullEmpty adds a string to be encoded, must be used inside an object as it will encode a key

(v *sql.NullString)

Source from the content-addressed store, hash-verified

64
65// SQLNullStringNullEmpty adds a string to be encoded, must be used inside an object as it will encode a key
66func (enc *Encoder) SQLNullStringNullEmpty(v *sql.NullString) {
67 if v != nil && v.Valid {
68 enc.StringNullEmpty(v.String)
69 }
70}
71
72// SQLNullStringKey adds a string to be encoded, must be used inside an object as it will encode a key
73func (enc *Encoder) SQLNullStringKey(key string, v *sql.NullString) {

Callers 1

Calls 1

StringNullEmptyMethod · 0.95

Tested by 1