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

Method SQLNullStringKeyNullEmpty

encode_sqlnull.go:87–91  ·  view source on GitHub ↗

SQLNullStringKeyNullEmpty adds a string to be encoded or skips it if it is zero value. Must be used inside an object as it will encode a key

(key string, v *sql.NullString)

Source from the content-addressed store, hash-verified

85// SQLNullStringKeyNullEmpty adds a string to be encoded or skips it if it is zero value.
86// Must be used inside an object as it will encode a key
87func (enc *Encoder) SQLNullStringKeyNullEmpty(key string, v *sql.NullString) {
88 if v != nil && v.Valid {
89 enc.StringKeyNullEmpty(key, v.String)
90 }
91}
92
93// NullInt64
94

Callers 1

Calls 1

StringKeyNullEmptyMethod · 0.95

Tested by 1