{"id":30977260,"url":"https://github.com/farovictor/mongodbloader","last_synced_at":"2026-05-15T22:35:46.220Z","repository":{"id":197875446,"uuid":"699513597","full_name":"farovictor/MongoDbLoader","owner":"farovictor","description":"This project is intended to be used as a data loader to support ELT pipelines or any kind of process that requires a heavy data load into a MongoDb database.","archived":false,"fork":false,"pushed_at":"2023-10-06T00:37:55.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-12T08:32:42.561Z","etag":null,"topics":["data","go","mongodb","pipeline"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farovictor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-10-02T19:30:07.000Z","updated_at":"2023-10-02T20:36:00.000Z","dependencies_parsed_at":"2024-06-21T05:37:06.401Z","dependency_job_id":null,"html_url":"https://github.com/farovictor/MongoDbLoader","commit_stats":null,"previous_names":["farovictor/mongodbloader"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/farovictor/MongoDbLoader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farovictor%2FMongoDbLoader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farovictor%2FMongoDbLoader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farovictor%2FMongoDbLoader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farovictor%2FMongoDbLoader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farovictor","download_url":"https://codeload.github.com/farovictor/MongoDbLoader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farovictor%2FMongoDbLoader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33082079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["data","go","mongodb","pipeline"],"created_at":"2025-09-12T05:03:34.465Z","updated_at":"2026-05-15T22:35:46.214Z","avatar_url":"https://github.com/farovictor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Usage\nThis tool can be used as a package or cli tool.\nIt serves as a data loader to support ELT pipelines or any kind of process that requires a heavy data load.\n\n## CLI\n\nThis package allows the user to load data from one or multiple json files into a mongodb database.\n\n### Ping database\nThe `ping` command does a ping in database and returns a connection check.\n\n\n```bash\nmongoloader ping --conn-uri \"$MONGO_CONN_URI\"\n```\n\n### Check if a collection exists\nThe `collxst` command does a ping in database and returns a connection check.\n\n\n```bash\nmongoloader collxst \\\n\t--conn-uri \"$MONGO_CONN_URI\" \\\n\t--db-name \"$MONGO_DBNAME\" \\\n\t--collection \"$MONGO_COLLECTION\" \\\n\t--app-name \"$APPNAME\"\n```\n\n\n### Loads in batches - Read and streams file content into a pool of workers (async)\nThe `load-batch` command iterates over a directory and read/marshal files into documents and insert them into a mongodb database.\n\n\n```bash\nmongoloader load-batch \\\n\t\t--conn-uri \"$MONGO_CONN_URI\" \\\n\t\t--db-name \"$MONGO_DBNAME\" \\\n\t\t--collection \"$MONGO_COLLECTION\" \\\n\t\t--app-name \"$APPNAME\" \\\n\t\t--search-path \"./data\" \\\n\t\t--file-prefix \"some_prefix\" \\\n\t\t--num-concurrent-files 10\n```\n\n### Extract data\nThe `load` command load a file or set of files into an slice of documents and inserts it into mongodb database.\n\n\n```bash\nmongoloader load \\\n\t--conn-uri \"$MONGO_CONN_URI\" \\\n\t--db-name \"$MONGO_DBNAME\" \\\n\t--collection \"$MONGO_COLLECTION\" \\\n\t--app-name \"$APPNAME\" \\\n```\n\n\n## Releases\nAll releases are documented in [CHANGELOG](CHANGELOG.md), please check there for more details.\n\n\n### Docker\nAll releases are containerized and available [here](https://hub.docker.com/r/victorfaro/mongoloader)\nTo pull the latest version, execute the following command:\n\n```bash\ndocker pull victorfaro/mongoloader:latest\n```\n\nAll images uses the cli as entrypoint, check the above examples to see how to use it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarovictor%2Fmongodbloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarovictor%2Fmongodbloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarovictor%2Fmongodbloader/lists"}