Query rows grouping performance improvements.

This commit is contained in:
go-jet 2019-06-20 11:19:23 +02:00
parent 565b670188
commit cdfd8f1dff
3 changed files with 202 additions and 149 deletions

View file

@ -2,6 +2,7 @@ package tests
import (
"fmt"
"github.com/davecgh/go-spew/spew"
. "github.com/go-jet/jet/sqlbuilder"
"github.com/go-jet/jet/tests/.test_files/dvd_rental/dvds/model"
. "github.com/go-jet/jet/tests/.test_files/dvd_rental/dvds/table"
@ -450,6 +451,10 @@ func TestScanToSlice(t *testing.T) {
err := query.Query(db, &dest)
fmt.Println(query.DebugSql())
spew.Dump(dest)
assert.NilError(t, err)
assert.DeepEqual(t, dest.Film, film1)
assert.DeepEqual(t, dest.IDs, []int32{1, 2, 3, 4, 5, 6, 7, 8})