pub struct QueryBuilder<'a> { /* private fields */ }Expand description
Builder for constructing graph queries
Provides a fluent interface for filtering and traversing the memory graph.
§Examples
use llm_memory_graph::{MemoryGraph, Config, query::QueryBuilder, NodeType};
let nodes = QueryBuilder::new(&graph)
.session(session.id)
.node_type(NodeType::Prompt)
.limit(10)
.execute()?;Implementations§
Source§impl<'a> QueryBuilder<'a>
impl<'a> QueryBuilder<'a>
Sourcepub const fn new(graph: &'a MemoryGraph) -> Self
pub const fn new(graph: &'a MemoryGraph) -> Self
Auto Trait Implementations§
impl<'a> Freeze for QueryBuilder<'a>
impl<'a> !RefUnwindSafe for QueryBuilder<'a>
impl<'a> Send for QueryBuilder<'a>
impl<'a> Sync for QueryBuilder<'a>
impl<'a> Unpin for QueryBuilder<'a>
impl<'a> !UnwindSafe for QueryBuilder<'a>
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