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

Method SQLNullBoolOmitEmpty

encode_sqlnull.go:345–349  ·  view source on GitHub ↗

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

(v *sql.NullBool)

Source from the content-addressed store, hash-verified

343
344// SQLNullBoolOmitEmpty adds a string to be encoded, must be used inside an object as it will encode a key
345func (enc *Encoder) SQLNullBoolOmitEmpty(v *sql.NullBool) {
346 if v != nil && v.Valid && v.Bool != false {
347 enc.Bool(v.Bool)
348 }
349}
350
351// SQLNullBoolNullEmpty adds a string to be encoded, must be used inside an object as it will encode a key
352func (enc *Encoder) SQLNullBoolNullEmpty(v *sql.NullBool) {

Callers 1

TestAddSQLNullBoolFunction · 0.95

Calls 1

BoolMethod · 0.95

Tested by 1

TestAddSQLNullBoolFunction · 0.76