pgtyped icon indicating copy to clipboard operation
pgtyped copied to clipboard

Type overrides not respecting domains

Open pnispel opened this issue 1 year ago • 0 comments

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

pnispel avatar Nov 21 '24 17:11 pnispel