pub struct PostgresOptions {
pub statement_cache_capacity: usize,
pub prepared_statements: bool,
pub channel_binding: Option<String>,
pub target_session_attrs: Option<String>,
}Expand description
PostgreSQL-specific options.
Fields§
§statement_cache_capacity: usizeStatement cache capacity.
prepared_statements: boolEnable prepared statements.
channel_binding: Option<String>Channel binding mode.
target_session_attrs: Option<String>Target session attributes.
Implementations§
Source§impl PostgresOptions
impl PostgresOptions
Sourcepub fn statement_cache(self, capacity: usize) -> Self
pub fn statement_cache(self, capacity: usize) -> Self
Set statement cache capacity.
Sourcepub fn prepared_statements(self, enabled: bool) -> Self
pub fn prepared_statements(self, enabled: bool) -> Self
Enable/disable prepared statements.
Trait Implementations§
Source§impl Clone for PostgresOptions
impl Clone for PostgresOptions
Source§fn clone(&self) -> PostgresOptions
fn clone(&self) -> PostgresOptions
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostgresOptions
impl Debug for PostgresOptions
Source§impl Default for PostgresOptions
impl Default for PostgresOptions
Source§fn default() -> PostgresOptions
fn default() -> PostgresOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PostgresOptions
impl RefUnwindSafe for PostgresOptions
impl Send for PostgresOptions
impl Sync for PostgresOptions
impl Unpin for PostgresOptions
impl UnwindSafe for PostgresOptions
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)