{"id":19542222,"url":"https://github.com/pythonzm/mongostream","last_synced_at":"2025-10-11T20:34:55.543Z","repository":{"id":96962503,"uuid":"424864737","full_name":"pythonzm/mongoStream","owner":"pythonzm","description":"跟踪mongo数据变化","archived":false,"fork":false,"pushed_at":"2021-11-06T10:52:01.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T05:24:30.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythonzm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-05T07:39:26.000Z","updated_at":"2021-11-06T10:52:03.000Z","dependencies_parsed_at":"2024-03-12T10:48:57.676Z","dependency_job_id":null,"html_url":"https://github.com/pythonzm/mongoStream","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pythonzm/mongoStream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2FmongoStream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2FmongoStream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2FmongoStream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2FmongoStream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonzm","download_url":"https://codeload.github.com/pythonzm/mongoStream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonzm%2FmongoStream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008619,"owners_count":26084480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T03:13:44.358Z","updated_at":"2025-10-11T20:34:55.527Z","avatar_url":"https://github.com/pythonzm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongoStream\n跟踪mongo数据变化\n\n#### 使用前提：需要将源mongo库的数据同步至中间库一份\n\n```bash\n$ go mod\n$ go build\n$ mongoStream -h\nUsage of mongoStream:\n  -data-mongo-uri string\n        which mongo to store the change history, default is src-mongo-uri (default \"mongodb://localhost:27017\")\n  -dbs string\n        which dbs to watch, as a comma separated list, default is all dbs (default \"all\")\n  -dest-coll string\n        which coll to store the change steam data (default \"mongo\")\n  -dest-db string\n        which db to store the change steam data (default \"records\")\n  -dest-mongo-uri string\n        which mongo to sync the data from src mongo，format: mongodb://user:pass@addr:port or mongodb://addr:port/?replicaSet=rs0 (default \"mongodb://localhost:27017\")\n  -src-mongo-uri string\n        which mongo to watch，format: mongodb://user:pass@addr:port or mongodb://addr:port/?replicaSet=rs0 (default \"mongodb://localhost:27017\")\n```\n\n* -src-mongo-uri 指定数据源mongo\n* -dest-mongo-uri 指定中间库\n* -data-mongo-uri 指定存储变更数据的mongo\n\n### 效果\n![image](https://github.com/pythonzm/mongoStream/blob/master/screenshots/record.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonzm%2Fmongostream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonzm%2Fmongostream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonzm%2Fmongostream/lists"}