Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanRows ¶
ScanRows iterates over database rows and applies the provided scan function to each row. It handles proper resource cleanup by ensuring rows are closed after scanning is complete. Parameters:
- r: A Rows interface that provides iteration over database query results
- scanFunc: A function that will be called for each row to perform the scanning
Returns an error if scanning fails, if there's an error during iteration, or if closing the rows fails
Types ¶
Click to show internal directories.
Click to hide internal directories.