tinystore 0.7.0

A small storage runtime for applications on SQLite: SQL, key-value state, durable jobs, files, search, logs and metrics in one directory
Documentation
//! TinyStore: an embedded data runtime on SQLite.
//!
//! One directory, held by one [`Store`] through its `LOCK`, a file per engine.
//! The store gives every engine the clock it reads, the memory budget its work
//! reserves from, the background work it runs and the errors they all share.

#[cfg(feature = "async")]
pub mod aio;
#[cfg(feature = "backup")]
pub mod backup;
#[cfg(feature = "blobs")]
pub mod blobs;
#[cfg(any(feature = "metrics", feature = "records"))]
mod calendar;
#[cfg(any(feature = "store", feature = "mcp"))]
mod cancel;
#[cfg(feature = "channels")]
pub mod channels;
mod clock;
#[cfg(any(feature = "records", feature = "metrics", feature = "search", feature = "backup"))]
mod compress;
#[cfg(feature = "config-load")]
pub mod config;
#[cfg(feature = "console")]
pub mod console;
#[cfg(any(feature = "kv", feature = "blobs", feature = "backup", feature = "replication"))]
mod durable;
#[cfg(feature = "kv")]
mod encryption;
#[cfg(feature = "store")]
pub mod engine;
mod error;
#[cfg(all(
    feature = "sql",
    any(feature = "kv", feature = "jobs", feature = "blobs", feature = "search", feature = "records")
))]
mod inside;
#[cfg(feature = "jobs")]
pub mod jobs;
mod key;
#[cfg(feature = "kv")]
pub mod kv;
pub mod limits;
#[cfg(all(feature = "records", feature = "config"))]
mod log_config;
#[cfg(feature = "mcp")]
pub mod mcp;
#[cfg(feature = "locks")]
pub use kv::locks;
#[cfg(feature = "store")]
mod memory;
#[cfg(feature = "metrics")]
pub mod metrics;
#[cfg(feature = "wire")]
pub mod pipe;
#[cfg(feature = "store")]
mod polled;
#[cfg(any(feature = "wire", all(feature = "async", feature = "store")))]
mod pool;
#[cfg(feature = "store")]
mod probe;
#[cfg(feature = "records")]
pub mod records;
#[cfg(feature = "replication")]
pub mod replication;
#[cfg(feature = "store")]
mod schedule;
#[cfg(feature = "search")]
pub mod search;
#[cfg(any(feature = "blobs", feature = "metrics", feature = "replication"))]
mod space;
#[cfg(feature = "sql")]
pub mod sql;
#[cfg(feature = "store")]
pub(crate) mod sqlite;
#[cfg(feature = "store")]
mod store;
#[cfg(any(feature = "store", feature = "config-load", feature = "mcp"))]
mod sync;
#[cfg(all(test, any(feature = "channels", feature = "locks", feature = "jobs", feature = "mcp")))]
mod testing;
mod text;
#[cfg(all(feature = "async", feature = "store"))]
mod timer;
#[cfg(any(feature = "kv", feature = "jobs", feature = "sql"))]
mod transaction;
#[cfg(feature = "typos")]
pub mod typos;
#[cfg(feature = "wire")]
pub(crate) mod wire;

#[cfg(feature = "client")]
#[doc(hidden)]
pub use wire::client;

#[cfg(any(feature = "metrics", feature = "records"))]
pub use calendar::Calendar;
#[cfg(any(feature = "store", feature = "mcp"))]
pub use cancel::CancellationToken;
pub use clock::{Clock, SystemClock, TestClock, unix_millis, unix_nanos};
pub use error::{Constraint, ConstraintKind, Error, ErrorKind, Result};
pub use key::Key;
#[cfg(feature = "store")]
pub use memory::{Memory, Reservation};
#[cfg(feature = "store")]
pub use sqlite::Durability;
#[cfg(feature = "store")]
pub use store::{Options, Store};
#[cfg(any(feature = "kv", feature = "jobs"))]
pub use transaction::Tx;
#[cfg(any(feature = "kv", feature = "jobs", feature = "sql"))]
pub use transaction::{Transaction, TxHandle};