Functions supporting various ID concerns.
Functions supporting various ID concerns.
(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).
(new-uuid)
(new-uuid v)
Without args gives random UUID. With args, builds UUID based on input.
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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close