odbc_api/
lib.rs

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
55
56
57
58
59
60
61
62
63
//! # About
//!
//! `odbc-api` enables you to write applications which utilize ODBC (Open Database Connectivity)
//! standard to access databases. See the [`guide`] for more information and code
//! examples.

mod columnar_bulk_inserter;
mod connection;
mod conversion;
mod cursor;
mod driver_complete_option;
mod environment;
mod error;
mod execute;
mod fixed_sized;
mod into_parameter;
mod narrow;
mod nullable;
mod parameter_collection;
mod preallocated;
mod prepared;
mod result_set_metadata;
mod sleep;
mod statement_connection;

pub mod buffers;
pub mod guide;
pub mod handles;
pub mod parameter;

pub use self::{
    columnar_bulk_inserter::{BoundInputSlice, ColumnarBulkInserter},
    connection::{escape_attribute_value, Connection, ConnectionOptions},
    conversion::decimal_text_to_i128,
    cursor::{
        BlockCursor, BlockCursorPolling, ConcurrentBlockCursor, Cursor, CursorImpl, CursorPolling,
        CursorRow, RowSetBuffer, TruncationInfo,
    },
    driver_complete_option::DriverCompleteOption,
    environment::{environment, DataSourceInfo, DriverInfo, Environment},
    error::{Error, TooLargeBufferSize},
    fixed_sized::Bit,
    handles::{ColumnDescription, DataType, Nullability},
    into_parameter::IntoParameter,
    narrow::Narrow,
    nullable::Nullable,
    parameter::{InOut, Out, OutputParameter},
    parameter_collection::{ParameterCollection, ParameterCollectionRef, ParameterTupleElement},
    preallocated::{Preallocated, PreallocatedPolling},
    prepared::Prepared,
    result_set_metadata::ResultSetMetadata,
    sleep::Sleep,
    statement_connection::StatementConnection,
};

/// Reexports `odbc-sys` as sys to enable applications to always use the same version as this
/// crate.
pub use odbc_sys as sys;
pub use widestring::{U16Str, U16String};

// Reexport fetch if derive feature is enabled
#[cfg(feature = "derive")]
pub use odbc_api_derive::Fetch;