Struct rincon_session::VertexCollectionSession [] [src]

pub struct VertexCollectionSession<C> { /* fields omitted */ }

A session for operating with a specific vertex collection.

Methods

impl<C> VertexCollectionSession<C> where
    C: 'static + Connector
[src]

[src]

Returns the name of the database this vertex collection is located in.

[src]

Returns the name of the graph this vertex collection is part of.

[src]

Returns the name of the vertex collection this VertexCollectionSession operates with.

[src]

Returns the VertexCollection entity this VertexCollectionSession operates with.

[src]

Unwraps the vertex collection entity out of this session.

[src]

Removes the vertex collection represented by this session from the graph and optionally deletes the collection if it is not used in any other graph.

After calling this function the associated VertexCollectionSession is no longer valid.

[src]

Creates a new vertex in this collection.

[src]

Creates a new vertex in this collection and waits until the changes are written to disk.

[src]

Fetches the vertex with the given key from this collection.

[src]

Fetches the vertex with the given key from this collection if the revision matches the given predicate.

[src]

Fetches the vertex with the given key from this collection if the revision does not match the given predicate.

[src]

Replaces an existing vertex with a new vertex.

Arguments

  • key : The key of the vertex to be replaced
  • new_vertex : The new vertex

[src]

Replaces an existing vertex with a new vertex if the match condition is met.

Arguments

  • key : The key of the vertex to be replaced
  • new_vertex : The new vertex
  • if_match : The match condition that must be met to replace a vertex

[src]

Replaces an existing vertex with a new vertex if the match condition is met and waits until the changes are written to disk.

Arguments

  • key : The key of the vertex to be replaced
  • new_vertex : The new vertex
  • if_match : The match condition that must be met to replace a vertex

[src]

Replaces an existing vertex with a new vertex and waits until the changes are written to disk.

Arguments

  • key : The key of the vertex to be replaced
  • new_vertex : The new vertex

[src]

Partially modifies an existing vertex.

The update argument must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing vertex if they do not exist yet or overwritten in the existing vertex if they already exist there.

Arguments

  • key : The key of the vertex to be modified
  • update : A document with the content to be modified (patch document)
  • keep_none : Whether values set to None shall be stored. By default the attribute is not removed from the document.

[src]

Partially modifies an existing vertex if the match condition is met.

The update argument must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing vertex if they do not exist yet or overwritten in the existing vertex if they already exist there.

Arguments

  • key : The key of the vertex to be modified
  • update : A document with the content to be modified (patch document)
  • if_match : The match condition that must be met to modify a vertex
  • keep_none : Whether values set to None shall be stored. By default the attribute is not removed from the document.

[src]

Partially modifies an existing vertex if the match condition is met and waits until the changes are written to disk.

The update argument must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing vertex if they do not exist yet or overwritten in the existing vertex if they already exist there.

Arguments

  • key : The key of the vertex to be modified
  • update : A document with the content to be modified (patch document)
  • if_match : The match condition that must be met to modify a vertex
  • keep_none : Whether values set to None shall be stored. By default the attribute is not removed from the document.

[src]

Partially modifies an existing vertex and waits until the changes are written to disk.

The update argument must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing vertex if they do not exist yet or overwritten in the existing vertex if they already exist there.

Arguments

  • key : The key of the vertex to be modified
  • update : A document with the content to be modified (patch document)
  • keep_none : Whether values set to None shall be stored. By default the attribute is not removed from the document.

[src]

Removes the vertex with the given key from this collection.

[src]

Removes the vertex with the given key from this collection if the match condition is met.

Arguments

  • key : The key of the document to be deleted
  • if_match : The match condition that must be met to remove the vertex

[src]

Removes the vertex with the given key from this collection if the match condition is met and waits until the changes are written to disk.

Arguments

  • key : The key of the document to be deleted
  • if_match : The match condition that must be met to remove the vertex

[src]

Removes the vertex with the given key from this collection and waits until the changes are written to disk.

Trait Implementations

impl<C: Debug> Debug for VertexCollectionSession<C>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<C> !Send for VertexCollectionSession<C>

impl<C> !Sync for VertexCollectionSession<C>