Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertRowsAffected ¶
func AssertRowsAffected(operation string, expectedRows int) func(pgconn.CommandTag) error
AssertRowsAffected returns a func that checks if the given operation result affected exactly the expected number of rows.
func CollectRows ¶
CollectRows collects all rows to the given target type from a ExecutiveQueryBuilder.Query result. It is based on pgx.CollectRows but accepts an additional error for easier use.
func IterateRows ¶ added in v2.2.0
IterateRows returns an iterator over the rows of a database query and scans them to T. If an error occurred initially, while scanning or closing, it returns a single-use iterator with the error. It returns a single-use iterator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.