Tags: georgysavva/scany
Tags
Add special type for scanning of unused columns (V1) (#132) * add noOpScanType * remove Value method * add test for scanning of unknown enum * fix tests * update db version * fix codecov * use token in codecov --------- Co-authored-by: Georgy Savva <georgy.savva@gmail.com>
Reduce per-row allocations (#130) Modify several internal functions to avoid allocating unnecessary memory. This commit employs three strategies: - Allocate a scans slice only when scanning the first row, and store it inside the RowScanner to reuse on subsequent rows. - When scanning into slices, use more sophistocated reflection code to extend the slie while avoid temporary slice header allocations. - When scanning into slices of non-pointers, scan directly into the slice index, rather than allocate a new value and copy after scanning.
replace pgtype with pgx/v5/pgtype (#97) It looks like in pgx v5 github.com/jackc/pgtype package needs to be replaced with github.com/jackc/pgx/v5/pgtype https://github.com/jackc/pgx/blob/f803c790d0999e9028cbffefad9df02e4aff913a/CHANGELOG.md#merged-packages as mentioned by @kohenkatz in PR #94
replace pgtype with pgx/v5/pgtype (#97) It looks like in pgx v5 github.com/jackc/pgtype package needs to be replaced with github.com/jackc/pgx/v5/pgtype https://github.com/jackc/pgx/blob/f803c790d0999e9028cbffefad9df02e4aff913a/CHANGELOG.md#merged-packages as mentioned by @kohenkatz in PR #94
PreviousNext