{"id":18489109,"url":"https://github.com/hachreak/mongopool","last_synced_at":"2026-05-01T19:32:30.001Z","repository":{"id":139147359,"uuid":"46665374","full_name":"hachreak/mongopool","owner":"hachreak","description":"mongopool: mongodb + poolboy","archived":false,"fork":false,"pushed_at":"2017-01-26T18:30:41.000Z","size":1490,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T22:27:55.107Z","etag":null,"topics":["client","erlang-","mongodb","pool","poolboy"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hachreak.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":"2015-11-22T15:01:51.000Z","updated_at":"2022-07-15T08:07:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"acc840ad-b1f6-47eb-94ff-d1f0d69e2886","html_url":"https://github.com/hachreak/mongopool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachreak%2Fmongopool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachreak%2Fmongopool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachreak%2Fmongopool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hachreak%2Fmongopool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hachreak","download_url":"https://codeload.github.com/hachreak/mongopool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036819,"owners_count":22003657,"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","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":["client","erlang-","mongodb","pool","poolboy"],"created_at":"2024-11-06T12:55:18.013Z","updated_at":"2026-05-01T19:32:24.964Z","avatar_url":"https://github.com/hachreak.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"mongopool\n=========\n\nmongopool: mongodb + poolboy\n\nA MongoDB connection pool server application.\n\n\nConfiguration\n-------------\n\n```erlang\n[\n  {mongopool, [\n    {retry, 20},\n    {pools, [\n      {mypool, [\n        {size, 10},\n        {max_overflow, 30}\n      ], [\n        {database, \u003c\u003c\"mydb\"\u003e\u003e},\n        {hostname, mongohostname},\n        {username, \"dbuser\"},\n        {password, \"dbpassword\"},\n        {w_mode, safe}\n      ]}\n    ]}\n  ]},\n]\n```\n\nNote: if you doesn't enable the authorization on mongodb, you don't need to\nspecify `username` and `password`.\n\nThe option `retry` specify how many times the workers should try to connect\nif it's startup step fail.\nIt's very useful when the erlang server is faster than mongodb server\n(especially the case when mongodb start the first time).\n\nNote: you can specify all the pool that you need.\n\nUsage\n-----\n\nTo start the pool:\n\n```erlang\napplication:ensure_all_started(mongopool).\n```\n\nThe API available is simply a proxy to mongodb`-erlang` API.\nInstead of pass the `Connection`, you pass the pool name.\n\nE.g. to find inside a collection:\n\n```erlang\nMyDocument = mongopool_app:find_one(\n    mypool, Collection, #{\u003c\u003c\"_id\"\u003e\u003e =\u003e \u003c\u003c\"mydocument_id\"\u003e\u003e}).\n```\n\nBuild\n-----\n\n    $ utils/rebar3 compile\n\n\nDeprecated\n----------\n\n`MongoDB-Erlang \u003e= 0.8.2` change API and inglobe the use of `poolboy`.\nSo, after this version, `mongopool` became incompatible and useless.\n\nFor that reason, if you want use a recent release of the driver, please use\ndirectly [MongoDB-Erlang](https://github.com/comtihon/mongodb-erlang).\n\nThanks for use `MongoPool`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhachreak%2Fmongopool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhachreak%2Fmongopool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhachreak%2Fmongopool/lists"}