// SQLNullBoolOmitEmpty adds a string to be encoded, must be used inside an object as it will encode a key
552573
func (enc *Encoder) SQLNullBoolOmitEmpty(v *sql.NullBool) {
	if v != nil && v.Valid && v.Bool != false {
		enc.Bool(v.Bool)
	}
}
262389
func (enc *Encoder) SQLNullFloat64Key(key string, v *sql.NullFloat64) {
	enc.Float64Key(key, v.Float64)
}
552390
func NotEmpty(fieldName string, value string) error {
	if strings.TrimSpace(value) == "" {
		return NewViolation(fmt.Sprintf("empty string for %v", fieldName))
	}
	return nil
}
895480
func (enc *Encoder) FloatKeyNullEmpty(key string, v float64) {
	enc.Float64KeyNullEmpty(key, v)
}
981520
func (enc *Encoder) StringKeyNullEmpty(key, v string) {
	if enc.hasKeys {
		if !enc.keyExists(key) {
			return
		}
	}
	enc.grow(len(key) + len(v) + 5)
	r := enc.getPreviousRune()
	if r != '{' {
		enc.writeTwoBytes(',', '"')
	} else {
		enc.writeByte('"')
	}
	enc.writeStringEscape(key)
	enc.writeBytes(objKey)
	if v == "" {
		enc.writeBytes(nullBytes)
		return
	}
	enc.writeByte('"')
	enc.writeStringEscape(v)
	enc.writeByte('"')
}
380990
func (enc *Encoder) AddArrayKeyNullEmpty(key string, v MarshalerJSONArray) {
	enc.ArrayKeyNullEmpty(key, v)
}
514781
func (n *NullBool) ParseBoolValue(val *bool) {
	if val == nil {
		n.IsSet = false
		n.Value = false
		return
	}

	n.Value = *val
	n.IsSet = true
}
273433
func (enc *Encoder) Uint16KeyNullEmpty(key string, v uint16) {
	enc.Uint64KeyNullEmpty(key, uint64(v))
}
1019584
func (enc *Encoder) AddSQLNullInt64Key(key string, v *sql.NullInt64) {
	enc.Int64Key(key, v.Int64)
}
415448
func (enc *Encoder) AddIntKeyNullEmpty(key string, v int) {
	enc.IntKeyNullEmpty(key, v)
}
1361562
func (z *Row) fieldsNotEmpty(isempty []bool) uint32 {
	if len(isempty) == 0 {
		return 3
	}
	var fieldsInUse uint32 = 3
	isempty[0] = (len(z.K) == 0) // string, omitempty
	if isempty[0] {
		fieldsInUse--
	}
	isempty[1] = (len(z.V) == 0) // string, omitempty
	if isempty[1] {
		fieldsInUse--
	}
	isempty[2] = (z.T == 0) // number, omitempty
	if isempty[2] {
		fieldsInUse--
	}

	return fieldsInUse
}
933341
func (enc *Encoder) AddSQLNullBoolKey(key string, v *sql.NullBool) {
	enc.BoolKey(key, v.Bool)
}
35725
func (t *Transaction) SelectNullStr(query string, args ...interface{}) (sql.NullString, error) {
	if t.dbmap.ExpandSliceArgs {
		expandSliceArgs(&query, args...)
	}

	return SelectNullStr(t, query, args...)
}
119175
func (dec *Decoder) SQLNullBool(v *sql.NullBool) error {
	var b *bool
	if err := dec.BoolNull(&b); err != nil {
		return err
	}
	if b == nil {
		v.Valid = false
	} else {
		v.Bool = *b
		v.Valid = true
	}
	return nil
}
638237
func (enc *Encoder) AddBoolKeyNullEmpty(key string, v bool) {
	enc.BoolKeyNullEmpty(key, v)
}
772732
func (enc *Encoder) SQLNullStringKeyOmitEmpty(key string, v *sql.NullString) {
	if v != nil && v.Valid && v.String != "" {
		enc.StringKeyOmitEmpty(key, v.String)
	}
}
383715
func (enc *Encoder) SQLNullFloat64OmitEmpty(v *sql.NullFloat64) {
	if v != nil && v.Valid && v.Float64 != 0 {
		enc.Float64(v.Float64)
	}
}