9 releases

0.0.10 Oct 3, 2023
0.0.9 Sep 23, 2023
0.0.7 Aug 23, 2023
0.0.3 Jul 30, 2023
0.0.2 May 17, 2023

#1244 in Database interfaces

Download history 37/week @ 2024-01-04 44/week @ 2024-01-11 88/week @ 2024-01-18 24/week @ 2024-01-25 11/week @ 2024-02-08 46/week @ 2024-02-15 29/week @ 2024-02-22 15/week @ 2024-02-29 58/week @ 2024-03-07 53/week @ 2024-03-14 14/week @ 2024-03-21 9/week @ 2024-03-28 123/week @ 2024-04-04 14/week @ 2024-04-11 47/week @ 2024-04-18

193 downloads per month

MIT license

150KB
3.5K SLoC

tarantool-rs - Asyncronous Tokio-based client for Tarantool (WIP)

Crates.io docs.rs CI

tarantool-rs - asyncronous Tokio-based client for Tarantool.

Documentation available on docs.rs.

Supported Traantool versions

Supported and tested Tarantool versions:

  • 2.10.x;
  • 2.11.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.

Example

If you have clients space with 2 "columns": id and name:

let conn = Connection::builder().build("127.0.0.1:3301").await?;
let space = conn.space("clients").await?.expect("clients space exists");
space.insert((1, "John Doe")).await?;
let clients = space.select::<(i64, String), _>(None, None, Some(IteratorType::All), ()).await?;

For more examples of how to use this crate check examples/ folder.

Features

  • authorization
  • evaluating Lua expressions
  • remote function calling
  • CRUD operations
  • transaction control (begin/commit/rollback)
  • reconnection in background
  • SQL requests
  • chunked responses
  • watchers and events
  • connection pooling
  • automatic schema fetching and reloading
  • graceful shutdown protocol support
  • pre Tarantool 2.10 versions support
  • customizable connection features (streams/watchers/mvcc)
  • custom Tarantool MP types (UUID, ...)
  • ...

Dependencies

~8–18MB
~218K SLoC