pub struct Config { /* private fields */ }
Expand description
Configuration builder
This allows to configure a database.
For full flexibility use from_pg_config
.
Implementations§
Source§impl Config
impl Config
Sourcepub fn from_pg_config(pg_config: PgConfig) -> Self
pub fn from_pg_config(pg_config: PgConfig) -> Self
Creates a config using the given PgConfig
.
Sourcepub fn migration_table(self, table: impl Into<String>) -> Self
pub fn migration_table(self, table: impl Into<String>) -> Self
Set’s the migration table name, by default it is migrations
.
Sourcepub fn pg_config_mut(&mut self) -> &mut PgConfig
pub fn pg_config_mut(&mut self) -> &mut PgConfig
Get’s a mutable reference to the PgConfig
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more