pub struct SQLiteGraphStore { /* private fields */ }Implementations§
Source§impl SQLiteGraphStore
impl SQLiteGraphStore
Sourcepub fn open(
conn: ManagedConnection,
table_name: Option<&str>,
) -> Result<Self, SQLiteError>
pub fn open( conn: ManagedConnection, table_name: Option<&str>, ) -> Result<Self, SQLiteError>
Open (or create) the per-table graph tables on conn and
rehydrate the in-memory store from any existing rows.
pub fn as_memory_store(&self) -> &MemoryGraphStore
pub fn create_graph(&mut self, name: &str) -> Result<(), SQLiteError>
pub fn drop_graph(&mut self, name: &str) -> Result<(), SQLiteError>
pub fn union_graphs( &mut self, left: &str, right: &str, target: &str, ) -> Result<(), SQLiteError>
pub fn intersect_graphs( &mut self, left: &str, right: &str, target: &str, ) -> Result<(), SQLiteError>
pub fn difference_graphs( &mut self, left: &str, right: &str, target: &str, ) -> Result<(), SQLiteError>
pub fn copy_graph( &mut self, source: &str, target: &str, ) -> Result<(), SQLiteError>
pub fn add_vertex( &mut self, vertex: Vertex, graph: &str, ) -> Result<(), SQLiteError>
pub fn add_edge(&mut self, edge: Edge, graph: &str) -> Result<(), SQLiteError>
pub fn remove_vertex( &mut self, vertex_id: VertexId, graph: &str, ) -> Result<(), SQLiteError>
pub fn remove_edge( &mut self, edge_id: EdgeId, graph: &str, ) -> Result<(), SQLiteError>
pub fn allocate_vertex_id( &mut self, label: &str, graph: &str, ) -> Result<VertexId, SQLiteError>
pub fn allocate_edge_id( &mut self, label: &str, graph: &str, ) -> Result<EdgeId, SQLiteError>
pub fn clear(&mut self) -> Result<(), SQLiteError>
pub fn graph_names(&self) -> Vec<String>
pub fn has_graph(&self, name: &str) -> bool
pub fn neighbors( &self, vertex_id: VertexId, label: Option<&str>, direction: Direction, graph: &str, ) -> Result<Vec<VertexId>, SQLiteError>
pub fn vertices_by_label( &self, label: &str, graph: &str, ) -> Result<Vec<Vertex>, SQLiteError>
pub fn vertex_ids_by_label( &self, label: &str, graph: &str, ) -> Result<Vec<VertexId>, SQLiteError>
pub fn vertices_in_graph(&self, graph: &str) -> Result<Vec<Vertex>, SQLiteError>
pub fn edges_in_graph(&self, graph: &str) -> Result<Vec<Edge>, SQLiteError>
pub fn vertex_graphs(&self, vertex_id: VertexId) -> BTreeSet<String>
pub fn get_vertex(&self, vertex_id: VertexId) -> Option<&Vertex>
pub fn get_edge(&self, edge_id: EdgeId) -> Option<&Edge>
pub fn vertices(&self) -> BTreeMap<VertexId, Vertex>
pub fn edges(&self) -> BTreeMap<EdgeId, Edge>
Auto Trait Implementations§
impl !RefUnwindSafe for SQLiteGraphStore
impl !UnwindSafe for SQLiteGraphStore
impl Freeze for SQLiteGraphStore
impl Send for SQLiteGraphStore
impl Sync for SQLiteGraphStore
impl Unpin for SQLiteGraphStore
impl UnsafeUnpin for SQLiteGraphStore
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