Skip to main content

Crate dm_database_sqllog2db

Crate dm_database_sqllog2db 

Source
Expand description

Stream DaMeng SQL logs through filtering and parameter substitution into export backends.

cli handles commands; engine orchestrates exports; pipeline processes records; exporter owns output formats. stats provides SQL analysis.

Modules§

cli
CLI arguments, command dispatch, configuration setup and presentation.
config
Config 模块:根 Config 结构、子模块(sqllog/exporter/logging)、validate。
engine
Export lifecycle: resolve inputs, prepare filters, execute and report.
error
Structured errors, severity and bounded run statistics.
exporter
Exporter 模块:导出器 trait、统计、后端管理器、共享工具。
logging
pipeline
Pipeline 模块:字段定义、过滤器、归一化、处理管线。
preflight
stats
SQL 统计分析模块:提供 SQL 标准化、聚合与终端展示。