Struct pg_setup::PostgresDBBuilder
source · pub struct PostgresDBBuilder { /* private fields */ }Expand description
Builder to construct a PostgresDB.
Implementations§
source§impl PostgresDBBuilder
impl PostgresDBBuilder
pub fn new(db_uri: impl ToString) -> Self
sourcepub fn keep_db(self) -> Self
pub fn keep_db(self) -> Self
When set, does not drop the DB when PostgresDB goes out of scope.
sourcepub fn schema(self, schema: impl ToString) -> Self
pub fn schema(self, schema: impl ToString) -> Self
The postgres schema to use. Defaults to "public".