This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-14
Channels
- # announcements (1)
- # beginners (13)
- # calva (2)
- # cider (43)
- # cljdoc (11)
- # clojure (16)
- # clojure-spec (10)
- # clojure-uk (6)
- # clojurescript (7)
- # code-reviews (3)
- # core-matrix (1)
- # datascript (4)
- # datomic (7)
- # devcards (4)
- # figwheel-main (12)
- # fulcro (27)
- # hoplon (1)
- # lein-figwheel (1)
- # luminus (1)
- # nrepl (23)
- # off-topic (4)
- # planck (1)
- # re-frame (8)
- # reagent (7)
- # shadow-cljs (61)
- # spacemacs (7)
- # tools-deps (19)
Published h2-jdbc
which extends JDBC protocols for the H2 Database to return Java 8 objects. Similar to clj-time.jdbc
, only specific for H2 and java.time
.
This is the result of a discussion in #clojure in which I stumbled over the whole TIMESTAMP WITH TIME ZONE
data type in H2 returning an org.h2.api.TimestampWithTimeZone
object. I went through all other H2 data types and coerced them to java.time
objects 🙂
@seancorfield suggested I’d publish this as a library (so here it is!) and helped out with a few questions (thanks!)
You probably already have a half-baked implementation of this in your codebase if you’re using H2 and java.time
objects in Java 8.
Check it out: https://github.com/olieidel/h2-jdbc