mirror of
https://github.com/penpot/penpot.git
synced 2026-03-03 16:54:19 +00:00
🎉 Add db/inet type factory.
This commit is contained in:
committed by
Andrés Moya
parent
9d28807796
commit
81c406bb60
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user