🎉 Add refcount-like functionality to storages.

This allows reuse of storage objects among different files.
This commit is contained in:
Andrey Antukh 2021-01-29 23:56:11 +01:00 committed by Alonso Torres
parent b57e63d7d6
commit e54b443247
7 changed files with 130 additions and 23 deletions

View file

@ -258,6 +258,11 @@
[p]
(PGpoint. (:x p) (:y p)))
(defn create-array
[conn type aobjects]
(let [^PGConnection conn (unwrap conn org.postgresql.PGConnection)]
(.createArrayOf conn ^String type aobjects)))
(defn decode-pgpoint
[^PGpoint v]
(gpt/point (.-x v) (.-y v)))