{"id":15405054,"url":"https://github.com/razum2um/joplin.mongodb","last_synced_at":"2025-04-16T21:44:20.452Z","repository":{"id":62433122,"uuid":"93820206","full_name":"razum2um/joplin.mongodb","owner":"razum2um","description":"MongoDB support for Joplin","archived":false,"fork":false,"pushed_at":"2020-05-12T11:02:31.000Z","size":12,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T05:41:38.793Z","etag":null,"topics":["clojure","migrations","mongodb"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/razum2um.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}},"created_at":"2017-06-09T04:54:31.000Z","updated_at":"2023-03-10T16:31:53.000Z","dependencies_parsed_at":"2022-11-01T20:45:47.645Z","dependency_job_id":null,"html_url":"https://github.com/razum2um/joplin.mongodb","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razum2um%2Fjoplin.mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razum2um%2Fjoplin.mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razum2um%2Fjoplin.mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razum2um%2Fjoplin.mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razum2um","download_url":"https://codeload.github.com/razum2um/joplin.mongodb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249280537,"owners_count":21243138,"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":["clojure","migrations","mongodb"],"created_at":"2024-10-01T16:14:54.606Z","updated_at":"2025-04-16T21:44:20.436Z","avatar_url":"https://github.com/razum2um.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# joplin.mongodb\n\n```\n[joplin.mongodb \"0.1.2\"]\n```\n\n## Usage\n\nWrite [joplin](https://github.com/juxt/joplin) config with `:type :mongodb :uri \"...\" :collection \"...\"`\n\n```\n{:databases\n  {:mongodb\n    {:type :mongodb\n     :uri \"mongodb://userb71148a:0da0a696f23a4ce1ecf6d11382633eb2049d728e@cluster1.mongohost.com:27034/app81766662\"\n     :collections \"collection to store migration ids, `migrations` by default\"}}}\n\n```\n\nGenerate migrations\n\n```\n(joplin.repl/create config :mongodb \"migartion-name\")\n```\n\nUse [monger](https://github.com/michaelklishin/monger) and `as-db-\u003e` inside your migrations:\n\n```\n(ns migrations.mongodb.20170609050347-example\n  (:require [joplin.mongodb.database :refer :all]\n            [monger.collection :as mc]))\n\n(defn up [db]\n  (as-db-\u003e db mongodb (mc/update mongodb \"notifications\" {} {:$rename {:environment :env}} {:multi true})))\n\n(defn down [db]\n  (as-db-\u003e db mongodb (mc/update mongodb \"notifications\" {} {:$rename {:env :environment}} {:multi true})))\n```\n\n## License\n\nCopyright © 2017 Vlad Bokov\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazum2um%2Fjoplin.mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazum2um%2Fjoplin.mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazum2um%2Fjoplin.mongodb/lists"}