diff --git a/kv/README.org b/kv/README.org index ef61e7b..d2ff5e7 100644 --- a/kv/README.org +++ b/kv/README.org @@ -1,6 +1,8 @@ #+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) #!/usr/bin/env sh diff --git a/web/src/com/darklimericks/db/core.clj b/web/src/com/darklimericks/db/core.clj index f8bda05..0f99e7c 100644 --- a/web/src/com/darklimericks/db/core.clj +++ b/web/src/com/darklimericks/db/core.clj @@ -15,3 +15,14 @@ (defmethod ig/init-key ::connection [_ 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) + + )