Fork me on GitHub

@seancorfield trying to follow some examples from (not sure how up to date they are) and it's kind of failing.

(def db
  {:connection-uri (str "jdbc:h2:./evimg.db")})
(j/with-db-connection db
                      (j/create-table :images [:code "varchar(8)"] [:path "varchar(256)"]))
IllegalArgumentException Don't know how to create ISeq from: clojure.lang.Symbol  clojure.lang.RT.seqFrom (
I'm a little lost without good, functional examples 😞


all the examples seem to be the same.


@eslachance not sure which version of you're using, but I'd say it's because of the fact that create-table doesn't exist anymore Try create-table-ddl, e.g.

(j/execute! {:connection-uri "jdbc:h2:/Users/jumar/.h2.db"} (j/create-table-ddl :images [[:code "varchar(8)"] [:path "varchar(256)"]]))


Ah I see an extra [] around there


I guess some examples do need to be updated.... because here too:


eslachance: Ah, good to know that java.jdbc is mentioned on other parts of clojure-doc itself and is outdated there as well! Although, to be fair, that example uses the 0.2.3 version and the code is correct for that very old version. Not helpful, perhaps, but at least it should work (with that version).


I know it's hard to maintain examples and docs, I mean, I created and maintain for the discord.js library and there's some iffy code in there, too. I know the pain.


I added an issue on GH for the web dev page, so at least there’s a reminder now. Once the main java.jdbc section gets updated, I will try to carve out time to go through the web dev section and get it all updated to the latest versions of the libraries it mentions.


Welp. thank you @jumar I appreciate it ^_^


Is there any kind of Office 365 Clojure repository? I didn’t find with google.


sb: What do you mean?


I would like to access to Office 365 via Rest API (cloud products)


Clojure doesn't have a strong culture of wrapping rest apis with libraries ime.


it very probably doesn't exist.


Yes, I see.




@eslachance Unfortunately, I can’t single-handedly update every website article about java.jdbc 😞 I control the GitHub repo (as primary maintainer), — That has some very basic docs and it steers people toward and the dedicated mailing list: “Additional documentation can be found in the java.jdbc section of and there is a dedicated java.jdbc mailing list” — (which I try to keep up to date but that’s open to everyone to contribute to without a CA or any other restrictions).


That said, clojure-doc was last updated for the 0.5.6 release and 0.6.0 included breaking changes and 0.7.0 is currently in alpha. I was holding off an overhaul until 0.7.0 went gold because it really needs a ground-up rewrite.


Obviously I didn't mean to imply that you were responsible for out of date websites, just that it was the origin of my confusion ^_^


Someone from the community has stepped up to help with that rewrite — which pleases me greatly!


I'm just the type of person that goes by examples, not docs, so it's hard for me.


@eslachance Oh, don’t worry, I didn’t take it as criticism! It frustrates me too that there’s a lot of old material out there about java.jdbc that confuses people (especially when it’s the ancient contrib.sql stuff!).


@seancorfield: When you get to the rewrite I'm up for helping out as well


I think the examples on clojure-doc are all still functional, but I’d have to do a double-check.

Alex Miller (Clojure team)18:06:42

Would be happy to have lib guides on too btw


I’ve added a cautionary note to the top of the WikiBooks page that the examples are all outdated and providing a link to the clojure-doc Using java.jdbc page.


(still pending review — but hopefully it’ll get approved)


That WikiBooks Clojure site is pretty useless for a lot of stuff since so many pages are outdated 😞


I have a macro defenition like this: (defmacro macroname [{:keys [a b]} [f & r]] <macrobody>) When I call the macro with two arguments (the first one a map with keys :a and :b, the second one a list) f and r behave like I expect them to, but a and b are always nil. What am I doing wrong?


I would expect the key destructuring to only work if the first arg is a map literal


macros are functions from an input form to an output form, they know nothing about the real data in your app at runtime