This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-21
Channels
- # announcements (11)
- # architecture (8)
- # aws (7)
- # babashka (1)
- # beginners (55)
- # calva (52)
- # cider (4)
- # clj-kondo (5)
- # clojure (12)
- # clojure-europe (7)
- # clojure-uk (3)
- # clojurescript (40)
- # clr (1)
- # conjure (5)
- # data-oriented-programming (7)
- # datomic (8)
- # emacs (3)
- # events (1)
- # graphql (2)
- # honeysql (5)
- # lsp (7)
- # missionary (24)
- # nbb (10)
- # off-topic (12)
- # pathom (5)
- # reagent (9)
- # reitit (4)
- # schema (1)
- # sci (9)
- # shadow-cljs (2)
- # specter (6)
- # tools-deps (4)
- # xtdb (13)
Is there a way to drop multiple columns with honeysql? Currently:
(-> (honey.sql.helpers/alter-table :account)
(honey.sql.helpers/drop-column [:name :email])
(honey.sql/format))
;; => ["ALTER TABLE account DROP COLUMN name, email"]
Which isn't correct. It should be:
["ALTER TABLE account DROP COLUMN name, DROP COLUMN email"]
I'll have to check how it works on other DBs but please create a GH issue so I'll remember to look at it.
👍 1
DDL support is fraught with edge cases, unfortunately.