Struct rincon_session::DatabaseSession [] [src]

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

A session for operating with a specific database.

Methods

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

[src]

Executes an API method applied to the database of this session.

[src]

Returns the name of the database this DatabaseSession operates with.

[src]

Unwraps the database name out of this session.

[src]

Drops the database that is used in this session.

Returns true if the database has been dropped successfully.

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

[src]

Executes a query and returns a cursor with the first result set.

All cursor options and query execution options are left to their default settings.

To specify cursor options and/or query execution options use the query_opt(&self, NewCursor) function.

[src]

Executes a query and returns a cursor with the first result set.

It requires a NewCursor struct as a parameter which allows full control over all supported cursor options and query execution options.

To execute a query with all options left at their defaults the query(&self, Query) function might be more suitable.

[src]

Generates an execution plan for a query but does not execute it.

[src]

Generates an execution plan for a query but does not execute it.

Some options about how many execution plans are generated and the configuration options for the query optimizer can be provided.

[src]

Parses a query a validates the syntax but does not execute it.

If the query can be parsed without error the abstract syntax tree (AST) of the query is returned.

[src]

Fetch the document with the given id from the database of this session.

[src]

Returns a new CollectionSession for the collection with the given name.

[src]

Returns a new CollectionSession for the given collection.

[src]

Creates a new collection within the database of this session.

[src]

Drops the collection with the given name from the database of this session and returns the identifier of the dropped collection.

[src]

Fetches a list of all collections in this database.

System collections are not included in the returned list.

[src]

Fetches a list of all collections in this database including system collections.

[src]

Returns a new GraphSession for the graph with the given name.

[src]

Returns a new GraphSession for the given graph.

[src]

Creates a new graph in the database represented by this DatabaseSession.

[src]

Drops the graph with the given name from the database of this session.

This function returns true if the graph has been deleted and false otherwise.

[src]

Fetches a list of all graphs in this database.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<C> !Send for DatabaseSession<C>

impl<C> !Sync for DatabaseSession<C>