The ResultSet is processed through all rows.
the result set to write out as csv delimited
true (default) indicates include the header
the writer to use