christopher
@christopher
JSON not supporting BigInt hurts my soul
4 replies
0 recast
15 reactions
Ξric Juta
@ericjuta
postgres wen uint256
1 reply
0 recast
3 reactions
Vladyslav Dalechyn
@dalechyn.eth
import { customType } from 'drizzle-orm/pg-core' export const ethBigint = customType<{ data: bigint driverData: number config: never }>({ dataType() { return 'numeric(78, 0)' }, fromDriver(value: number): bigint { return BigInt(value) }, })
2 replies
0 recast
0 reaction
Ξric Juta
@ericjuta
ye then that's js runtime land handling it, even fucking worse lol
1 reply
0 recast
1 reaction
christopher
@christopher
yuck
0 reply
0 recast
1 reaction