{"repo":"filipesilva/datomic-pro-sqlite","free":true,"listed":false,"github":"https://github.com/filipesilva/datomic-pro-sqlite","clone":"git clone https://github.com/filipesilva/datomic-pro-sqlite.git","description":"Get started with Datomic Pro quickly on a single machine setup that will take you pretty far.","language":"Shell","stars":76,"topics":["clojure","datomic","sqlite"],"license":null,"category":"databases-storage","readme_excerpt":"Datomic Pro SQLite Get started with Datomic Pro quickly on a single machine setup that will take you pretty far. Inspired by how Rails 8 now uses SQLite for production. Links: GitHub DockerHub Quickstart - run docker run -p 4334:4334 -v ./storage:/usr/storage --name datomic-pro-sqlite-demo --rm filipesilva/datomic-pro-sqlite:latest - wait until it says Connect using DB URI datomic:sql://app?jdbc:sqlite: - connect from your clojure app or from a clj REPL: Usage Start a new container named datomic-pro-sqlite-demo that mounts the local ./storage folder in the container. Your SQLite database will be here. You don't have to make this folder, the container will make it for you. Delete ./storage and restart the container if you want to wipe the dabatase. You should see this output: The container will automatically create the app db. You can change this by passing in another name in the env var DATOMIC DB when creating the container (e.g. -e DATOMIC DB=blog before the filipesilva/datomic-pro-sqlite:latest image name). Start a new clojure repl with clj and use the database. You will need the SQLite driver dependency in addition to Datomic. In tests use the in-memory db instead. Deployment If you're running your clojure app in a container remember to also mount ./storage there. The Datomic peer library needs access to the SQLite db too. You'll want backups of the SQLite db. You can just backup the ./storage directory at any time. Litestream is a great automated solution that continuous","default_branch":null,"files":null,"tree":[],"storefront":"/r/filipesilva","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/filipesilva/datomic-pro-sqlite/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}