File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 22 (:require [clojure.tools.build.api :as b]))
33
44(def lib 'io.github.codeboost /xitdb-clj )
5- (def version " 0.1.1 " )
5+ (def version " 0.1.2 " )
66(def class-dir " target/classes" )
77(def basis (b/create-basis {:project " deps.edn" }))
88(def jar-file (format " target/%s-%s.jar" (name lib) version))
Original file line number Diff line number Diff line change 3535 (integer? v) :key-integer
3636 (instance? java.time.Instant v) :inst
3737 (instance? java.util.Date v) :date
38+ (coll? v) :coll
3839 (string? v) :string ))
3940
4041; ; map of logical tag -> string used as formatTag in the Bytes record.
4546 :nil " nl" ; ; TODO: Could use Tag/NONE instead
4647 :inst " in"
4748 :date " da"
49+ :coll " co"
4850 :string " st" })
4951
5052(def true-str " #t" )
7072 (if (nil? v)
7173 (byte-array (-> jdb .md .getDigestLength))
7274 (let [digest (.md jdb)
73- fmt-tag (or (some-> v fmt-tag-keyword fmt-tag-value) " " )]
75+ fmt-tag (or (some-> v fmt-tag-keyword fmt-tag-value)
76+ (throw (IllegalArgumentException. (str " Unsupported key type: " (type v)))))]
7477 ; ; add format tag
7578 (.update digest (.getBytes fmt-tag " UTF-8" ))
7679 ; ; add the value
You can’t perform that action at this time.
0 commit comments