rust-distributed-id 0.1.3

Rust version of the Twitter snowflake algorithm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod worker_dao;


// use lazy_static::lazy_static;
// use rbatis::rbatis::Rbatis;
//
// lazy_static! {
//     pub static ref RB: Rbatis=Rbatis::new();
// }
//
// pub async fn open() {
//     RB.link("mysql://root:root@127.0.0.1:3306/test")
//         .await
//         .expect("Couldn't open database");
// }