Skip to content

Customize the primary key without using indexeddb's auto-increment primary key #1

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

Open
akirarika opened this issue Feb 7, 2025 · 0 comments

Comments

@akirarika
Copy link

akirarika commented Feb 7, 2025

Hello, thank you for creating entity-db!

I am a beginner to entity-db. It seems that the primary key of entity-db is to use the autoincrement id of indexeddb. Is there any way to customize it? For example, I want to use doc: ${workspaceId}: ${userId}: ${randomStr} this custom string as the id, which can make code writing easier. Of course it may be because I don't know enough about entity-db.

If this is a stupid question, sorry to bother you!

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

1 participant