Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EOF error = errors.New("EOF")
EOF describes the error that should be returned when asynchronous operations have concluded
Functions ¶
func ReadRows ¶
ReadRows extracts all the data from a single SQL result set into a slice of the specified type. This function attempts to map each column in the result set to an associated field on the item, based on the value of an "sql" tag, a "json" tag or the field name in that order. The mapping is case-insensitive. If any column can't be mapped then an error will be returned.
func ReadRowsAsync ¶ added in v1.1.13
ReadRowsAsync extracts all the data from a single SQL result set, converts each item into an object of the specified type and sends the result to a channel. This function also sends any error that occurs to the channel. This allows the function to be run concurrently with other functions. This function will exit when an error occurs
Types ¶
This section is empty.