pub mod deserialize;
pub mod http_transport;
pub mod messages;
#[cfg(feature = "native")]
pub mod native;
pub mod protocol;
#[cfg(feature = "websocket")]
pub mod websocket;
pub use http_transport::{DataPipe, HttpTransportClient, TlsCertificate};
pub use messages::{ColumnInfo, DataType, ResultData, ResultPayload, ResultSetHandle, SessionInfo};
#[cfg(feature = "native")]
pub use native::NativeTcpTransport;
pub use protocol::{
ConnectionParams, Credentials, PreparedStatementHandle, QueryResult, TransportProtocol,
};
#[cfg(feature = "websocket")]
pub use websocket::WebSocketTransport;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_module_exports() {
let _params = ConnectionParams::new("localhost".to_string(), 8563);
let _creds = Credentials::new("user".to_string(), "pass".to_string());
let _handle = ResultSetHandle::new(1);
}
#[cfg(feature = "websocket")]
#[test]
fn test_websocket_transport_export() {
let _transport = WebSocketTransport::new();
}
#[cfg(feature = "native")]
#[test]
fn test_native_transport_export() {
let _transport = NativeTcpTransport::new();
}
#[test]
fn test_prepared_statement_handle_export() {
let _handle = PreparedStatementHandle::new(1, 0, vec![], vec![]);
}
}