🎉 Add builtin copy fast path operation for storage.

This commit is contained in:
Andrey Antukh 2021-01-19 13:43:09 +01:00 committed by Alonso Torres
parent 15edabc977
commit d494e44df3
5 changed files with 65 additions and 8 deletions

View file

@ -33,6 +33,14 @@
:code :invalid-storage-backend
:context cfg))
(defmulti copy-object (fn [cfg _ _] (:type cfg)))
(defmethod copy-object :default
[cfg _ _]
(ex/raise :type :internal
:code :invalid-storage-backend
:context cfg))
(defmulti get-object-data (fn [cfg _] (:type cfg)))
(defmethod get-object-data :default