use std::path::PathBuf;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("RocksDB error: {0}")]
Rocks(#[from] rocksdb::Error),
#[error("Serialization error: {0}")]
Serialization(String),
#[error("Deserialization error: {0}")]
Deserialization(String),
#[error("Column family not found: {0}")]
ColumnFamilyNotFound(String),
#[error("Invalid database path: {0}")]
InvalidPath(PathBuf),
#[error("Unexpected error: {0}")]
Other(String),
}
pub type Result<T> = std::result::Result<T, Error>;