mockgres 0.0.27

An in-memory database that replicates a reasonable subset of Postgres functionality to make unit tests that rely on a database to run.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Clone, Debug)]
pub struct ServerConfig {
    pub database_name: String,
}

impl Default for ServerConfig {
    fn default() -> Self {
        Self {
            database_name: "postgres".to_string(),
        }
    }
}