Commit 9d90f5c
fix: Skip over dropped attributes when enumerating types (#492)
* Skip over dropped attributes when enumerating types
`pg_attribute` may contain records for attributes that were dropped but Postgres kept them around and instead of deleting them, renamed them to `........pg.dropped.#........` and set their `attisdropped` to `true`.
This ends up generating these dropped attributes as `unknown` fields in the TypeScript types.
In this commit I updated the `types` query to not return these.
Maybe it would be preferrable to instead keep these but skip them only when generating the TypeScript types?
* use `not`
---------
Co-authored-by: Bobbie Soedirgo <bobbie@soedirgo.dev>1 parent fdae4fa commit 9d90f5c
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments