Liking cljdoc? Tell your friends :D

com.yetanalytics.squuid.uuid


compare-uuidclj/s

(compare-uuid u1 u2)

Returns:

  • (< uuid1 uuid2): -1
  • (= uuid1 uuid2): 0
  • (> uuid1 uuid2): 1
Returns:
- (< uuid1 uuid2): -1
- (= uuid1 uuid2): 0
- (> uuid1 uuid2): 1
sourceraw docstring

inc-uuidclj/s

(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.
sourceraw docstring

make-squuidclj/s

(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`.
sourceraw docstring

rand-uuidclj/s

(rand-uuid)

Generate a random v4 UUID.

Generate a random v4 UUID.
sourceraw docstring

zero-uuidclj/s

The v0 UUID of all zeroes.

The v0 UUID of all zeroes.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close