Struct rincon_session::GraphSession [] [src]

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

A session for operating with a specific graph.

Methods

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

[src]

Returns the name of the database this graph is located in.

[src]

Returns the name of the graph this GraphSession operates with.

[src]

Returns the Graph entity this GraphSession operates with.

It returns Some(&Graph) when this session holds a loaded graph entity or None otherwise.

If the graph entity is not loaded the load() function can be used to get a session with a loaded graph entity.

[src]

Unwraps the graph entity out of this session which is either the name of the graph or a Graph instance.

[src]

Returns whether this session holds a loaded graph entity.

It returns true if this session holds the graph entity or false otherwise. If this function returns true the entity() function will return Some(&Graph) otherwise that function returns None.

[src]

Fetches the entity of the graph represented by this session and returns a new GraphSession with the entity set in the session.

[src]

Drops the graph that is represented by this session.

Returns true if the graph has been dropped successfully.

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

[src]

Adds a vertex collection of the given name to the set of collections of the graph represented by this session. If the collection does not exist if will be created.

It returns a new GraphSession representing the updated graph.

[src]

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

It returns a new GraphSession representing the updated graph.

[src]

List all vertex collections used in the graph represented by this session.

[src]

Returns a new VertexCollectionSession for the vertex collection of the given name.

[src]

Adds an edge definition to the graph represented by this session.

Arguments

  • collection_name : The name of the edge collection
  • from : One or many vertex collections that can contain source vertices
  • to : One or many vertex collections that can contain target vertices

It returns a new GraphSession representing the updated graph.

[src]

Removes the edge definition of the given name from the graph represented by this session.

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

It returns a new GraphSession representing the updated graph.

[src]

List all edge collections used in the graph represented by this session.

[src]

Returns a new EdgeCollectionSession for the edge collection of the given name.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<C> !Send for GraphSession<C>

impl<C> !Sync for GraphSession<C>