packages/sql-semantics-postgres/src/Statement/Table/Partition/DetachMode.php

1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Platform\PostgreSql\Statement\Table\Partition;
6
7/**
8 * How DETACH PARTITION detaches: at once, concurrently, or finishing an interrupted concurrent detach.
9 *
10 * Source: https://www.postgresql.org/docs/17/sql-altertable.html.
11 *
12 * @visibility public
13 * @example Reading the keyword of a detach mode
14 *     \SqlSemantics\Platform\PostgreSql\Statement\Table\Partition\DetachMode::Concurrently->value // => 'CONCURRENTLY'
15 */
16enum DetachMode: string
17{
18    case Plain = '';
19    case Concurrently = 'CONCURRENTLY';
20    case Finalize = 'FINALIZE';
21}
22