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:
parent
9d28807796
commit
81c406bb60
1 changed files with 6 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue