pub struct AqlGraphLoader { /* private fields */ }Expand description
AQL-based graph loader
Implementations§
Source§impl AqlGraphLoader
impl AqlGraphLoader
Sourcepub fn new(
db_config: DatabaseConfiguration,
batch_size: u64,
vertex_attributes: Vec<DataItem>,
edge_attributes: Vec<DataItem>,
queries: Vec<Vec<AqlQuery>>,
) -> Result<Self, GraphLoaderError>
pub fn new( db_config: DatabaseConfiguration, batch_size: u64, vertex_attributes: Vec<DataItem>, edge_attributes: Vec<DataItem>, queries: Vec<Vec<AqlQuery>>, ) -> Result<Self, GraphLoaderError>
Create a new AQL graph loader
Sourcepub async fn do_load<F>(&self, callback: F) -> Result<(), GraphLoaderError>
pub async fn do_load<F>(&self, callback: F) -> Result<(), GraphLoaderError>
Execute all AQL queries and call the provided callback with vertices and edges
Auto Trait Implementations§
impl Freeze for AqlGraphLoader
impl RefUnwindSafe for AqlGraphLoader
impl Send for AqlGraphLoader
impl Sync for AqlGraphLoader
impl Unpin for AqlGraphLoader
impl UnwindSafe for AqlGraphLoader
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