Use bunbig for big.Int and big.Float support in Bun
masterSince the standard math/big package does not implement database/sql scan/value methods, it cannot be used directly with Bun. bunbig provides a wrapper around math/big that allows you to use big.Int and big.Float types within your Bun models and database operations (including PostgreSQL).
type TableWithBigint struct {
ID uint64
Name string
Deposit *bunbig.Int
Residue *bunbig.Float
}