Why specify number
mode in SQLite integer column?
#2527
Unanswered
hyunbinseo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It's for the primary key. Primary key should be unique. Boolean: only two possible unique keys. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The integer column's default return type is
number
.What is the purpose of
{ mode: 'number' }
?https://orm.drizzle.team/docs/column-types/sqlite#integer
Note that both schemas generate same SQL.
Beta Was this translation helpful? Give feedback.
All reactions