fdb/
lib.rs

1#![warn(
2    missing_debug_implementations,
3    missing_docs,
4    rust_2018_idioms,
5    unreachable_pub
6)]
7
8//! FoundationDB Client API for Tokio
9//!
10//! Guide level documentation is on our [website]. You will find API
11//! level documentation here.
12//!
13//! [website]: https://fdb-rs.github.io/docs/getting-started/introduction/
14
15mod fdb;
16mod key_value;
17mod option;
18
19#[cfg(feature = "fdb-7_1")]
20mod mapped_key_value;
21
22#[cfg(feature = "fdb-7_1")]
23mod mapped_range;
24
25pub mod database;
26pub mod error;
27pub mod future;
28pub mod range;
29pub mod subspace;
30pub mod transaction;
31pub mod tuple;
32
33#[cfg(feature = "fdb-7_1")]
34pub mod tenant;
35
36/// Maximum API version supported by the client
37pub use fdb_sys::FDB_API_VERSION;
38
39pub use crate::fdb::{select_api_version, set_network_option, start_network, stop_network};
40
41pub use crate::key_value::{Key, KeySelector, KeyValue, Value};
42
43pub use crate::database::open_database::open_database;
44
45pub use crate::option::NetworkOption;
46
47#[cfg(feature = "fdb-7_1")]
48pub use crate::mapped_key_value::{MappedKeyValue, Mapper};
49
50#[cfg(feature = "fdb-7_1")]
51pub use crate::tenant::tenant_inner::Tenant;