pub struct VertexRepository<'a> {
pub ds_ref: DatastoreRef<'a>,
pub cf: &'static str,
}
Fields§
§ds_ref: DatastoreRef<'a>
§cf: &'static str
Implementations§
Source§impl<'a> VertexRepository<'a>
impl<'a> VertexRepository<'a>
Source§impl<'a> VertexRepository<'a>
impl<'a> VertexRepository<'a>
Sourcepub async fn v(&self, tx: &Transaction, ids: &[GValue]) -> Result<List, Error>
pub async fn v(&self, tx: &Transaction, ids: &[GValue]) -> Result<List, Error>
The V()-step is meant to read vertices from the graph and is usually used to start a GraphTraversal, but can also be used mid-traversal. Documentation
pub async fn new_v( &self, tx: &mut Transaction, labels: &[GValue], ) -> Result<Vertex, Error>
Sourcepub async fn add_v(
&self,
tx: &mut Transaction,
v: &mut Vertex,
labels: &[GValue],
) -> Result<Vertex, Error>
pub async fn add_v( &self, tx: &mut Transaction, v: &mut Vertex, labels: &[GValue], ) -> Result<Vertex, Error>
The addV()-step is used to add vertices to the graph (map/sideEffect). For every incoming object, a vertex is created. Moreover, GraphTraversalSource maintains an addV() method. Documentation
pub async fn new_property( &self, tx: &mut Transaction, args: &[GValue], ) -> Result<Vertex, Error>
pub fn property_repo(&self) -> VertexPropertyRepository<'_>
pub async fn property( &self, v: &mut Vertex, tx: &mut Transaction, args: &[GValue], ) -> Result<Vertex, Error>
pub async fn properties( &self, tx: &Transaction, v: &mut Vertex, args: &[GValue], ) -> Result<Vertex, Error>
pub async fn drop_v(&self, tx: &mut Transaction, id: GID) -> Result<(), Error>
pub async fn iterate_all(&self, tx: &Transaction) -> Result<List, Error>
Trait Implementations§
Source§impl<'a> Clone for VertexRepository<'a>
impl<'a> Clone for VertexRepository<'a>
Source§fn clone(&self) -> VertexRepository<'a>
fn clone(&self) -> VertexRepository<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for VertexRepository<'a>
impl<'a> RefUnwindSafe for VertexRepository<'a>
impl<'a> Send for VertexRepository<'a>
impl<'a> Sync for VertexRepository<'a>
impl<'a> Unpin for VertexRepository<'a>
impl<'a> UnwindSafe for VertexRepository<'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