This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-28
Channels
- # babashka (10)
- # beginners (140)
- # cider (6)
- # clj-kondo (10)
- # cljs-dev (39)
- # cljsrn (6)
- # clojars (1)
- # clojure (23)
- # clojure-europe (2)
- # clojure-spec (7)
- # clojure-uk (6)
- # clojurescript (1)
- # conjure (16)
- # cursive (3)
- # datomic (3)
- # emacs (6)
- # fulcro (13)
- # graalvm (3)
- # malli (8)
- # meander (4)
- # off-topic (43)
- # pathom (1)
- # pedestal (15)
- # re-frame (13)
- # reagent (3)
- # sci (25)
- # shadow-cljs (26)
- # sql (9)
- # testing (34)
- # tools-deps (80)
I wouldn't expect any of the changes to break existing code but good to have it confirmed. I think @fabrao is the only person to try the multiple result sets feature so far and maybe @somedude314 could try the changes to find-by-keys
...
Maybe @antonmos could test the foldable stuff?
@seancorfield Worked flawlessly during manual testing:
user=> (sql/find-by-keys ds :user {:email ""} {:table-fn ansi :column-fn ansi :columns [:email]})
[#:user{:email ""}]
user=> (sql/find-by-keys ds :user {:email ""} {:table-fn ansi :column-fn ansi :columns [:email :role]})
[#:user{:email "", :role "parent"}]
user=> (sql/get-by-id ds :user #uuid"a6980a75-842f-4e4b-8328-fcf1166d69be" {:table-fn ansi :column-fn ansi :columns [:email :role]})
#:user{:email "", :role "parent"}
user=> (sql/get-by-id ds :user #uuid"a6980a75-842f-4e4b-8328-fcf1166d69be" {:table-fn ansi :column-fn ansi :columns [[:email :whaaat] :role]})
#:user{:whaaat "", :role "parent"}
user=> (sql/find-by-keys ds :user {:email ""} {:table-fn ansi :column-fn ansi :columns [[:email :cool] :role]})
[#:user{:cool "", :role "parent"}]
user=> (sql/find-by-keys ds :user :all {:table-fn ansi :column-fn ansi :columns [[:email :cool] :role]})
[#:user{:cool "", :role "teacher"} #:user{:cool "", :role "parent"}]
user=> (sql/find-by-keys ds :user :all {:fetch 1 :table-fn ansi :column-fn ansi :columns [[:email :cool] :role]})
[#:user{:cool "", :role "teacher"}]
user=> (sql/find-by-keys ds :user :all {:offset 1 :fetch 1 :table-fn ansi :column-fn ansi :columns [[:email :cool] :role]})
[#:user{:cool "", :role "parent"}]
Nice! Thanks @somedude314