Skip to main content

dm_database_sqllog2db/cli/watch/
mod.rs

1//! Watch 子命令:`handle_watch` 在 `handler.rs`,按 watch 流程职责分文件组织。
2
3pub(super) mod offsets;
4
5mod append;
6mod debounce;
7mod dirs;
8mod event;
9mod handler;
10mod state;
11mod status;
12mod trigger_full;
13mod trigger_incremental;
14mod watcher;
15
16#[cfg(test)]
17mod tests;
18
19pub use handler::handle_watch;
20
21// 以下 pub use 为集成测试(tests/watch_incremental.rs)提供公开 API,
22// binary 内部不直接引用,通过 allow 消除 unused_imports lint。
23#[allow(unused_imports)]
24pub use state::WatchLoopState;
25#[allow(unused_imports)]
26pub use trigger_full::trigger_full_file;
27#[allow(unused_imports)]
28pub use trigger_incremental::trigger_incremental;