mirror of
https://github.com/jackc/pgx.git
synced 2025-05-01 21:19:54 +00:00
Previously, Get implicitly allowed returning a reference to an internal value (e.g. a []byte) but AssignTo was documented as requiring a deep copy. This inconsistency meant that either Get was unsafe or the deep copy in AssignTo was superfluous. In addition, Scan into a []byte skips going through Bytea and returns a []byte of the unparsed bytes directly. i.e. a reference not a copy. Standardize on allowing Get and AssignTo to return internal references but require a Value never mutate internal values - only replace them.
pgtype
pgtype implements Go types for over 70 PostgreSQL types. pgtype is the type system underlying the
https://github.com/jackc/pgx PostgreSQL driver. These types support the binary format for enhanced performance with pgx.
They also support the database/sql Scan
and Value
interfaces and can be used with https://github.com/lib/pq.
Languages
Go
98.6%
HTML
1.2%
Shell
0.2%