rethinkdb-rs
rethinkdb-rs copied to clipboard
A native RethinkDB driver written in Rust
I'm trying to understand how to use RethinkDB in rust. I'm using RethinkDB to power a GraphQL endpoint (using `juniper`). Static single document queries seem to not be an issue,...
I'm not sure if I'm missing something, db("abc").table_create only takes one argument and it's a string whereas rethinkdb should normally take the table name and options. I'm trying to set...
While building an alternative import tool for rethinkdb using Rust, I found myself trying to create index using the binary representation, as exported by the official export tool. However, the...
can not using `reql::Command` in `serde:json!` because `serde::Serialize` behavior ```rust let command = r .table("users") .insert(json!({ "id": r.uuid(), // error "age": r.expr(16), // error "created": r.now() // error })); ```...
[http://rystsov.info/2012/09/01/cas.html](https://archive.is/OG6EE) [http://rystsov.info/2016/03/02/cross-shard-txs.html](https://archive.is/GaSHc) https://github.com/rystsov/mongodb-transaction-example https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/ https://www.cockroachlabs.com/blog/how-cockroachdb-distributes-atomic-transactions/ https://github.com/cockroachdb/cockroach/blob/master/docs/design.md#lock-free-distributed-transactions The API would possibly look like:- ```rust r.transaction(|txn| { // Multi-document ReQL queries here }) ```
Docs
Having a hard time with the docs and examples. Can anyone point me to examples or tutorials for newbies like me. Like creating a database and table using the rethinkdb-rs...
See https://github.com/rethinkdb-rs/reql/issues/18#issuecomment-341907239 for some background.
I can't find `tableList` or `table_list` anywhere in the `r` struct. Is it possible to use?
How i can use skip args? ```rust r.table("table").limit(10 as isize).skip(25 as isize) ``` nah, that skip can't work and doesn't have implementor like in limit command
`r.get_all` does not seem to support compound indexes. Example Code: ```rust r.table("users").get_all(r.args(( [id, team_id], get_all::Options::default().index("compound_user_team"), ))) ``` ("compound_user_team" is an created index for the fields "id" and "team_id") Returns no...