Fork me on GitHub
#beginners
<
2017-07-26
>
joshkh10:07:37

@dominicm if i am then i'm doing it by accident 😉

dominicm10:07:29

@joshkh Wait, you said you were using both rum & reagent. So I am confused :thinking_face:

dominicm10:07:41

oh, rum does it differently.

dominicm10:07:53

Yeah, you can probably ignore me. But rum & regaent's format is quite different.

joshkh10:07:55

oh no, i'm just using reagent. i think there was some small crosstalk in the previous conversation

joshkh10:07:15

that library supports both and i think gmercer thought i was using rum at first

joshkh10:07:26

also i have no idea what i'm talking about

joshkh10:07:18

speaking of which, does anyone know why lein with-profile +dev uberjar doesn't pull in the config/dev/config.edn file, but lein with-profile +dev run does? I'm using [yogthos/config] https://github.com/joshkh/bluegenes/blob/mymine/project.clj

joshkh10:07:09

my uberjar is anything but uber 😞

joshkh10:07:49

manually passing in the config file, however, does work java -Dconfig="config/dev/config.edn" -jar target/bluegenes.jar

gowder14:07:18

Hey folks --- can someone tell me what stupid thing I'm doing here? I'm just testing out a database connection in a luminus app using postgre and hugsql, and when I try to enter multiple rows in a (do), only one gets added. i.e., sql via hugsql:

-- :name create-document! :! :n
-- :doc creates a new document
INSERT INTO documents (document)
VALUES (:document)
and clojure:
(defn add-stub-docs []
  (do
    (db/create-document! {:document "this is the first document"})
    (db/create-document! {:document "this is the second document"})))
but when I read from the database after running that, only the first document is in there...

gowder14:07:40

oh wait, hmm, it looks like the problem is in the sql side.