refactor(storage): Add a separate crate to represent store implementations (#1853)

This commit is contained in:
Sampras Lopes
2023-08-10 12:55:02 +05:30
committed by GitHub
parent a95fa58179
commit 32b731d959
14 changed files with 855 additions and 425 deletions

View File

@ -0,0 +1,12 @@
use masking::Secret;
#[derive(Debug, Clone)]
pub struct Database {
pub username: String,
pub password: Secret<String>,
pub host: String,
pub port: u16,
pub dbname: String,
pub pool_size: u32,
pub connection_timeout: u64,
}