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;
24mod statement_connection;
25
26pub mod buffers;
27pub mod guide;
28pub mod handles;
29pub mod parameter;
30
31pub use self::{
32    columnar_bulk_inserter::{
33        BoundInputSlice, ColumnarBulkInserter, InOrder, InputParameterMapping,
34    },
35    connection::{Connection, ConnectionOptions, escape_attribute_value},
36    conversion::{decimal_text_to_i32, decimal_text_to_i64, decimal_text_to_i128},
37    cursor::{
38        BlockCursor, BlockCursorPolling, ConcurrentBlockCursor, Cursor, CursorImpl, CursorPolling,
39        CursorRow, RowSetBuffer, TruncationInfo,
40    },
41    driver_complete_option::DriverCompleteOption,
42    environment::{DataSourceInfo, DriverInfo, Environment, environment},
43    error::{Error, TooLargeBufferSize},
44    fixed_sized::Bit,
45    handles::{ColumnDescription, DataType, Nullability},
46    into_parameter::IntoParameter,
47    narrow::Narrow,
48    nullable::Nullable,
49    parameter::{InOut, Out, OutputParameter},
50    parameter_collection::{ParameterCollection, ParameterCollectionRef, ParameterTupleElement},
51    preallocated::{Preallocated, PreallocatedPolling},
52    prepared::Prepared,
53    result_set_metadata::ResultSetMetadata,
54    sleep::Sleep,
55    statement_connection::StatementConnection,
56};
57
58/// Reexports `odbc-sys` as sys to enable applications to always use the same version as this
59/// crate.
60pub use odbc_sys as sys;
61pub use widestring::{U16Str, U16String};
62
63// Reexport fetch if derive feature is enabled
64#[cfg(feature = "derive")]
65pub use odbc_api_derive::Fetch;