packages/sql-semantics-postgres/src/Statement/Catalog/Publication/PublicationAction.php
1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Platform\PostgreSql\Statement\Catalog\Publication;
6
7/**
8 * What ALTER PUBLICATION or ALTER SUBSCRIPTION does with the listed objects: add them, replace the list with them, or remove them.
9 *
10 * Source: https://www.postgresql.org/docs/17/sql-alterpublication.html, https://www.postgresql.org/docs/17/sql-altersubscription.html.
11 *
12 * @visibility public
13 * @example Spelling the replacing action
14 * \SqlSemantics\Platform\PostgreSql\Statement\Catalog\Publication\PublicationAction::Set->value // => 'SET'
15 */
16enum PublicationAction: string
17{
18 case Add = 'ADD';
19 case Set = 'SET';
20 case Drop = 'DROP';
21}
22