You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postsack/src/database/query_result.rs

18 lines
455 B
Rust

use super::query::{Field, ValueField};
use std::collections::HashMap;
pub type QueryRow = HashMap<Field, ValueField>;
#[derive(Debug)]
pub enum QueryResult {
Grouped {
/// How many items did we find?
count: usize,
/// All the itmes that we grouped by including their values.
/// So that we can use each of them to limit the next query.
value: ValueField,
},
Normal(QueryRow),
Other(ValueField),
}