taolib.testing.data_sync.cli#

数据同步 CLI 入口。

提供命令行接口用于运行同步作业。

Attributes#

Functions#

_connect(→ tuple[Any, Any])

创建 MongoDB 连接。

_run_job(→ None)

运行同步作业。

_list_jobs(→ None)

列出所有作业。

_show_status(→ None)

查看作业状态。

main(→ None)

CLI 入口函数。

Module Contents#

taolib.testing.data_sync.cli.logger#
async taolib.testing.data_sync.cli._connect(mongo_url: str, mongo_db: str) tuple[Any, Any]#

创建 MongoDB 连接。

async taolib.testing.data_sync.cli._run_job(mongo_url: str, mongo_db: str, job_id: str) None#

运行同步作业。

async taolib.testing.data_sync.cli._list_jobs(mongo_url: str, mongo_db: str) None#

列出所有作业。

async taolib.testing.data_sync.cli._show_status(mongo_url: str, mongo_db: str, job_id: str | None) None#

查看作业状态。

taolib.testing.data_sync.cli.main() None#

CLI 入口函数。