Struct reql::Command[][src]

pub struct Command { /* fields omitted */ }
Expand description

The query that will be sent to RethinkDB

Implementations

impl<'a> Command[src]

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

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

Create a table

A RethinkDB table is a collection of JSON documents.

Example

Create a table named “dc_universe” with the default settings.

r.db("heroes").table_create("dc_universe").run(conn)
   {
       "config_changes": [
           {
               "new_val": {
                   "db": "test",
                   "durability":  "hard",
                   "id": "20ea60d4-3b76-4817-8828-98a236df0297",
                   "name": "dc_universe",
                   "primary_key": "id",
                   "shards": [
                       {
                           "primary_replica": "rethinkdb_srv1",
                           "replicas": [
                               "rethinkdb_srv1",
                               "rethinkdb_srv2"
                           ]
                       }
                   ],
                   "write_acks": "majority"
               },
               "old_val": None
           }
       ],
       "tables_created": 1
   }
       ```

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

pub fn table_list(self) -> Self[src]

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

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

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

pub fn index_list(self) -> Self[src]

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

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

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

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

pub fn get_write_hook(self) -> Self[src]

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

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

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

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

pub fn sync(self) -> Self[src]

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

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

pub fn between<T>(self, arg: T) -> Self where
    T: Arg<'a>, 
[src]

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

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

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

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

pub fn zip(self) -> Self[src]

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

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

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

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

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

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

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

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

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

pub fn is_empty(self) -> Self[src]

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

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

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

pub fn ungroup(self) -> Self[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn keys(self) -> Self[src]

pub fn values(self) -> Self[src]

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

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

pub fn upcase(self) -> Self[src]

pub fn downcase(self) -> Self[src]

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

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

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

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

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

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

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

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

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

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

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

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

pub fn bit_not(self) -> Self[src]

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

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

pub fn round(self) -> Self[src]

pub fn ceil(self) -> Self[src]

pub fn floor(self) -> Self[src]

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

pub fn timezone(self) -> Self[src]

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

pub fn date(self) -> Self[src]

pub fn time_of_day(self) -> Self[src]

pub fn year(self) -> Self[src]

pub fn month(self) -> Self[src]

pub fn day(self) -> Self[src]

pub fn day_of_week(self) -> Self[src]

pub fn day_of_year(self) -> Self[src]

pub fn hours(self) -> Self[src]

pub fn minutes(self) -> Self[src]

pub fn seconds(self) -> Self[src]

pub fn to_iso8601(self) -> Self[src]

pub fn to_epoch_time(self) -> Self[src]

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

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

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

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

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

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

pub fn type_of(self) -> Self[src]

pub fn info(self) -> Self[src]

pub fn to_json(self) -> Self[src]

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

pub fn fill(self) -> Self[src]

pub fn to_geojson(self) -> Self[src]

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

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

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

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

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

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

pub fn config(self) -> Self[src]

pub fn rebalance(self) -> Self[src]

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

pub fn status(self) -> Self[src]

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

pub fn run<A, T>(self, arg: A) -> impl Stream<Item = Result<T>> where
    A: Arg,
    T: Unpin + DeserializeOwned
[src]

Trait Implementations

impl<T> Add<T> for Command where
    T: Arg
[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, arg: T) -> Self[src]

Performs the + operation. Read more

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl<'a> Arg<'a> for Command[src]

fn arg(self) -> Arg<Options<'a>>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<Options>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<Options>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self, parent: Option<Command>) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<Options>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<Options>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<Options>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<Options>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<()>[src]

impl Arg for Command[src]

fn arg(self) -> Arg<Options>[src]

impl<T> BitAnd<T> for Command where
    T: Arg
[src]

type Output = Self

The resulting type after applying the & operator.

fn bitand(self, arg: T) -> Self[src]

Performs the & operation. Read more

impl<T> BitOr<T> for Command where
    T: Arg
[src]

type Output = Self

The resulting type after applying the | operator.

fn bitor(self, arg: T) -> Self[src]

Performs the | operation. Read more

impl<T> BitXor<T> for Command where
    T: Arg
[src]

type Output = Self

The resulting type after applying the ^ operator.

fn bitxor(self, arg: T) -> Self[src]

Performs the ^ operation. Read more

impl Clone for Command[src]

fn clone(&self) -> Command[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Command[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<T> Div<T> for Command where
    T: Arg
[src]

type Output = Self

The resulting type after applying the / operator.

fn div(self, arg: T) -> Self[src]

Performs the / operation. Read more

impl<const N: usize> From<[Command; N]> for Command[src]

fn from(arr: [Command; N]) -> Self[src]

Performs the conversion.

impl From<Result<Datum, Error>> for Command[src]

fn from(result: Result<Datum>) -> Self[src]

Performs the conversion.

impl<T> Mul<T> for Command where
    T: Arg
[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, arg: T) -> Self[src]

Performs the * operation. Read more

impl Not for Command[src]

type Output = Self

The resulting type after applying the ! operator.

fn not(self) -> Self[src]

Performs the unary ! operation. Read more

impl<T> Rem<T> for Command where
    T: Arg
[src]

type Output = Self

The resulting type after applying the % operator.

fn rem(self, arg: T) -> Self[src]

Performs the % operation. Read more

impl<T> Sub<T> for Command where
    T: Arg
[src]

type Output = Self

The resulting type after applying the - operator.

fn sub(self, arg: T) -> Self[src]

Performs the - operation. Read more

Auto Trait Implementations

impl !RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl !UnwindSafe for Command

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]