Liking cljdoc? Tell your friends :D

com.fulcrologic.rad.ids

Functions supporting various ID concerns.

Functions supporting various ID concerns.
raw docstring

id-string->idclj/s

(id-string->id type id)

When forms are routed to their ID is in the URL as a string. This converts IDs in such a string format to the given type (which must be a RAD type name that supports IDs like :uuid, :int, :long or :string).

When forms are routed to their ID is in the URL as a string. This converts IDs in such a string format to the
given type (which must be a RAD type name that supports IDs like :uuid, :int, :long or :string).
sourceraw docstring

new-uuidclj/s

(new-uuid)
(new-uuid v)

Without args gives random UUID. With args, builds UUID based on input.

  • If v is an int (in CLJC), it will generate a fixed UUID starting with FFF...and ending in that number.
  • If v is a uuid, it is just returned.
  • If v is non-nil it will be used as a string to generate a UUID (can fail).
  • If v is missing, you will get a random uuid.
Without args gives random UUID. With args, builds UUID based on input.

- If v is an int (in CLJC), it will generate a fixed UUID starting with FFF...and ending
  in that number.
- If v is a uuid, it is just returned.
- If v is non-nil it will be used as a string to generate a UUID (can fail).
- If v is missing, you will get a random uuid.
sourceraw docstring

select-keys-in-nsclj/s

(select-keys-in-ns m nspc)

Returns a version of m where only those keys with namespace nspc are kept.

Returns a version of `m` where only those keys with namespace `nspc` are kept.
sourceraw docstring

valid-uuid-string?clj/s

(valid-uuid-string? s)

Returns true if the given string appears to be a valid UUID string.

Returns true if the given string appears to be a valid UUID string.
sourceraw docstring

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

× close