pub fn build_map(result_set: ResultSet) -> Vec<HashMap<String, String>>
Expand description
Builds a vector of hash maps representing the rows of the given ResultSet.
This function takes a ResultSet as input and returns a vector of hash maps, where each hash map represents a row in the ResultSet. If the ResultSet contains no data or metadata, an empty vector is returned.
§Arguments
result_set
- A ResultSet containing the data to be converted into hash maps.
§Returns
A vector of hash maps, where each hash map represents a row in the ResultSet.
§Examples
use aws_sdk_athena::types::ResultSet;
use aws_sdk_athena::build_map;
let result_set = ResultSet::new(/* Some initialization */);
let mapped_data = build_map(result_set);
// Use mapped_data for further processing