Struct rincon_session::EdgeCollectionSession [] [src]

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

A session for operating with a specific edge collection.

Methods

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

[src]

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

[src]

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

[src]

Returns the name of the edge collection this EdgeCollectionSession operates with.

[src]

Returns the EdgeCollection entity this EdgeCollectionSession operates with.

[src]

Unwraps the edge collection entity out of this session.

[src]

Removes the edge definition represented by this session from the graph

This will only remove the edge collection, the edge collections remain untouched.

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

[src]

Creates a new edge in this collection.

[src]

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

[src]

Fetches the edge with the given key from this collection.

[src]

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

[src]

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

[src]

Replaces an existing edge with a new edge.

Arguments

  • key : The key of the edge to be replaced
  • new_edge : The new edge

[src]

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

Arguments

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

[src]

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

Arguments

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

[src]

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

Arguments

  • key : The key of the edge to be replaced
  • new_edge : The new edge

[src]

Partially modifies an existing edge.

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 edge if they do not exist yet or overwritten in the existing edge if they already exist there.

Arguments

  • key : The key of the edge 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 edge 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 edge if they do not exist yet or overwritten in the existing edge if they already exist there.

Arguments

  • key : The key of the edge 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 edge
  • 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 edge 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 edge if they do not exist yet or overwritten in the existing edge if they already exist there.

Arguments

  • key : The key of the edge 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 edge
  • 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 edge 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 edge if they do not exist yet or overwritten in the existing edge if they already exist there.

Arguments

  • key : The key of the edge 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 edge with the given key from this collection.

[src]

Removes the edge 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 edge

[src]

Removes the edge 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 edge

[src]

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

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<C> !Send for EdgeCollectionSession<C>

impl<C> !Sync for EdgeCollectionSession<C>