0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-14 07:51:35 -05:00

🎉 Add db/inet type factory.

This commit is contained in:
Andrey Antukh 2021-05-04 20:20:39 +02:00 committed by Andrés Moya
parent 9d28807796
commit 81c406bb60

View file

@ -333,6 +333,12 @@
(t/decode-str val)
val)))
(defn inet
[ip-addr]
(doto (org.postgresql.util.PGobject.)
(.setType "inet")
(.setValue (str ip-addr))))
(defn tjson
"Encode as transit json."
[data]