Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DuplicateError ¶
DuplicateError creates a slice of the same error repeated size times. This is useful for dataloader methods that need to return one error per requested ID.
func IgnoreNotFound ¶
IgnoreNotFound returns nil if err is pgx.ErrNoRows, otherwise returns err. This is useful for queries where "not found" should be treated as a non-error case.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.