0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 17:18:21 -05:00

🎉 Add decode-inet helper on app.db ns.

This commit is contained in:
Andrey Antukh 2021-06-09 16:57:10 +02:00 committed by Alonso Torres
parent 4c4dac8e90
commit ff3caec36c

View file

@ -349,6 +349,12 @@
(.setType "inet")
(.setValue (str ip-addr))))
(defn decode-inet
[^PGobject o]
(if (= "inet" (.getType o))
(.getValue o)
nil))
(defn tjson
"Encode as transit json."
[data]