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
Default matching for connections returned from the pool
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AttrCpMatch
impl Send for AttrCpMatch
impl Sync for AttrCpMatch
impl Unpin for AttrCpMatch
impl UnwindSafe for AttrCpMatch
Blanket Implementations
Mutably borrows from an owned value. Read more