iterx: Change field order

Signed-off-by: Michał Matczuk <michal@scylladb.com>
This commit is contained in:
Michał Matczuk
2020-01-17 14:46:06 +01:00
committed by Michal Jan Matczuk
parent e5688d15a8
commit bd53297a6c

View File

@@ -34,12 +34,13 @@ func Select(dest interface{}, q *gocql.Query) error {
// Iterx is a wrapper around gocql.Iter which adds struct scanning capabilities. // Iterx is a wrapper around gocql.Iter which adds struct scanning capabilities.
type Iterx struct { type Iterx struct {
*gocql.Iter *gocql.Iter
err error Mapper *reflectx.Mapper
unsafe bool unsafe bool
Mapper *reflectx.Mapper
// these fields cache memory use for a rows during iteration w/ structScan
started bool started bool
err error
// Cache memory for a rows during iteration in StructScan.
fields [][]int fields [][]int
values []interface{} values []interface{}
} }