This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-18
Channels
- # aleph (4)
- # announcements (2)
- # babashka (48)
- # beginners (59)
- # calva (5)
- # cider (14)
- # clj-kondo (4)
- # cljs-dev (3)
- # clojure (77)
- # clojure-europe (6)
- # clojure-italy (6)
- # clojure-nl (5)
- # clojure-spec (4)
- # clojure-uk (67)
- # clojurescript (19)
- # clr (3)
- # cursive (7)
- # datomic (36)
- # duct (33)
- # events (3)
- # figwheel (1)
- # fulcro (4)
- # funcool (2)
- # graalvm (3)
- # jobs (1)
- # joker (25)
- # kaocha (1)
- # leiningen (45)
- # malli (17)
- # off-topic (103)
- # quil (1)
- # re-frame (16)
- # reitit (1)
- # rewrite-clj (27)
- # shadow-cljs (39)
- # spacemacs (3)
- # sql (11)
- # tools-deps (14)
- # vim (41)
Just pushed a re-implementation of next.jdbc.middleware
and updated the middleware docs on master -- it is now guaranteed that :post-execute-fn
is called, regardless of whether a result set is built or not.
Feedback folks. Very important. If I release this, it can only be added to, not changed 🙂 Not Breaking Changes 🙂
No special feedback other than "great docs!"
Thank you!
@seancorfield Will try to give it a try this week
@seancorfield I have opened a PR to fix date-time for java.sql.Date -and only after getting offline realized it'd be smart to add also a case for java.sql.Timestamp to avoid wasteful Timestamp to Instant to Timestamp conversion.
For the interested ☝️☝️https://github.com/seancorfield/next-jdbc/blob/master/doc/all-the-options.md#middleware
@holyjak Thanks for that. Weird to see a method overridden and then made useless. Those Java folks are crazy 🙂 I added both types per your comment above, superseding the Pull Request.
I'm going to leave next.jdbc
master as-is for a week so folks can try out the new "middleware" feature and provide feedback/testing. I'll cut 1.0.11 once I get back from Conj.
As a reminder, here's what's on master since 1.0.11: * Fix #76 by avoiding conversions on java.sql.Date and java.sql.Timestamp. * Add next.jdbc.middleware containing a wrapper for connectable objects that can offer default options, as well as four "hooks" for pre- and post-processing functions that make it easier to add logging and timing code to your next.jdbc-based application. * Add testing against Microsoft SQL Server (run tests with environment variables NEXT_JDBC_TEST_MSSQL=yes and MSSQL_SA_PASSWORD set to your local -- 127.0.0.1:1433 -- SQL Server sa user password; assumes that it can create and drop fruit and fruit_time tables in the model database). * Add testing against MySQL (run tests with environment variables NEXT_JDBC_TEST_MYSQL=yes and MYSQL_ROOT_PASSWORD set to your local -- 127.0.0.1:3306 -- MySQL root user password; assumes you have already created an empty database called clojure_test). * Bump several JDBC driver versions for up-to-date testing. * Minor documentation fixes.