Struct reql::Session[][src]

pub struct Session { /* fields omitted */ }

The connection object returned by r.connect()

Implementations

impl Session[src]

pub fn connection(&self) -> Result<Connection>[src]

pub async fn use<T>(&mut self, db_name: T) where
    T: StaticString
[src]

Change the default database on this connection

Example

Change the default database so that we don’t need to specify the database when referencing a table.

conn.r#use("marvel").await;
r.table("heroes").run(conn) // refers to r.db("marvel").table("heroes")

pub async fn noreply_wait(&self) -> Result<()>[src]

Ensures that previous queries with the noreply flag have been processed by the server

Note that this guarantee only applies to queries run on the given connection.

Example

We have previously run queries with noreply set to true. Now wait until the server has processed them.

session.noreply_wait().await

pub async fn server(&self) -> Result<ServerInfo>[src]

Trait Implementations

impl Arg for &Session[src]

impl Arg for &mut Session[src]

impl Clone for Session[src]

impl Debug for Session[src]

Auto Trait Implementations

impl !RefUnwindSafe for Session

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl !UnwindSafe for Session

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,