Row is a helper function that wraps sql rows to scan into a single struct.
Row scans structs based on their db tag, and scan any fields not tagged with the db tag matched column name,
So had better to tag all fields with db tag to avoid unexpected behavior.
Rows is a helper function that wraps sql rows to scan into a slice.
Rows scans structs based on their db tag, and scan any fields not tagged with the db tag matched column name,
So had better to tag all fields with db tag to avoid unexpected behavior.
RowMap is a helper function that wraps sql rows to scan into a single Record.
Key of the map is the column name, and value is the column value.
It returns the first row of the result set.