Core UUID generation and manipulation functions implementing RFC 9562.
Provides comprehensive support for all UUID versions (v0-v8) with efficient internal representation and conversion utilities.
Implementation inspired by clj-uuid by Dan Lentz: https://github.com/danlentz/clj-uuid Licensed under Eclipse Public License 1.0
Core UUID generation and manipulation functions implementing RFC 9562. Provides comprehensive support for all UUID versions (v0-v8) with efficient internal representation and conversion utilities. Implementation inspired by clj-uuid by Dan Lentz: https://github.com/danlentz/clj-uuid Licensed under Eclipse Public License 1.0
The MAX UUID is a special form of sentinel UUID that is specified to have all 128 bits set to one.
The MAX UUID is a special form of sentinel UUID that is specified to have all 128 bits set to one.
The NULL UUID is a special form of sentinel UUID that is specified to have all 128 bits set to zero.
The NULL UUID is a special form of sentinel UUID that is specified to have all 128 bits set to zero.
(< _)(< x y)(< x y & more)Directly compare two or more UUIDs for < relation.
Directly compare two or more UUIDs for < relation.
(= _)(= x y)(= x y & more)Directly compare two or more UUIDs for equality.
Directly compare two or more UUIDs for equality.
(> _)(> x y)(> x y & more)Directly compare two or more UUIDs for > relation.
Directly compare two or more UUIDs for > relation.
(monotonic-time)Return a monotonic timestamp (guaranteed always increasing) based on the number of 100-nanosecond intervals elapsed since the adoption of the Gregorian calendar in the West, 12:00am Friday October 15, 1582 UTC.
Return a monotonic timestamp (guaranteed always increasing) based on the number of 100-nanosecond intervals elapsed since the adoption of the Gregorian calendar in the West, 12:00am Friday October 15, 1582 UTC.
(squuid)Generate a SQUUID (sequential, random) unique identifier.
Generate a SQUUID (sequential, random) unique identifier.
A UUIDable object directly represents a UUID.
A UUIDable object directly represents a UUID.
(as-uuid x)Coerce the value 'x' to a UUID.
Coerce the value 'x' to a UUID.
(uuidable? x)Return 'true' if 'x' can be coerced to UUID.
Return 'true' if 'x' can be coerced to UUID.
A mechanism intended for user-level extension that defines the decoding rules for the local-part representation of arbitrary Clojure / Java Objects when used for computing namespaced identifiers.
A mechanism intended for user-level extension that defines the decoding rules for the local-part representation of arbitrary Clojure / Java Objects when used for computing namespaced identifiers.
(as-byte-array x)Extract a byte serialization that represents the 'name' of x, typically unique within a given namespace.
Extract a byte serialization that represents the 'name' of x, typically unique within a given namespace.
A protocol that abstracts an unique identifier as described by IETF RFC9562.
A protocol that abstracts an unique identifier as described by IETF RFC9562.
(get-instant uuid)(get-unix-time uuid)(get-clk-low uuid)(hash-code uuid)(to-hex-string uuid)(uuid= x y)(to-byte-array uuid)(get-word-low uuid)(get-clk-seq uuid)(get-node-id uuid)(uuid> x y)(null? uuid)(uuid< x y)(get-word-high uuid)(max? uuid)(to-string uuid)(get-clk-high uuid)(get-timestamp uuid)(get-time-low uuid)(to-urn-string uuid)(get-version uuid)(get-time-high uuid)(get-time-mid uuid)(get-variant uuid)(uuid? x)(to-uri uuid)(v1)Generate a v1 (time-based) unique identifier.
Generate a v1 (time-based) unique identifier.
(v3 context local-part)Generate a v3 (name based, MD5 hash) UUID.
Generate a v3 (name based, MD5 hash) UUID.
(v5 context local-part)Generate a v5 (name based, SHA1 hash) UUID.
Generate a v5 (name based, SHA1 hash) UUID.
(v6)Generate a v6 (time-based), lexically sortable, unique identifier.
Generate a v6 (time-based), lexically sortable, unique identifier.
(v7)Generate a v7 unix time-based, lexically sortable UUID.
Generate a v7 unix time-based, lexically sortable UUID.
(v8 msb lsb)Generate a v8 custom UUID with up to 122 bits of user data.
Generate a v8 custom UUID with up to 122 bits of user data.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |