changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / rust/lib/obj/src/config/database.rs

changeset 69: 55fbe0e45b62
parent: c7165d93a9eb
author: ellis <ellis@rwest.io>
date: Sat, 02 Dec 2023 23:31:56 -0500
permissions: -rw-r--r--
description: rust krypt
1 //! cfg::config::database
2 //!
3 //! Database configuration primitives
4 use serde::{Deserialize, Serialize};
5 
6 #[derive(
7  Serialize, Deserialize, Debug, Hash, PartialEq, Eq, Clone, Default,
8 )]
9 pub struct DatabaseConfig {
10  engine: DatabaseType,
11  path: String,
12  cfs: Vec<String>,
13 }
14 
15 #[derive(
16  Serialize, Deserialize, Debug, Hash, PartialEq, Eq, Clone, Default,
17 )]
18 pub enum DatabaseType {
19  #[default]
20  RocksDB,
21  Alch,
22 }