node-sql-parser icon indicating copy to clipboard operation
node-sql-parser copied to clipboard

Support CREATE statements for composite types in postgres

Open 1ilit opened this issue 1 year ago • 0 comments

It would be really helpful if there was support for parsing CREATE TYPE statements not only for enums but also for composite types

Database Engine PostgreSQL

To Reproduce -the SQL that be parsed

CREATE TYPE address AS (
    street VARCHAR(255),
    city VARCHAR(100),
    state VARCHAR(100),
    zip_code VARCHAR(10)
);

-the node-sql-parser version v5.2.0 -the node version v18.20.3

Expected behavior Produce ast

1ilit avatar Jun 28 '24 14:06 1ilit