Add notes for KV store

main
Eric Ihli 4 years ago
parent df13a45187
commit ecb5298201

@ -1,6 +1,8 @@
#+TITLE: Persistent KV Store #+TITLE: Persistent KV Store
There's really nothing to build right now. #+BEGIN_SRC sh
docker build -t darklimericks-kv .
#+END_SRC
#+BEGIN_SRC sh :tangle run.sh :tangle-mode (identity #o755) #+BEGIN_SRC sh :tangle run.sh :tangle-mode (identity #o755)
#!/usr/bin/env sh #!/usr/bin/env sh

@ -15,3 +15,14 @@
(defmethod ig/init-key ::connection [_ db-spec] (defmethod ig/init-key ::connection [_ db-spec]
(jdbc/get-datasource db-spec)) (jdbc/get-datasource db-spec))
(comment
(let [ds (jdbc/get-datasource {:jdbcUrl (str "jdbc:postgresql://localhost:5432/?user="
(or (env :postgres-user)
"dev")
"&password="
(or (env :postgres-password)
"dev"))})]
ds)
)

Loading…
Cancel
Save