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

Autoincrement of ID fields? #202

Open
milosrs opened this issue Sep 16, 2021 · 2 comments
Open

Autoincrement of ID fields? #202

milosrs opened this issue Sep 16, 2021 · 2 comments
Labels
feature new feature

Comments

@milosrs
Copy link

milosrs commented Sep 16, 2021

Is there any way to do autoincrement on ID fields?
I'm looking for something like this:

type X struct { Field uint64 'bson:",autoIncrement' }

@milosrs milosrs changed the title Autoincrement of ID fields Autoincrement of ID fields? Sep 16, 2021
@jiangz222
Copy link
Collaborator

jiangz222 commented Sep 16, 2021

Qmgo doesn't support it yet! 😭

@jiangz222 jiangz222 added the feature new feature label Sep 16, 2021
@cupen
Copy link

cupen commented Oct 23, 2023

@milosrs Look at snowflake id.
https://en.wikipedia.org/wiki/Snowflake_ID

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

No branches or pull requests

3 participants