changelog shortlog graph tags branches changeset file revisions annotate raw help

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

revision 17: c7165d93a9eb
child 69: 55fbe0e45b62
     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+}