pub struct QueryResult {
pub columns: Vec<String>,
pub column_types: Vec<LogicalType>,
pub rows: Vec<Vec<Value>>,
}Expand description
Result of a query execution.
Fields§
§columns: Vec<String>Column names.
column_types: Vec<LogicalType>Column types (used for distinguishing Node/Edge IDs from regular integers).
rows: Vec<Vec<Value>>Result rows.
Implementations§
Source§impl QueryResult
impl QueryResult
Sourcepub fn with_types(columns: Vec<String>, column_types: Vec<LogicalType>) -> Self
pub fn with_types(columns: Vec<String>, column_types: Vec<LogicalType>) -> Self
Creates a new empty query result with column types.
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Returns the number of columns.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnwindSafe for QueryResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more