We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1189549 commit 1d5a2f6Copy full SHA for 1d5a2f6
1 file changed
src/pages/postgraphile/enums.md
@@ -21,6 +21,14 @@ create table pets (
21
);
22
```
23
24
+The `@enum` smart comments can be used to set the name (`@enumName`)
25
+or the description (`@enumDescription`) of PostgreSQL enums.
26
+
27
+e.g.:
28
+```sql
29
+COMMENT ON TYPE animal_type IS E'@enum\n@enumName TypeOfAnimal';
30
+```
31
32
Sometimes people prefer not to use PostgreSQL enums due to their technical
33
limitations (e.g. you can never drop a value from a PostgreSQL enum, and you
34
cannot add a value to it within a transaction). There are other ways to add
0 commit comments