- Unit tests and integration tests have now been separated. To run integration tests
go test -v --tags=integration ./...
- Dockerized testing. Testing is now easier thanks to PR #6. Simply run
make test
to run all unit and integration tests - Add SQL column notation for simplified aliases. Thanks to PR #7 you can now have pgxscan determine embedded struct notation by using leveraging sql columns. See documentation for more details.
NewScanner
now accepts anOption
variadic argument.- A
pgx.ErrNoRows
error is returned on aQuery
that returns a length of zero.- Identical functionality to the
Row
interface. Allows for app conditional logic if query returns nothing. - Can be turned off by passing in
ErrNoRowsQuery(false)
into theNewScanner
function.
- Identical functionality to the
- Scanner no longer accepts a non initialized value for the Destination.
- An error will be returned during validation if a non initialized destination is passed into the scanner.
- Reason for breaking change: No longer need to do a recursive call, which makes closing the scanner easier and allow for additional defered logic.