Enum odbc_sys::AttrCpMatch
source · #[repr(u32)]
pub enum AttrCpMatch {
Strict,
Relaxed,
}
Expand description
Determines how a connection is chosen from a connection pool.
Possible values for CpMatch
attribute set with crate::SQLSetEnvAttr
to define which connection
attributes must match for a connection returned from the pool
Variants§
Strict
Only connections that exactly match the connection options in the call and the connection attributes set by the application are reused. This is the default.
Relaxed
Connections with matching connection string keywords can be used. Keywords must match, but not all connection attributes must match.
Trait Implementations§
source§impl Clone for AttrCpMatch
impl Clone for AttrCpMatch
source§fn clone(&self) -> AttrCpMatch
fn clone(&self) -> AttrCpMatch
Returns a copy 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 moresource§impl Debug for AttrCpMatch
impl Debug for AttrCpMatch
source§impl Default for AttrCpMatch
impl Default for AttrCpMatch
Default matching for connections returned from the pool
source§impl From<AttrCpMatch> for Pointer
impl From<AttrCpMatch> for Pointer
source§fn from(source: AttrCpMatch) -> Pointer
fn from(source: AttrCpMatch) -> Pointer
Converts to this type from the input type.
source§impl PartialEq<AttrCpMatch> for AttrCpMatch
impl PartialEq<AttrCpMatch> for AttrCpMatch
source§fn eq(&self, other: &AttrCpMatch) -> bool
fn eq(&self, other: &AttrCpMatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.