pub struct PgConfigBuilder { /* private fields */ }Expand description
Builder for PostgreSQL configuration.
Implementations§
Source§impl PgConfigBuilder
impl PgConfigBuilder
Sourcepub fn url(self, url: impl Into<String>) -> Self
pub fn url(self, url: impl Into<String>) -> Self
Set the database URL (parses all connection parameters).
Sourcepub fn connect_timeout(self, timeout: Duration) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
Set the connection timeout.
Sourcepub fn statement_timeout(self, timeout: Duration) -> Self
pub fn statement_timeout(self, timeout: Duration) -> Self
Set the statement timeout.
Sourcepub fn application_name(self, name: impl Into<String>) -> Self
pub fn application_name(self, name: impl Into<String>) -> Self
Set the application name.
Trait Implementations§
Source§impl Debug for PgConfigBuilder
impl Debug for PgConfigBuilder
Source§impl Default for PgConfigBuilder
impl Default for PgConfigBuilder
Source§fn default() -> PgConfigBuilder
fn default() -> PgConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PgConfigBuilder
impl RefUnwindSafe for PgConfigBuilder
impl Send for PgConfigBuilder
impl Sync for PgConfigBuilder
impl Unpin for PgConfigBuilder
impl UnwindSafe for PgConfigBuilder
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