Search
Setup for Free
DT
Drizzle Team
•
2y ago
breadfish_18 | MerchantTF
Is there a way to simulate mode: 'string' for bigint?
Have the fields type bigint in postgres and type string when querying
/inserting
/updating
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,798
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
M
Mykhailo
•
5/23/24, 9:12 PM
Hey
@breadfish
_18
! As for now
, only
mode: number
mode: number
is supported
.
https://orm.drizzle.team/docs/column-types/pg#bigint
Drizzle ORM - PostgreSQL column types
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind
.
M
Mykhailo
Hey @breadfish_18! As for now, only `mode: number` is supported. https://orm.dr...
B
breadfish_18 | MerchantTF
OP
•
5/23/24, 9:15 PM
Hi Mykhailo
, thank you for your response
. I was able to solve the issue with a customType
!
mode: number
mode: number
Similar Threads
unsigned bigint casted to string
DT
Drizzle Team / help
2y ago
Default bigint column mode to "bigint" with introspect command
DT
Drizzle Team / help
2y ago
bigint is not a number
DT
Drizzle Team / help
2y ago