mirror of
https://github.com/penpot/penpot.git
synced 2026-08-30 16:48:59 +00:00
🎉 Add db/inet type factory.
This commit is contained in:
parent
9d28807796
commit
81c406bb60
@ -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…
x
Reference in New Issue
Block a user