mirror of
https://github.com/penpot/penpot.git
synced 2025-05-04 22:15:58 +02: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)
|
(t/decode-str val)
|
||||||
val)))
|
val)))
|
||||||
|
|
||||||
|
(defn inet
|
||||||
|
[ip-addr]
|
||||||
|
(doto (org.postgresql.util.PGobject.)
|
||||||
|
(.setType "inet")
|
||||||
|
(.setValue (str ip-addr))))
|
||||||
|
|
||||||
(defn tjson
|
(defn tjson
|
||||||
"Encode as transit json."
|
"Encode as transit json."
|
||||||
[data]
|
[data]
|
||||||
|
|
Loading…
Add table
Reference in a new issue