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

feat: serial (autoincrement) column type #1526

Open
matrixise opened this issue Feb 14, 2025 · 2 comments
Open

feat: serial (autoincrement) column type #1526

matrixise opened this issue Feb 14, 2025 · 2 comments

Comments

@matrixise
Copy link

Problem / use case

This feature would be really interesting when you want to fill a table that would act as a history for actions. Without it, you have to play with composite keys and sometimes it just doesn't work.

Proposed solution

Use the serial column from Drizzle

@typedarray typedarray changed the title Add support for serial, auto increment primary keys. feat: serial (autoincrement) column type Feb 14, 2025
@typedarray
Copy link
Collaborator

Thanks for opening - just noting that we definitely want to add this, but it's not as easy as just adding the Drizzle serial column type. Our in-memory store and batched write mechanism makes this more complex to implement.

@matrixise
Copy link
Author

I haven't looked at the code, but isn't it possible to make an exception in the case of PostgreSQL?

Thanks

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