connectorx/sources/mssql/
mod.rs1#[cfg(all(not(feature = "src_mssql_tiberius"), not(feature = "src_mssql_tds")))]
22compile_error!("MSSQL source requires either `src_mssql_tiberius` or `src_mssql_tds`");
23
24mod driver;
25mod errors;
26mod typesystem;
27
28#[cfg(all(feature = "src_mssql_tiberius", feature = "src_mssql_tds"))]
29mod dual_impl;
30#[cfg(feature = "src_mssql_tds")]
31mod tds_impl;
32#[cfg(feature = "src_mssql_tiberius")]
33mod tiberius_impl;
34
35pub use self::driver::MsSQLDriverKind;
36pub use self::errors::MsSQLSourceError;
37pub use self::typesystem::{FloatN, IntN, MsSQLTypeSystem};
38
39#[cfg(all(feature = "src_mssql_tiberius", feature = "src_mssql_tds"))]
40pub use self::driver::set_active_driver;
41
42#[cfg(all(feature = "src_mssql_tiberius", feature = "src_mssql_tds"))]
46pub fn active_driver() -> MsSQLDriverKind {
47 self::driver::active_driver()
48}
49
50#[cfg(feature = "src_mssql_tiberius")]
51pub use self::tiberius_impl::mssql_config;
52#[cfg(all(feature = "src_mssql_tiberius", not(feature = "src_mssql_tds")))]
53pub use self::tiberius_impl::{MsSQLSource, MsSQLSourceParser, MsSQLSourcePartition};
54
55#[cfg(all(feature = "src_mssql_tds", not(feature = "src_mssql_tiberius")))]
56pub use self::tds_impl::{MsSQLSource, MsSQLSourceParser, MsSQLSourcePartition};
57
58#[cfg(all(feature = "src_mssql_tiberius", feature = "src_mssql_tds"))]
59pub use self::dual_impl::{MsSQLSource, MsSQLSourceParser, MsSQLSourcePartition};
60
61#[cfg(feature = "src_mssql_tds")]
62pub(crate) use self::tds_impl::tds_get_partition_range;