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

Do you recommend any Unique Key Generator? #22

Closed
Nipodemos opened this issue Aug 19, 2019 · 2 comments
Closed

Do you recommend any Unique Key Generator? #22

Nipodemos opened this issue Aug 19, 2019 · 2 comments

Comments

@Nipodemos
Copy link

hello!
sorry for asking you for help instead of reporting an issue, but i don't know what to do now 😅

yesterday i was trying hive in a TODO list app, and for each note i need to generate a unique key
i've used UUID to generate a random key, but i faced an error of invalid arguments, problably i was doing something wrong. So, do you recommend any package or any method to generate a random key for each note ?

@simc
Copy link
Member

simc commented Aug 19, 2019

Hive supports autoIncrement keys. Just use box.add() instead of box.put(). Maybe that already helps.

Otherwise I don't have a good recommendation...

@Nipodemos
Copy link
Author

thanks for the answer. I'll try that,
awesome work with this package 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants