tarantool-rs
- Asyncronous Tokio-based client for Tarantool (WIP)tarantool-rs
- asyncronous Tokio-based client for Tarantool.
Documentation available on docs.rs.
Supported and tested Tarantool versions
*2.10.x
.
Other (especially newer) should work as well, but not tested. Versions below 2.10.x
doesn't have transactions support, so transaction API won't work.
If you have clients
space with 2 "columns": id
and name
:
rust
let conn = Connection::builder().build("127.0.0.1:3301").await?;
let space = conn.get_space("clients").await?.expect("clients space exists");
space.insert(vec![1.into(), "John Doe".into()]).await?;
let clients = space.select::<(i64, String)>(None, None, Some(IteratorType::All), vec![]).await?;
For more examples of how to use this crate check examples/
folder.