mirror of
https://github.com/penpot/penpot.git
synced 2025-06-25 23:27:02 +02:00
🎉 Add decode-inet helper on app.db ns.
This commit is contained in:
parent
4c4dac8e90
commit
ff3caec36c
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue