1#![cfg_attr(feature = "bench", feature(test))]
5
6mod btree;
7mod column;
8mod compress;
9mod db;
10mod display;
11mod error;
12mod file;
13mod hash;
14mod index;
15mod log;
16mod migration;
17mod options;
18mod parking_lot;
19mod stats;
20mod table;
21
22pub use btree::BTreeIterator;
23pub use column::{ColId, ValueIterState};
24pub use compress::CompressionType;
25pub use db::{check::CheckOptions, Db, Operation, Value};
26#[cfg(feature = "instrumentation")]
27pub use error::set_number_of_allowed_io_operations;
28pub use error::{Error, Result};
29pub use migration::{clear_column, migrate};
30pub use options::{ColumnOptions, Options};
31pub use stats::{ColumnStatSummary, StatSummary};
32
33pub const KEY_SIZE: usize = 32;
34pub type Key = [u8; KEY_SIZE];
35
36#[cfg(not(any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "loongarch64")))]
37compile_error!("parity-db only supports x86_64, aarch64 and loongarch64 (unofficially)");
38
39#[cfg(not(target_endian = "little"))]
40compile_error!("parity-db only supports little-endian platforms");