pub struct ReadTxn<'a> { /* private fields */ }Expand description
A read-only transaction on the graph.
Implementations§
Source§impl ReadTxn<'_>
impl ReadTxn<'_>
pub fn get_node(&self, id: NodeId) -> Result<Option<NodeRecord>, Error>
pub fn get_edge(&self, id: EdgeId) -> Result<Option<EdgeRecord>, Error>
pub fn out_neighbors(&self, node: NodeId) -> Result<Vec<NeighborEntry>, Error>
pub fn in_neighbors(&self, node: NodeId) -> Result<Vec<NeighborEntry>, Error>
pub fn nodes_by_label(&self, label: &str) -> Result<Vec<NodeId>, Error>
pub fn edges_by_type(&self, etype: &str) -> Result<Vec<EdgeId>, Error>
pub fn label_name(&self, id: LabelId) -> Result<Option<String>, Error>
pub fn type_name(&self, id: TypeId) -> Result<Option<String>, Error>
pub fn node_count_by_label(&self, label: &str) -> Result<u64, Error>
pub fn edge_count_by_type(&self, etype: &str) -> Result<u64, Error>
pub fn all_nodes(&self) -> Result<Vec<NodeId>, Error>
pub fn has_node_property_index( &self, label: &str, property: &str, ) -> Result<bool, Error>
pub fn nodes_by_property( &self, label: &str, property: &str, val: PropValue, ) -> Result<Vec<NodeId>, Error>
pub fn nodes_by_property_range( &self, label: &str, property: &str, min_val: Option<PropValue>, min_inclusive: bool, max_val: Option<PropValue>, max_inclusive: bool, ) -> Result<Vec<NodeId>, Error>
pub fn edges_by_property( &self, etype: &str, property: &str, val: PropValue, ) -> Result<Vec<EdgeId>, Error>
pub fn edges_by_property_range( &self, etype: &str, property: &str, min_val: Option<PropValue>, max_val: Option<PropValue>, ) -> Result<Vec<EdgeId>, Error>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReadTxn<'a>
impl<'a> !Send for ReadTxn<'a>
impl<'a> !Sync for ReadTxn<'a>
impl<'a> !UnwindSafe for ReadTxn<'a>
impl<'a> Freeze for ReadTxn<'a>
impl<'a> Unpin for ReadTxn<'a>
impl<'a> UnsafeUnpin for ReadTxn<'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