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
#![warn(missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts,
trivial_numeric_casts, unused_import_braces, unused_qualifications
)]
pub extern crate odbc_sys as sys;
pub use c_data_type::CDataType;
pub use data_source::{HDbcWrapper, DataSource, Unconnected, Connected, AutocommitOff, AutocommitOn, AutocommitMode};
pub use data_type::DataType;
pub use diagnostics::{Diagnostics, DiagResult};
pub use environment::Environment;
pub use handles::Handle;
pub use indicator::Indicator;
pub use return_::{Return, Success, Info, Error};
pub use return_option::ReturnOption;
pub use sql_str::SqlStr;
pub use statement::{Statement, NoCursor, Open, Positioned, Unprepared, Prepared, CursorState};
pub use version::{NoVersion, Odbc3, Odbc3m8};
pub use version::Version;
use output_buffer::OutputBuffer;
use handles::{HEnv, HDbc, HStmt};
mod version;
mod return_;
mod return_option;
mod sql_str;
mod handles;
mod diagnostics;
mod environment;
mod data_source;
mod statement;
mod c_data_type;
mod indicator;
mod data_type;
mod output_buffer;
pub type Connection<'env, AC> = DataSource<'env, Connected<'env, AC>>;
pub type ResultSet<'con, 'param, 'col, P> = Statement<'con, 'param, 'col, Open, P>;