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
Auto Trait Implementations§
impl Forget for ConnectionProfileBuilder
impl Freeze for ConnectionProfileBuilder
impl Move for ConnectionProfileBuilder
impl RefUnwindSafe for ConnectionProfileBuilder
impl Send for ConnectionProfileBuilder
impl Sync for ConnectionProfileBuilder
impl Unpin for ConnectionProfileBuilder
impl UnsafeUnpin 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