mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 22:11:37 +02:00
🎉 Add refcount-like functionality to storages.
This allows reuse of storage objects among different files.
This commit is contained in:
parent
b57e63d7d6
commit
e54b443247
7 changed files with 130 additions and 23 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue