0

更新機能が欲しい。したがって、この関数には 6 つのパラメーターがあります。

(defn update-user-profile [id email slogan title twitter web_site]
  (sql/with-connection
   db
   (sql/do-commands "update users SET email=? slogan=?
                    title=? twitter=? web_site=? WHERE id=?"id,email,slogan...

これは私が欲しいものです。Clojureで可能ですか、それともOKですか?

ps私はあることを知っていsql/update-valuesます。しかし、これを試すたびに、wrong number of arguments(7)どちらが理解できないかのようなエラーが表示されます。

編集:慣用的な方法で質問を解決しました。ありがとうございました。

4

0 に答える 0