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

Method AddSQLNullInt64

encode_sqlnull.go:110–112  ·  view source on GitHub ↗

AddSQLNullInt64 adds a string to be encoded, must be used inside a slice or array encoding (does not encode a key)

(v *sql.NullInt64)

Source from the content-addressed store, hash-verified

108
109// AddSQLNullInt64 adds a string to be encoded, must be used inside a slice or array encoding (does not encode a key)
110func (enc *Encoder) AddSQLNullInt64(v *sql.NullInt64) {
111 enc.Int64(v.Int64)
112}
113
114// AddSQLNullInt64OmitEmpty adds a string to be encoded or skips it if it is zero value.
115// Must be used inside a slice or array encoding (does not encode a key)

Callers 2

TestAddSQLNullInt64Function · 0.95
UnmarshalJSONObjectMethod · 0.45

Calls 1

Int64Method · 0.95

Tested by 2

TestAddSQLNullInt64Function · 0.76
UnmarshalJSONObjectMethod · 0.36