Skip to main content

drasi_mssql_common/
lib.rs

1#![allow(unexpected_cfgs)]
2// Copyright 2025 The Drasi Authors.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//     http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Shared types for MS SQL source and bootstrap plugins
17//!
18//! This crate contains configuration, connection, error, and type conversion
19//! types used by both `drasi-source-mssql` and `drasi-bootstrap-mssql`.
20
21pub mod config;
22pub mod connection;
23pub mod error;
24pub mod keys;
25pub mod types;
26
27// Re-export main types
28pub use config::{
29    validate_sql_identifier, AuthMode, EncryptionMode, MsSqlSourceConfig, StartPosition,
30    TableKeyConfig,
31};
32pub use connection::MsSqlConnection;
33pub use error::{ConnectionError, LsnError, MsSqlError, MsSqlErrorKind, PrimaryKeyError};
34pub use keys::PrimaryKeyCache;
35pub use types::{extract_column_value, value_to_string};