{"id":20141256,"url":"https://github.com/alekcz/konserve-jdbc","last_synced_at":"2026-03-15T09:23:15.095Z","repository":{"id":54861343,"uuid":"266631738","full_name":"alekcz/konserve-jdbc","owner":"alekcz","description":"A JDBC backend for konserve.","archived":false,"fork":false,"pushed_at":"2023-03-25T08:49:16.000Z","size":134,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-28T12:39:18.958Z","etag":null,"topics":["clojure","h2","h2-database","jdbc","konserve","mysql","postgres","postgresql","replikativ"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alekcz.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}},"created_at":"2020-05-24T21:58:48.000Z","updated_at":"2023-02-07T11:54:06.000Z","dependencies_parsed_at":"2023-01-19T01:31:03.654Z","dependency_job_id":"cde765b6-ed26-4cca-9ab1-1b0d33a5e73d","html_url":"https://github.com/alekcz/konserve-jdbc","commit_stats":{"total_commits":76,"total_committers":2,"mean_commits":38.0,"dds":"0.013157894736842146","last_synced_commit":"b936d69758dfc0c7361200503acc45fe89d10f03"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":"alekcz/konserve-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekcz%2Fkonserve-jdbc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekcz%2Fkonserve-jdbc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekcz%2Fkonserve-jdbc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekcz%2Fkonserve-jdbc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alekcz","download_url":"https://codeload.github.com/alekcz/konserve-jdbc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246688485,"owners_count":20817945,"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","h2","h2-database","jdbc","konserve","mysql","postgres","postgresql","replikativ"],"created_at":"2024-11-13T21:56:51.589Z","updated_at":"2026-03-15T09:23:15.040Z","avatar_url":"https://github.com/alekcz.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# konserve-jdbc\n\nA [JDBC](https://github.com/clojure/java.jdbc) backend for [konserve](https://github.com/replikativ/konserve). \n\n## Status\n\n![master](https://github.com/alekcz/konserve-jdbc/workflows/master/badge.svg) [![codecov](https://codecov.io/gh/alekcz/konserve-jdbc/branch/master/graph/badge.svg)](https://codecov.io/gh/alekcz/konserve-jdbc) [![Dependencies Status](https://versions.deps.co/alekcz/konserve-jdbc/status.svg)](https://versions.deps.co/alekcz/konserve-jdbc)\n\n## Usage\n\n[![Clojars Project](https://img.shields.io/clojars/v/alekcz/konserve-jdbc.svg)](https://clojars.org/alekcz/konserve-jdbc)\n\n`[alekcz/konserve-jdbc \"0.2.0-SNAPSHOT\"]`\n\n```clojure\n(require '[konserve-jdbc.core :refer [new-jdbc-store]]\n         '[clojure.core.async :refer [\u003c!!] :as async]\n         '[konserve.core :as k])\n  \n  (def h2 { :dbtype \"h2\"\n            :dbname \"./temp/konserve;DB_CLOSE_ON_EXIT=FALSE\"\n            :user \"sa\"\n            :password \"\"})\n  \n  (def mysql { :dbtype \"mysql\"\n               :dbname \"konserve\"\n               :host \"localhost\"\n               :user \"konserve\"\n               :password \"password\"})\n\n  (def pg { :dbtype \"postgresql\"\n            :dbname \"konserve\"\n            :host \"localhost\"\n            :user \"konserve\"\n            :password \"password\"})\n\n  (def h2-store (\u003c!! (new-jdbc-store h2 :table \"konserve\")))\n  (def mysql-store (\u003c!! (new-jdbc-store mysql :table \"konserve\")))\n  (def pg-store (\u003c!! (new-jdbc-store pg :table \"konserve\")))\n\n  (\u003c!! (k/exists? pg-store :cecilia)) ; =\u003e false\n  (\u003c!! (k/get-in pg-store [:cecilia])) ; =\u003e nil\n  (\u003c!! (k/assoc pg-store :cecilia {:name \"cecilia\"})) \n  (\u003c!! (k/assoc-in pg-store [:cecilia :age] 28))\n  (\u003c!! (k/get-in pg-store [:cecilia :age])) ; =\u003e 28\n  (\u003c!! (k/update-in pg-store [:cecilia :age] inc))\n  (\u003c!! (k/get pg-store :cecilia)) ; =\u003e {:name \"cecilia\", :age 29}\n\n\n  (defrecord Test [a])\n  (\u003c!! (k/assoc pg-store :agatha (Test. 35)))\n  (\u003c!! (k/get pg-store :agatha))\n```\n\n## License\n\nCopyright © 2020 Alexander Oloo\n\nThis program and the accompanying materials are made available under the\nterms of the Eclipse Public License 2.0 which is available at\nhttp://www.eclipse.org/legal/epl-2.0.\n\nThis Source Code may also be made available under the following Secondary\nLicenses when the conditions for such availability set forth in the Eclipse\nPublic License, v. 2.0 are satisfied: GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or (at your\noption) any later version, with the GNU Classpath Exception which is available\nat https://www.gnu.org/software/classpath/license.html.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falekcz%2Fkonserve-jdbc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falekcz%2Fkonserve-jdbc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falekcz%2Fkonserve-jdbc/lists"}