Documentation
¶
Overview ¶
package pgtypealias exists to work around sqlc bugs with being able to reference v5 the pgtype package from within a dbsql package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullBytea ¶ added in v0.17.0
type NullBytea []byte //nolint:recvcheck
NullBytea is a custom type for Postgres bytea that returns SQL NULL when the underlying slice is nil or empty. This override takes over for the base type `bytea`, so that when sqlc generates code for arrays of bytea, each element is a NullBytea and properly handles nil values. This is in contrast to the default behavior of pq.Array in this scenario.
See https://github.com/riverqueue/river/issues/650 for more information.
Click to show internal directories.
Click to hide internal directories.