Struct reql::Command [−][src]
pub struct Command { /* fields omitted */ }
Expand description
The query that will be sent to RethinkDB
Implementations
impl<'a> Command
[src]
impl<'a> Command
[src]pub fn changes<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn table_create<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]
T: Arg,
pub fn table_list(self) -> Self
[src]
pub fn table<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn index_create<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn index_drop<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn index_list(self) -> Self
[src]
pub fn index_rename<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn index_status<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn index_wait<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn set_write_hook<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn get_write_hook(self) -> Self
[src]
pub fn insert<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn update<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn replace<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn delete<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn sync(self) -> Self
[src]
pub fn get<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn get_all<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn between<T>(self, arg: T) -> Self where
T: Arg<'a>,
[src]
T: Arg<'a>,
pub fn filter<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn inner_join<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn outer_join<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn eq_join<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn zip(self) -> Self
[src]
pub fn map<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn with_fields<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn concat_map<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn order_by<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn skip<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn limit<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn slice<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn nth<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn offsets_of<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn is_empty(self) -> Self
[src]
pub fn union<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn sample<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn group<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn ungroup(self) -> Self
[src]
pub fn reduce<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn fold<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn count<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn sum<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn avg<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn min<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn max<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn distinct<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn contains<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn pluck<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn without<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn merge<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn append<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn prepend<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn difference<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn set_insert<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn set_union<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn set_intersection<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn set_difference<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn bracket<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn get_field<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn has_fields<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn insert_at<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn splice_at<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn delete_at<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn change_at<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn keys(self) -> Self
[src]
pub fn values(self) -> Self
[src]
pub fn match_<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn split<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn upcase(self) -> Self
[src]
pub fn downcase(self) -> Self
[src]
pub fn and<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn or<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn eq<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn ne<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn gt<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn ge<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn lt<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn le<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn not<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn bit_and<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn bit_or<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn bit_xor<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn bit_not(self) -> Self
[src]
pub fn bit_sal<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn bit_sar<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
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]
T: Arg,
pub fn timezone(self) -> Self
[src]
pub fn during<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
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]
T: Arg,
pub fn do_<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn branch<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn for_each<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn default<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn coerce_to<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
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]
T: Arg,
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]
T: Arg,
pub fn get_nearest<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn includes<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn intersects<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn polygon_sub<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn grant<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn config(self) -> Self
[src]
pub fn rebalance(self) -> Self
[src]
pub fn reconfigure<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn status(self) -> Self
[src]
pub fn wait<T>(self, arg: T) -> Self where
T: Arg,
[src]
T: Arg,
pub fn run<A, T>(self, arg: A) -> impl Stream<Item = Result<T>> where
A: Arg,
T: Unpin + DeserializeOwned,
[src]
A: Arg,
T: Unpin + DeserializeOwned,
Trait Implementations
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
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]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,