Struct reql::r[][src]

pub struct r;

The top-level ReQL namespace

Example

Set up your top-level namespace.

use reql::r;

Implementations

impl r[src]

pub async fn connect<T>(self, options: T) -> Result<Session> where
    T: Arg
[src]

Create a new connection to the database server

Example

Open a connection using the default host and port, specifying the default database.

use reql::{r, cmd::connect::Options};

let session = r.connect(Options::new().db("marvel")).await?;

Read more about this command connect

pub fn db_create<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn db_drop<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn db_list(self) -> Query[src]

pub fn db<T>(self, arg: T) -> Query where
    T: Arg
[src]

Reference a database

The db command is optional. If it is not present in a query, the query will run against the default database for the connection, specified in the db argument to connect.

Examples

Explicitly specify a database for a query.

r.db("heroes").table("marvel").run(conn)

pub fn table_create<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn table<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn map<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn union<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn group<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn reduce<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn count<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn sum<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn avg<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn min<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn max<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn distinct<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn contains<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn literal<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn object<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn random<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn round<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn ceil<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn floor<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn now(self) -> Query[src]

pub fn time<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn epoch_time<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn iso8601<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn do_<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn branch<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn range<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn error<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn expr<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn js<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn info<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn json<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn http<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn uuid<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn circle<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn distance<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn geojson<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn intersects<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn line<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn point<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn polygon<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn grant<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn wait<T>(self, arg: T) -> Query where
    T: Arg
[src]

pub fn asc<T>(self, arg: T) -> Asc where
    T: Arg
[src]

pub fn desc<T>(self, arg: T) -> Desc where
    T: Arg
[src]

pub fn index<T>(self, arg: T) -> Index where
    T: Arg
[src]

pub fn args<T>(self, arg: T) -> Args<T>[src]

Auto Trait Implementations

impl RefUnwindSafe for r

impl Send for r

impl Sync for r

impl Unpin for r

impl UnwindSafe for r

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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

pub fn vzip(self) -> V