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::{BoundInputSlice, ColumnarBulkInserter},
33    connection::{escape_attribute_value, Connection, ConnectionOptions},
34    conversion::{decimal_text_to_i128, decimal_text_to_i32, decimal_text_to_i64},
35    cursor::{
36        BlockCursor, BlockCursorPolling, ConcurrentBlockCursor, Cursor, CursorImpl, CursorPolling,
37        CursorRow, RowSetBuffer, TruncationInfo,
38    },
39    driver_complete_option::DriverCompleteOption,
40    environment::{environment, DataSourceInfo, DriverInfo, Environment},
41    error::{Error, TooLargeBufferSize},
42    fixed_sized::Bit,
43    handles::{ColumnDescription, DataType, Nullability},
44    into_parameter::IntoParameter,
45    narrow::Narrow,
46    nullable::Nullable,
47    parameter::{InOut, Out, OutputParameter},
48    parameter_collection::{ParameterCollection, ParameterCollectionRef, ParameterTupleElement},
49    preallocated::{Preallocated, PreallocatedPolling},
50    prepared::Prepared,
51    result_set_metadata::ResultSetMetadata,
52    sleep::Sleep,
53    statement_connection::StatementConnection,
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;