pub struct ConnectionProfileBuilder { /* private fields */ }Expand description
Builder for connection profiles.
Implementations§
Source§impl ConnectionProfileBuilder
impl ConnectionProfileBuilder
Sourcepub fn search_path<I, S>(self, schemas: I) -> Self
pub fn search_path<I, S>(self, schemas: I) -> Self
Set schema search path.
Sourcepub fn session_var(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn session_var( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Add a session variable.
Sourcepub fn statement_timeout(self, ms: u32) -> Self
pub fn statement_timeout(self, ms: u32) -> Self
Set statement timeout.
Sourcepub fn lock_timeout(self, ms: u32) -> Self
pub fn lock_timeout(self, ms: u32) -> Self
Set lock timeout.
Sourcepub fn build(self) -> ConnectionProfile
pub fn build(self) -> ConnectionProfile
Build the profile.
Trait Implementations§
Source§impl Clone for ConnectionProfileBuilder
impl Clone for ConnectionProfileBuilder
Source§fn clone(&self) -> ConnectionProfileBuilder
fn clone(&self) -> ConnectionProfileBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConnectionProfileBuilder
impl RefUnwindSafe for ConnectionProfileBuilder
impl Send for ConnectionProfileBuilder
impl Sync for ConnectionProfileBuilder
impl Unpin for ConnectionProfileBuilder
impl UnwindSafe for ConnectionProfileBuilder
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