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

[Feature Request]: Support timestamp mode for Drizzle SQLite expiry column #1628

Open
LinusOP opened this issue Jul 10, 2024 · 0 comments · May be fixed by #1629
Open

[Feature Request]: Support timestamp mode for Drizzle SQLite expiry column #1628

LinusOP opened this issue Jul 10, 2024 · 0 comments · May be fixed by #1629
Labels
feature request New feature requests

Comments

@LinusOP
Copy link
Member

LinusOP commented Jul 10, 2024

Package

​@lucia-auth/session-drizzle

Description

It is quite common to want to use the timestamp mode for an integer column containing a timestamp/date when using Drizzle for SQLite. This means Drizzle will convert to and from Date in that column automatically.

Currently the Drizzle adapter does a integer > Date conversion and so it expects a number returned from Drizzle, thus it does not support this mode.

Adding support for this mode is of course not necessary but means people can keep their schemas uniform and can use the mode for all columns, should they prefer it.

@LinusOP LinusOP added the feature request New feature requests label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant