From 2d16dcdf58e8f0bd9b1e09f807a4a1c5913fb894 Mon Sep 17 00:00:00 2001 From: qeshi <6067421+qeshi@users.noreply.github.com> Date: Fri, 19 May 2023 14:54:04 +0200 Subject: [PATCH] Adding :nippy-jar source, to be able to read nippy files from inside a jar --- src/wanderung/core.clj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wanderung/core.clj b/src/wanderung/core.clj index abe154b..097fad3 100644 --- a/src/wanderung/core.clj +++ b/src/wanderung/core.clj @@ -35,6 +35,10 @@ (defmethod datoms-from-storage :nippy [storage] (nippy/thaw-from-file (:filename storage))) +;;; Nippy JAR +(defmethod datoms-from-storage :nippy-jar [storage] + (nippy/thaw-from-resource (:filename storage))) + (defmethod datoms-to-storage :nippy [storage datoms] (let [filename (:filename storage)] (io/make-parents filename)