This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-06
Channels
- # babashka-sci-dev (56)
- # beginners (13)
- # biff (3)
- # calva (24)
- # cider (2)
- # clj-together (2)
- # clojure (38)
- # clojure-europe (6)
- # clojure-norway (2)
- # clojurescript (1)
- # cursive (5)
- # introduce-yourself (3)
- # pedestal (4)
- # polylith (5)
- # portal (11)
- # re-frame (7)
- # reitit (6)
- # shadow-cljs (12)
- # spacemacs (5)
- # sql (7)
- # tools-deps (1)
Hi All, when using next.jdbc and, when I run (sql/find-by-keys conn :Forty_char_long_table_anem {:id id}))
and then run (println (keys record))
, each key is too long tablename/field_name
. Is there a way to replace table name with table alias like tb
You're looking for this I think: https://github.com/seancorfield/next-jdbc/blob/develop/doc/result-set-builders.md
1
I recommend you get used to qualified key names -- they are *idiomatic* in Clojure.
1
Yes, agreed. I want qualified column names. But I want table alias, just like we have namespace alias in require
pls advise if it is possible
No, it is not possible.
Noted. thaank you