mod connect;
pub use connect::TiKV;

pub mod backend;
pub mod types;

mod base;

pub use base::{TitoModel, SetBuilder, GetBuilder, GetManyBuilder};

mod utils;

pub mod queue;

pub mod query;

mod key_encoder;

mod error;

pub mod index;

pub mod relationship;

pub use error::TitoError;
pub use types::{
    PartitionConfig, TitoEngine, TitoModelOptions, TitoModelTrait,
    PARTITION_DIGITS,
};

// Re-export queue types at crate root for convenience
pub use queue::{EventType, Queue, QueueConfig, QueueEvent, TitoQueue, WorkerConfig};

pub mod backup;

pub use utils::next_string_lexicographically;
