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

Method SQLNullInt64OmitEmpty

encode_sqlnull.go:157–161  ·  view source on GitHub ↗

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

(v *sql.NullInt64)

Source from the content-addressed store, hash-verified

155
156// SQLNullInt64OmitEmpty adds a string to be encoded, must be used inside an object as it will encode a key
157func (enc *Encoder) SQLNullInt64OmitEmpty(v *sql.NullInt64) {
158 if v != nil && v.Valid && v.Int64 != 0 {
159 enc.Int64(v.Int64)
160 }
161}
162
163// SQLNullInt64NullEmpty adds a string to be encoded, must be used inside an object as it will encode a key
164func (enc *Encoder) SQLNullInt64NullEmpty(v *sql.NullInt64) {

Callers 1

TestAddSQLNullInt64Function · 0.95

Calls 1

Int64Method · 0.95

Tested by 1

TestAddSQLNullInt64Function · 0.76