From 714d79a543426c0c02ed3d3ffce7d11b2bc9166a Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sat, 16 Nov 2019 16:11:11 -0800 Subject: [PATCH] Indentation clean up; note master docs ahead of released docs --- README.md | 2 +- doc/middleware.md | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2f85b56..282e19c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ The latest versions on Clojars and on cljdoc: [![Clojars Project](https://clojars.org/seancorfield/next.jdbc/latest-version.svg)](https://clojars.org/seancorfield/next.jdbc) [![cljdoc badge](https://cljdoc.org/badge/seancorfield/next.jdbc)](https://cljdoc.org/d/seancorfield/next.jdbc/CURRENT) -This documentation is for the 1.0.10 release -- [see the CHANGELOG](CHANGELOG.md). +This documentation is for **master** after the 1.0.10 release -- [see the CHANGELOG](CHANGELOG.md). * [Getting Started](/doc/getting-started.md) * [Migrating from `clojure.java.jdbc`](/doc/migration-from-clojure-java-jdbc.md) diff --git a/doc/middleware.md b/doc/middleware.md index 1f67105..ceaf0aa 100644 --- a/doc/middleware.md +++ b/doc/middleware.md @@ -76,12 +76,14 @@ Assuming you have some logging library available in your application, such as [t ```clojure (def ds (mw/wrapper (jdbc/get-datasource db-spec) - {:pre-process-fn (fn [sql-p opts] - (logger/info "About to execute" sql-p) - [sql-p opts]) - :rs!-fn (fn [rs opts] - (logger/info "=>" (count rs) "rows") - rs)})) + {:pre-process-fn + (fn [sql-p opts] + (logger/info "About to execute" sql-p) + [sql-p opts]) + :rs!-fn + (fn [rs opts] + (logger/info "=>" (count rs) "rows") + rs)})) (jdbc/execute! ds ["select * from fruit"]) ;; should produce log output like: @@ -111,7 +113,7 @@ Because the pre- and post-process hooks can modify the options hash map that is (logger/info "SQL took" (- (::end opts) (::start opts)) "ms," "build took" (- build-time (::end opts)) "ms," "for" (first (:next.jdbc/sql-params opts)))) - rs)})) + rs)})) (jdbc/execute! ds ["select * from fruit"]) ;; should produce log output like: