odbc_api/
lib.rs

1//! # About
2//!
3//! `odbc-api` enables you to write applications which utilize ODBC (Open Database Connectivity)
4//! standard to access databases. See the [`guide`] for more information and code
5//! examples.
6
7mod columnar_bulk_inserter;
8mod connection;
9mod conversion;
10mod cursor;
11mod driver_complete_option;
12mod environment;
13mod error;
14mod execute;
15mod fixed_sized;
16mod into_parameter;
17mod narrow;
18mod nullable;
19mod parameter_collection;
20mod preallocated;
21mod prepared;
22mod result_set_metadata;
23mod sleep;
24
25pub mod buffers;
26pub mod guide;
27pub mod handles;
28pub mod parameter;
29
30pub use self::{
31    columnar_bulk_inserter::{
32        BoundInputSlice, ColumnarBulkInserter, InOrder, InputParameterMapping,
33    },
34    connection::{Connection, ConnectionOptions, escape_attribute_value},
35    conversion::{decimal_text_to_i32, decimal_text_to_i64, decimal_text_to_i128},
36    cursor::{
37        BlockCursor, BlockCursorPolling, ConcurrentBlockCursor, Cursor, CursorImpl, CursorPolling,
38        CursorRow, RowSetBuffer, TruncationInfo,
39    },
40    driver_complete_option::DriverCompleteOption,
41    environment::{DataSourceInfo, DriverInfo, Environment, environment},
42    error::{Error, TooLargeBufferSize},
43    fixed_sized::Bit,
44    handles::{ColumnDescription, DataType, Nullability},
45    into_parameter::IntoParameter,
46    narrow::Narrow,
47    nullable::Nullable,
48    parameter::{InOut, Out, OutputParameter},
49    parameter_collection::{ParameterCollection, ParameterCollectionRef, ParameterTupleElement},
50    preallocated::{Preallocated, PreallocatedPolling},
51    prepared::Prepared,
52    result_set_metadata::ResultSetMetadata,
53    sleep::Sleep,
54};
55
56/// Reexports `odbc-sys` as sys to enable applications to always use the same version as this
57/// crate.
58pub use odbc_sys as sys;
59pub use widestring::{U16Str, U16String};
60
61// Reexport fetch if derive feature is enabled
62#[cfg(feature = "derive")]
63pub use odbc_api_derive::Fetch;