mod allowance;
#[cfg(feature = "wire")]
mod batch;
mod bucket;
mod buffer;
mod cells;
#[cfg(feature = "config")]
pub mod config;
mod counters;
mod encrypted;
mod engine;
#[cfg(test)]
pub(crate) mod fixture;
#[cfg(feature = "replication")]
pub(crate) mod forward;
mod key_call;
#[cfg(feature = "locks")]
pub mod locks;
mod once;
mod path;
mod quota;
mod rate_limit;
mod renewals;
mod scope;
mod tx;
mod value;
pub use allowance::{Allowance, Window};
pub use bucket::{All, Bucket, BucketBuilder, Entry, PAGE_KEYS, Page, Version};
pub use counters::{Counters, CountersBuilder};
pub use engine::Maintenance;
pub use key_call::KeyCall;
pub use once::{Once, OnceBuilder};
pub use path::Key;
pub use quota::{Quota, QuotaBuilder};
pub use rate_limit::{RateLimit, RateLimitBuilder};
pub use tx::{TxBucket, TxCounters};
pub use value::{Bytes, Value};
#[cfg(feature = "wire")]
pub(crate) use {
batch::{Batch, Outcome, Place},
cells::Cell,
once::{Hand, Waiter, hand, rows as once_rows},
path::MAX_PATH as MAX_KEY,
};
#[cfg(feature = "async")]
pub(crate) use bucket::{Proposed, UPDATE_ATTEMPTS, kept};
#[cfg(any(feature = "wire", all(feature = "async", feature = "replication")))]
pub(crate) use value::Raw;
#[cfg(any(feature = "wire", feature = "async"))]
pub(crate) use {
bucket::{Put, Stamp, WriteOptions},
once::Handed,
};
#[cfg(all(feature = "async", feature = "replication"))]
pub(crate) use once::AtHome;
#[cfg(all(feature = "sql", feature = "wire"))]
pub(crate) use {bucket::clear_work, tx::call_on_branch, tx::call_on_key};
#[cfg(feature = "backup")]
#[cfg(feature = "backup")]
pub(crate) use encrypted::keys_sealed_in;
#[cfg(feature = "client")]
pub(crate) use engine::{buckets, held};
use crate::{Result, Store};
pub fn maintain(store: &Store) -> Result<Maintenance> {
let kv = engine::Kv::of(store)?;
crate::sqlite::own_work(|| kv.maintain())
}