stripe / pg-schema-diff

Go library for diffing Postgres schemas and generating SQL migrations
MIT License
371 stars 26 forks source link

[FEATURE] : Support User defined Types #178

Open bheemvennapureddy opened 2 weeks ago

bheemvennapureddy commented 2 weeks ago

Describe the feature Support User defined types

https://www.postgresql.org/docs/current/xtypes.html

Example :

CREATE TYPE udt_KeyValue AS (
    Key INT,
    Value VARCHAR(1000)
);

*Motivation

PGSQL does not support user-defined table types, but it does support user-defined data types. we use them to store csv data in user defined types and refctor them

bplunkett-stripe commented 1 week ago

This should be pretty straightforward to implement I believe.