| 1 |
pub use database::{Database, DatabaseOpenOptions}; |
| 2 |
#[cfg(master3)] |
| 3 |
pub use encrypted_database::{EncryptedDatabase, EncryptedDatabaseOpenOptions}; |
| 4 |
|
| 5 |
mod database; |
| 6 |
#[cfg(master3)] |
| 7 |
mod encrypted_database; |
| 8 |
|
| 9 |
/// Statistics for a database in the environment. |
| 10 |
#[derive(Debug, Clone, Copy)] |
| 11 |
pub struct DatabaseStat { |
| 12 |
/// Size of a database page. |
| 13 |
/// This is currently the same for all databases. |
| 14 |
pub page_size: u32, |
| 15 |
/// Depth (height) of the B-tree. |
| 16 |
pub depth: u32, |
| 17 |
/// Number of internal (non-leaf) pages |
| 18 |
pub branch_pages: usize, |
| 19 |
/// Number of leaf pages. |
| 20 |
pub leaf_pages: usize, |
| 21 |
/// Number of overflow pages. |
| 22 |
pub overflow_pages: usize, |
| 23 |
/// Number of data items. |
| 24 |
pub entries: usize, |
| 25 |
} |