-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Labels
Description
Describe what you want
- SQLite's maximum integer value is
9223372036854775807 - JavaScript's maximum safe integer is
9007199254740991
9223372036854775807 // SQLite's largest possible integer
9007199254740991 // JavaScript Number.MAX_SAFE_INTEGERAllow SQLite integer columns to be inferred as JavaScript BigInt.
integer('id', { mode: 'number' })
integer('id', { mode: 'bigint' }) // support thisPostgreSQL and MySQL support this feature in the bigint column.
// will be inferred as `number`
bigint: bigint('bigint', { mode: 'number' })
// will be inferred as `bigint`
bigint: bigint('bigint', { mode: 'bigint' })This will be useful for Autoincrement columns that can become large.
Related issues:
- chore(sqlite-core): remove
bigintand addtimestamp_ms#739 - [SQLite] Add bigint mode to SQLite #558 - implemented with blob
ksmithut, GustavoOS, billythedummy, t1u1, ryan0x44 and 5 more