1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
use crate::Pointer;
#[repr(i32)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum EnvironmentAttribute {
OdbcVersion = 200,
ConnectionPooling = 201,
CpMatch = 202,
OutputNts = 10001,
}
#[repr(i32)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum AttrOdbcVersion {
Odbc3 = 3,
#[cfg(feature = "odbc_version_3_80")]
Odbc3_80 = 380,
#[cfg(feature = "odbc_version_4")]
Odbc4 = 400,
}
impl From<AttrOdbcVersion> for Pointer {
fn from(source: AttrOdbcVersion) -> Pointer {
source as i32 as Pointer
}
}
#[repr(u32)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum AttrConnectionPooling {
Off = 0,
OnePerDriver = 1,
OnePerHenv = 2,
DriverAware = 3,
}
impl Default for AttrConnectionPooling {
fn default() -> Self {
AttrConnectionPooling::Off
}
}
impl From<AttrConnectionPooling> for Pointer {
fn from(source: AttrConnectionPooling) -> Pointer {
source as u32 as Pointer
}
}
#[repr(u32)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum AttrCpMatch {
Strict = 0,
Relaxed = 1,
}
impl Default for AttrCpMatch {
fn default() -> Self {
AttrCpMatch::Strict
}
}
impl From<AttrCpMatch> for Pointer {
fn from(source: AttrCpMatch) -> Pointer {
source as u32 as Pointer
}
}