Add warn-on-reflection where it was missing

This commit is contained in:
Sean Corfield 2021-01-23 15:53:01 -08:00
parent ca8c1e4f18
commit b9a4d0e12d
2 changed files with 6 additions and 2 deletions

View file

@ -1,9 +1,11 @@
;; copyright (c) 2020 Sean Corfield, all rights reserved
;; copyright (c) 2020-2021 Sean Corfield, all rights reserved
(ns ^:no-doc next.jdbc.default-options
"Implementation of default options logic."
(:require [next.jdbc.protocols :as p]))
(set! *warn-on-reflection* true)
(defrecord DefaultOptions [connectable options])
(extend-protocol p/Sourceable

View file

@ -1,10 +1,12 @@
;; copyright (c) 2020 Sean Corfield, all rights reserved
;; copyright (c) 2020-2021 Sean Corfield, all rights reserved
(ns next.jdbc.plan
"Some helper functions that make common operations with `next.jdbc/plan`
much easier."
(:require [next.jdbc :as jdbc]))
(set! *warn-on-reflection* true)
(defn select-one!
"Execute the SQL and params using `next.jdbc/plan` and return just the
selected columns from just the first row.