[−][src]Crate odbc_safe
A crate for writing odbc clients in safe Rust
This crate is only concerned about providing safe bindings to ODBC. It does not try to provide convinience or idiomatic usage on top. This is left to higher level crates.
Desgin decisions:
- Constructing a child is not considered to mutate the parent. This is necessare so a parent handle can be referenced by several child handles.
- Any transition in the ODBC State machine is modelled in the type system. This prevents Function Sequence errors. See [ODBC State Transition Tables][1] [1]: https://docs.microsoft.com/sql/odbc/reference/appendixes/appendix-b-odbc-state-transition-tables
Re-exports
pub extern crate odbc_sys as sys; |
pub use return_::Success; |
pub use return_::Info; |
pub use return_::Error; |
Structs
Connected | An |
DataSource | A |
DiagResult | Result of |
Environment | An |
NoVersion | Used to indicate that the ODBC environments version is not yet declared |
Odbc3 | Used to declare ODBC 3 specifications. |
Odbc3m8 | Used to declare ODBC 3.8 specifications. |
Statement | A |
Unconnected | An |
Enums
AutocommitOff | State used by |
AutocommitOn | State used by |
DataType | Describes a column or parameter type. |
Indicator | Used to indicate the required target buffer length. |
NoCursor | State used by |
Open | Cursor state of |
Positioned | Cursor state of |
Prepared | State used by |
Return | Holds result and indicates the overall success or failure of a function. |
ReturnOption | Holds result and indicates the overall success or failure of a function. |
Unprepared | State used by |
Traits
AutocommitMode | Marker trait for autocommit mode state types |
CDataType | See [C Data Types in ODBC][1] [1]: https://docs.microsoft.com/sql/odbc/reference/develop-app/c-data-types-in-odbc |
CursorState | Implemented by the |
Diagnostics | A type implementing this trait is able to provide diagnostic information regarding the last method call. |
HDbcWrapper | Implemented by |
Handle | Basic functionality for all wrappers around ODBC Handles |
SqlStr | A type implementing this trait can be passed as a string argument in API calls |
Version | Type indicates an ODBC Version |
Type Definitions
Connection |
|
ResultSet | Shorthand for |