mirror of
https://github.com/penpot/penpot.git
synced 2026-08-27 07:09:14 +00:00
🎉 Add decode-inet helper on app.db ns.
This commit is contained in:
parent
4c4dac8e90
commit
ff3caec36c
@ -349,6 +349,12 @@
|
|||||||
(.setType "inet")
|
(.setType "inet")
|
||||||
(.setValue (str ip-addr))))
|
(.setValue (str ip-addr))))
|
||||||
|
|
||||||
|
(defn decode-inet
|
||||||
|
[^PGobject o]
|
||||||
|
(if (= "inet" (.getType o))
|
||||||
|
(.getValue o)
|
||||||
|
nil))
|
||||||
|
|
||||||
(defn tjson
|
(defn tjson
|
||||||
"Encode as transit json."
|
"Encode as transit json."
|
||||||
[data]
|
[data]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user