dm_database_parser_sqllog/parser/
mod.rs

1//! Parser 模块 - 解析 DM 数据库 SQL 日志
2//!
3//! 此模块提供了完整的日志解析功能,包括:
4//! - Record 结构和解析
5//! - 流式读取和解析
6//! - 便捷 API 函数
7
8mod api;
9mod constants;
10pub(crate) mod parse_functions;
11pub mod record;
12pub mod record_parser;
13
14// 重导出公共 API
15pub use api::{SqllogIterator, iter_records_from_file, parse_records_from_file};
16pub use record::Record;
17pub use record_parser::RecordParser;
18
19// 测试辅助模块 - 仅在测试时导出内部函数
20#[cfg(test)]
21pub mod test_helpers {
22    pub use super::parse_functions::*;
23}