money currently accepts string | number in Insertables and returns string in Selectables.
numeric, which is a fixed-decimal type just like money, currently only accepts number (resulting in potential loss of precision) and returns number in Selectables (which is incorrect).
These should both return a db.NumericString that is defined like below (just like Int8String already does) and both accept db.NumericString | number on input.
money
currently acceptsstring | number
in Insertables and returnsstring
inSelectable
s.numeric
, which is a fixed-decimal type just likemoney
, currently only acceptsnumber
(resulting in potential loss of precision) and returnsnumber
inSelectable
s (which is incorrect).These should both return a
db.NumericString
that is defined like below (just likeInt8String
already does) and both acceptdb.NumericString | number
on input.