#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc(html_root_url = "https://docs.rs/entelix-persistence/0.5.3")]
#![deny(missing_docs)]
#![allow(
clippy::needless_pass_by_value,
clippy::missing_const_for_fn,
clippy::redundant_closure,
clippy::redundant_closure_for_method_calls,
clippy::cast_possible_truncation,
clippy::cast_precision_loss,
clippy::cast_sign_loss,
clippy::cast_lossless,
clippy::cast_possible_wrap,
clippy::indexing_slicing,
clippy::expect_used,
clippy::single_match_else,
clippy::manual_let_else,
clippy::needless_pass_by_ref_mut
)]
pub mod advisory_key;
pub mod error;
pub mod lock;
pub mod schema_version;
#[cfg(feature = "postgres")]
#[cfg_attr(docsrs, doc(cfg(feature = "postgres")))]
pub mod postgres;
#[cfg(feature = "redis")]
#[cfg_attr(docsrs, doc(cfg(feature = "redis")))]
pub mod redis;
pub use advisory_key::AdvisoryKey;
pub use error::{PersistenceError, PersistenceResult};
pub use lock::{DistributedLock, LockGuard, with_session_lock};
pub use schema_version::SessionSchemaVersion;