pgtyped
pgtyped copied to clipboard
Type overrides not respecting domains
Describe the bug I make a domain like:
CREATE DOMAIN public.uint128 AS numeric(39,0)
CONSTRAINT uint128_check CHECK ((VALUE >= (0)::numeric));
if I dont include that in my typesOverrides config pgtyped will complain about the missing type:
Error: Postgres type 'uint128' is not supported by mapping
but if thats added: "uint128": "BigInt", it wont error, but the types generated will still be strings.
Expected behavior
typeOverrides config is respected and output types for uint128 are bigint