packages/sql-semantics-mysql/src/Statement/Partition/Method/PartitionKind.php

1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Platform\MySql\Statement\Partition\Method;
6
7/**
8 * The two partitioning types that assign rows by the partition values each partition definition states.
9 *
10 * RANGE partitions hold the rows below a bound (`VALUES LESS THAN`); LIST
11 * partitions hold the rows whose value is one of a list (`VALUES IN`).
12 * Source: https://dev.mysql.com/doc/refman/8.4/en/partitioning-range.html,
13 * https://dev.mysql.com/doc/refman/8.4/en/partitioning-list.html.
14 *
15 * @visibility public
16 * @example Reading the keyword of a case
17 *     \SqlSemantics\Platform\MySql\Statement\Partition\Method\PartitionKind::List->value // => 'LIST'
18 */
19enum PartitionKind: string
20{
21    case Range = 'RANGE';
22    case List = 'LIST';
23}
24