iterx: Change field order
Signed-off-by: Michał Matczuk <michal@scylladb.com>
This commit is contained in:
committed by
Michal Jan Matczuk
parent
e5688d15a8
commit
bd53297a6c
7
iterx.go
7
iterx.go
@@ -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{}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user