This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-30
Channels
- # aws (2)
- # beginners (139)
- # boot (9)
- # cider (1)
- # clara (2)
- # cljs-dev (35)
- # cljsrn (3)
- # clojure (112)
- # clojure-dusseldorf (9)
- # clojure-greece (6)
- # clojure-italy (13)
- # clojure-russia (160)
- # clojure-seattle-old (1)
- # clojure-uk (79)
- # clojurescript (85)
- # clojutre (1)
- # community-development (11)
- # core-async (32)
- # cryogen (2)
- # cursive (5)
- # data-science (16)
- # datomic (2)
- # events (1)
- # fulcro (29)
- # funcool (1)
- # graphql (4)
- # immutant (5)
- # instaparse (20)
- # jobs (2)
- # juxt (6)
- # leiningen (11)
- # luminus (21)
- # lumo (1)
- # off-topic (7)
- # onyx (20)
- # parinfer (33)
- # pedestal (4)
- # re-frame (41)
- # reagent (34)
- # ring-swagger (14)
- # rum (5)
- # spacemacs (9)
- # specter (11)
- # sql (14)
- # test-check (3)
- # yada (20)
I am having trouble setting up a new project using the luminus template with mysql. I am trying to do lein new luminus proj +mysql, after that I created a database in mysql and updated the profiles.clj accordingly. Now when I run migrations, I get ERROR migratus.database - Error creating DB connection for <mysql://localhost:3306/dbname?user=root&password=> java.lang.IllegalArgumentException: Vector arg to map conj must be a pair
I have installed mysql through xampp on ubuntu.
I have been trying to fix it for a long time and I don't know where to look next.
Any directions would be a lot of help..
My mysql password is blank
i.e. no password
Oh it worked..
Thanks a lot
to explain the specific error message though, (conj {} [:user root :password]) or (conj {} [:user root] [:password]) will throw this error. these are valid vectors but when you're conjing onto a map they need to be tuples
I think the latest version of clojure.java.jdbc uses spec to give better error messages I'll have to look at it later
nope, the latest version of clojure.java.jdbc still gives you the same error message with that connection string
@yogthos this seems like an easy mistake to make, do we want to catch this in migratus or should I take this discussion to the clojure.java.jdbc project?
I think it wouldn't hurt for migratus to handle this, but probably also worth noting it with clojure.java.jdbc since better errors will help everybody 🙂
I opened up a ticket for this at 12:11 CST and it got resolved at 12:19 so migratus just has to bump the clojure.java.jdbc version to 7.1 which should be on out later today
and just released new version of migratus and luminus with the latest clojure.java.jdbc
xposting from hugsql. Any advice on how to get a pgArray and contents into a clojure datastructure? https://github.com/DrTom/clj-pg-types doesnt seem to support later versions of clojure. Im using the jdbc driver.