pub struct GraphTransaction<'a> { /* private fields */ }
Expand description
Graph transaction
Implementations§
Source§impl<'a> GraphTransaction<'a>
Graph transaction implementation
impl<'a> GraphTransaction<'a>
Graph transaction implementation
Sourcepub async fn create_node(
&mut self,
id: Option<String>,
labels: Vec<String>,
properties: BTreeMap<String, PropertyValue>,
) -> Result<String, GraphError>
pub async fn create_node( &mut self, id: Option<String>, labels: Vec<String>, properties: BTreeMap<String, PropertyValue>, ) -> Result<String, GraphError>
Create a node in the transaction
Sourcepub async fn create_edge(
&mut self,
id: Option<String>,
from_node: &str,
to_node: &str,
label: String,
properties: BTreeMap<String, PropertyValue>,
) -> Result<String, GraphError>
pub async fn create_edge( &mut self, id: Option<String>, from_node: &str, to_node: &str, label: String, properties: BTreeMap<String, PropertyValue>, ) -> Result<String, GraphError>
Create an edge in the transaction
Sourcepub async fn commit(self) -> Result<(), GraphError>
pub async fn commit(self) -> Result<(), GraphError>
Commit the transaction
Sourcepub fn rollback(self) -> Result<(), GraphError>
pub fn rollback(self) -> Result<(), GraphError>
Rollback the transaction
Auto Trait Implementations§
impl<'a> Freeze for GraphTransaction<'a>
impl<'a> !RefUnwindSafe for GraphTransaction<'a>
impl<'a> Send for GraphTransaction<'a>
impl<'a> !Sync for GraphTransaction<'a>
impl<'a> Unpin for GraphTransaction<'a>
impl<'a> !UnwindSafe for GraphTransaction<'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