pub use dao::LeafDao;
pub use error::{Error, Result};
pub use segment::SegmentIDGen;
#[cfg(not(any(feature = "runtime-tokio", feature = "runtime-async-std")))]
compile_error!("one of 'runtime-async-std' or 'runtime-tokio' features must be enabled");
#[cfg(all(feature = "runtime-tokio", feature = "runtime-async-std"))]
compile_error!("only one of 'runtime-async-std' or 'runtime-tokio' features must be enabled");
pub mod dao;
pub mod error;
pub mod segment;
mod utils;
#[derive(Debug, Copy, Clone, serde::Deserialize, serde::Serialize)]
#[cfg_attr(
any(feature = "mysql", feature = "postgres", feature = "sqlite"),
derive(sqlx::FromRow)
)]
pub struct Leaf {
pub tag: i32,
pub max_id: i64,
pub step: i32,
}