Repository navigation
Commit 4ca9b5b
postgresql: record domains in the catalog
The catalog PostgreSQL is analyzed with by default ignored CREATE DOMAIN,
so a plugin generating for PostgreSQL was told nothing about a domain
even with the protocol able to carry it. The catalog now records each
domain with its base type and whether it is declared NOT NULL, in the
schema it was created in, and DROP DOMAIN removes it as DROP TYPE does.
Refs sqlc-dev#4483
Co-authored-by: Copilot <[email protected]>1 parent 4f4cf37 commit 4ca9b5b
9 files changed
Lines changed: 69064 additions & 1 deletion
File tree
- internal
- endtoend/testdata/codegen_json_domains_postgresql
- gen
- postgresql
- engine/postgresql
- sql/catalog
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments