Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating GUIDs? #64

Open
edenworky opened this issue Feb 10, 2024 · 1 comment
Open

Generating GUIDs? #64

edenworky opened this issue Feb 10, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@edenworky
Copy link

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.

@wotbrew
Copy link
Owner

wotbrew commented Feb 26, 2024

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 wotbrew added the documentation Improvements or additions to documentation label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants