New release of babashka sql pods. Better support for reading and writing arrays and PostgreSQL json(b): https://github.com/babashka/babashka-sql-pods/blob/master/CHANGELOG.md#v004
Is there a way to use reader conditionals with Babashka such that code is only executed if using actual Clojure, but not when using Babashka? It looks like :clj
currently applies to Babashka as well:
user=> #?(:clj true)
true
user=> #?(:bb true)
true
@flowthing #?(:bb nil :clj :yo)
Ah, thanks!
Should've thought of that. :picard-facepalm:
I'm fixing compatibility with version-clj (https://github.com/xsc/version-clj). The version 0.1.2 works with bb. I've used this library several times in scripts already. But the lately the author switched to some interop with java.util.regex.Matcher
which isn't in bb. Adding support for this makes the binary 1mb bigger.
I wonder if version-clj itself is something we might want to have in bb, but for now we can run it as a lib.