relic icon indicating copy to clipboard operation
relic copied to clipboard

Generating `GUID`s?

Open edenworky opened this issue 1 year ago • 1 comments

This feels almost too specific to be in scope for relic, and it's simple enough to manage an ID registry client in e.g. on atom (or even relationally?), but also I feel common enough to at least warrant a little recipe in the docs, if not solving in the code. I'm a bit new to Clojure and relic's paradigm so I'm not sure how to best approach solving it as part of relic and what the best interface would be, but if you help get me going I'd love to get a PR together if you think that's appropriate and useful.

edenworky avatar Feb 10 '24 17:02 edenworky

If you are managing id generation outside of relic (using random-uuid or an id counter or something) then I'd agree this isn't in scope.

However, for cases where the id-counter or generation wants to be part deterministic within a transaction - I do think some guidance (might just be docs) or a helper could be good. I'll have a think about this.

Open to suggestions!

wotbrew avatar Feb 26 '24 11:02 wotbrew