Add warn-on-reflection where it was missing
This commit is contained in:
parent
ca8c1e4f18
commit
b9a4d0e12d
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
(ns ^:no-doc next.jdbc.default-options
|
||||||
"Implementation of default options logic."
|
"Implementation of default options logic."
|
||||||
(:require [next.jdbc.protocols :as p]))
|
(:require [next.jdbc.protocols :as p]))
|
||||||
|
|
||||||
|
(set! *warn-on-reflection* true)
|
||||||
|
|
||||||
(defrecord DefaultOptions [connectable options])
|
(defrecord DefaultOptions [connectable options])
|
||||||
|
|
||||||
(extend-protocol p/Sourceable
|
(extend-protocol p/Sourceable
|
||||||
|
|
|
||||||
|
|
@ -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
|
(ns next.jdbc.plan
|
||||||
"Some helper functions that make common operations with `next.jdbc/plan`
|
"Some helper functions that make common operations with `next.jdbc/plan`
|
||||||
much easier."
|
much easier."
|
||||||
(:require [next.jdbc :as jdbc]))
|
(:require [next.jdbc :as jdbc]))
|
||||||
|
|
||||||
|
(set! *warn-on-reflection* true)
|
||||||
|
|
||||||
(defn select-one!
|
(defn select-one!
|
||||||
"Execute the SQL and params using `next.jdbc/plan` and return just the
|
"Execute the SQL and params using `next.jdbc/plan` and return just the
|
||||||
selected columns from just the first row.
|
selected columns from just the first row.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue