mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 00:58:26 -05: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")
|
||||
(.setValue (str ip-addr))))
|
||||
|
||||
(defn decode-inet
|
||||
[^PGobject o]
|
||||
(if (= "inet" (.getType o))
|
||||
(.getValue o)
|
||||
nil))
|
||||
|
||||
(defn tjson
|
||||
"Encode as transit json."
|
||||
[data]
|
||||
|
|
Loading…
Add table
Reference in a new issue