1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! A simple but fast KV database (like )
//!
//! This crate provide an abstraction layer of AsyncDatabase. User can select which database to use
//! easily. Any struct implements [AsyncDatabase](./trait.AsyncDatabase.html) trait can construct a
//! TCP server.
//!
//! It actually also provides some implementation of it:
//!
//! - [Database](./struct.Database.html) stores data as LSM structure in disk.
//!
//! - [MemDatabase](./struct.MemDatabase.html) uses a lock-free skiplist to store data in Memory.
//! Note: with the increasing of the data size, it will become slower and slower.
//!
//! [TCP Server](./struct.Server.html) is built with [romio](struct.Server.html) and
//! [futures-preview](https://github.com/rust-lang-nursery/futures-rs). It spawns every connected tcp
//! stream on a ThreadPool.
//!
extern crate test;
extern crate quick_error;
pub use Server;
pub use MemDatabase;
pub use ;
pub use ;