(compare-uuid u1 u2)
Returns:
Returns: - (< uuid1 uuid2): -1 - (= uuid1 uuid2): 0 - (> uuid1 uuid2): 1
(extract-ts-bytes uuid)
Extracts the first 48 bits of a SQUUID corresponding to a timestamp.
Extracts the first 48 bits of a SQUUID corresponding to a timestamp.
(inc-uuid u)
Increment the UUID by one bit. Throws an exception if there are no available bits left to increment.
Increment the UUID by one bit. Throws an exception if there are no available bits left to increment.
(make-squuid ts)
(make-squuid ts u)
Make a new v8 sequential UUID. Uses uuid
as the base UUID if provided;
otherwise uses a random v4 UUID as the base. Returns a map containing
:base-uuid
and :squuid
.
Make a new v8 sequential UUID. Uses `uuid` as the base UUID if provided; otherwise uses a random v4 UUID as the base. Returns a map containing `:base-uuid` and `:squuid`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close