#![doc = include_str!("../README.md")]
pub use rawdb::{Database, Error as RawDBError, PAGE_SIZE, Reader, likely, unlikely};
#[cfg(feature = "derive")]
pub use vecdb_derive::{Bytes, Pco};
mod base;
mod bytes;
mod cursor;
mod error;
mod exit;
mod iterators;
mod ops;
mod stamp;
mod traits;
mod variants;
mod version;
use variants::*;
pub use base::*;
pub use bytes::*;
pub use cursor::*;
pub use error::*;
pub use exit::*;
pub use iterators::*;
pub use ops::*;
pub use stamp::*;
pub use traits::*;
pub use variants::*;
pub use version::*;
const ONE_KIB: usize = 1024;
const BUFFER_SIZE: usize = 512 * ONE_KIB;
const SIZE_OF_U64: usize = std::mem::size_of::<u64>();
pub(crate) const MMAP_CROSSOVER_BYTES: usize = 1024 * 1024 * 1024;