Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendRowsNonNil ¶
func AppendRowsNonNil[T comparable, S ~[]T](slice S, rows pgx.Rows, fn pgx.RowToFunc[T]) (S, error)
AppendRowsNonNil iterates through rows, calling fn for each row, and appending the results into a slice of T if the result is not nil.
This function closes the rows automatically on return.
func CollectRowsNonNil ¶
func CollectRowsNonNil[T comparable](rows pgx.Rows, fn pgx.RowToFunc[T]) ([]T, error)
CollectRowsNonNil iterates through rows, calling fn for each row, and collecting the results into a slice of T if the result is not nil.
This function closes the rows automatically on return.
func GetTestLogger ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.