packages/sql-semantics-postgres/src/Statement/Option/AddOrDrop.php
1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Platform\PostgreSql\Statement\Option;
6
7/**
8 * Whether a command adds members to an object or removes them, as `add_drop` writes it.
9 *
10 * Source: https://www.postgresql.org/docs/17/sql-alterextension.html, https://www.postgresql.org/docs/17/sql-altergroup.html.
11 *
12 * @visibility public
13 * @example Spelling the removing choice
14 * \SqlSemantics\Platform\PostgreSql\Statement\Option\AddOrDrop::Drop->value // => 'DROP'
15 */
16enum AddOrDrop: string
17{
18 case Add = 'ADD';
19 case Drop = 'DROP';
20}
21