1.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2+++ b/rust/lib/obj/src/config/database.rs Sun Oct 22 23:03:15 2023 -0400
1.3@@ -0,0 +1,18 @@
1.4+//! cfg::config::database
1.5+//!
1.6+//! Database configuration primitives
1.7+use serde::{Deserialize, Serialize};
1.8+
1.9+#[derive(Serialize, Deserialize, Debug, Hash, PartialEq, Eq)]
1.10+pub struct DatabaseConfig {
1.11+ engine: DatabaseType,
1.12+ path: String,
1.13+ cfs: Vec<String>,
1.14+}
1.15+
1.16+#[derive(Serialize, Deserialize, Debug, Hash, PartialEq, Eq)]
1.17+pub enum DatabaseType {
1.18+ RocksDB,
1.19+ Postgres,
1.20+ Alch,
1.21+}