Versions in this module Expand all Collapse all v0 v0.0.2 Jul 13, 2019 Changes in this version + var DefaultMapper = reflectx.NewMapperFunc("db", Underscore) + var ErrDuplicateValue = errors.New("sqlkit/marshal: duplicate values") + var ErrMissingDestination = errors.New("sqlkit/encoding: missing destination") + var ErrMustNotBeNil = errors.New("sqlkit/encoding: nil value passed to Decode") + var ErrNoRows = sql.ErrNoRows + var ErrRequiresPtr = errors.New("sqlkit/encoding: non pointer passed to Decode") + var ErrTooManyColumns = errors.New("sqlkit/encoding: too many columns to scan") + func Marshal(obj interface{}) ([]string, []interface{}, error) + func Underscore(s string) string + func Unmarshal(dest interface{}, rows *sql.Rows) error + type Encoder struct + func NewEncoder() Encoder + func (e Encoder) Decode(dest interface{}, rows *sql.Rows) error + func (e Encoder) Encode(obj interface{}) ([]string, []interface{}, error) + func (e Encoder) Unsafe() Encoder + func (e Encoder) WithMapper(m *reflectx.Mapper) Encoder