Simple DDL Parser to parse SQL (HQL, TSQL, AWS Redshift, BigQuery, Snowflake and other dialects) ddl files to json/python dict with full information about columns: types, defaults, primary keys, etc. & table properties, types, domains, etc.
CREATE TABLE foo
(
entity_id UUID PRIMARY KEY DEFAULT public.getId(),
name VARCHAR(64),
CONSTRAINT my_constraint CHECK(v2.my_function(name) IS TRUE)
);
Currently, if the reference to the function contains schema (public. and v2. in the example above) parser returns an empty result.
Would be nice to support this case as well.
Example
Currently, if the reference to the function contains schema (
public.
andv2.
in the example above) parser returns an empty result.Would be nice to support this case as well.