embedded_td/config/
tx_index.rs

1#[derive(Debug, Clone, Default)]
2pub enum TxIndexConfig {
3    Null,
4    #[default]
5    Kv,
6    Psql(String),
7}
8
9impl TxIndexConfig {
10    pub fn to_str(&self) -> &'static str {
11        match self {
12            TxIndexConfig::Null => "null",
13            TxIndexConfig::Kv => "kv",
14            TxIndexConfig::Psql(_) => "psql",
15        }
16    }
17}