Expand description
Parser 模块 - 解析 DM 数据库 SQL 日志
此模块提供了完整的日志解析功能,包括:
- Record 结构和解析
- 流式读取和解析
- 便捷 API 函数
Re-exports§
pub use record::Record;pub use record_parser::RecordParser;
Modules§
- record
- Record 结构定义和相关方法
- record_
parser - RecordParser - 从 Reader 流式读取并解析 Record
Structs§
- Sqllog
Iterator - Sqllog 迭代器,使用批量缓冲 + 并行处理优化性能
Functions§
- iter_
records_ from_ file - 从文件读取并返回 Sqllog 迭代器(流式处理)
- parse_
records_ from_ file - 从文件读取并并行解析为 Sqllog(高性能版本)