Created
May 9, 2024 08:09
-
-
Save igrishaev/85a9fab32b541144c8e51758b91d1b76 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(honey.sql/register-fn! | |
:pg-cast | |
(fn [_ [expr type]] | |
(let [[sql & params] | |
(sql/format-expr expr)] | |
[(cc/format "(%s)::%s" sql (name type))]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment