Skip to content

Type overrides not respecting domains #594

Open
@pnispel

Description

@pnispel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions