Bigint in SQLite results in "TypeError: Do Not Know how to serialize a BigInt"
It's failing in this section of my schema:
With the following error:
When I try to run
drizzle-kit generate:sqlite
.3 Replies
I've also tried the
0n
notation and it fails with the same error.
I'm using bun as a package manager and sveltekit as a framework
Anyone know of a suggested workaround? I'll probably end up saving it as string and doing the conversion manuallyHello, it looks similar to https://discord.com/channels/1043890932593987624/1240639529962967111
Yeah, but that convo is for PostgresSQL.... There is a PR going (https://github.com/drizzle-team/drizzle-orm/pull/2579) but idk where it sits under the code review schedule
GitHub
[SQLite] Add 64 bit bigint mode to number column by MrRahulRamkumar...
Closes #1980
Allows users to enable the SQLite driver to return JavaScript bigint instead of number.
Updates existing integer modes to handle the driver returning bigint.
Adds new bigint mode to t...