我試圖傳遞一個Clojure的載體,也嘗試採用以下格式:如何在clojure中使用yesql插入和更新postgres數組?
-- name: insert-into-sometable<!
-- inserts in the sometable the lid and uids
INSERT INTO sometable
(lid, uids) values(:lid, ARRAY[:uids])
但是這兩種方法拋出數據不匹配錯誤。
我想如果我可以從查詢文件中調用postgres數組函數,那麼更新和插入可以很容易地完成。請幫忙。
在此先感謝
我可能會吠叫錯誤的樹,但[這看起來像一個好地方開始](https://github.com/remodoy/clj-postgresql/blob/master/README.md)。不知道這是否適用於Yesql。 –