packages/sql-semantics-mysql/src/Model/Contract/NameUse.php

1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Platform\MySql\Model\Contract;
6
7/**
8 * The syntactic position a name is spelled for; reserved words differ between positions.
9 *
10 * `Identifier` is a position that reads a plain identifier token only: every
11 * keyword must be quoted there.
12 *
13 * @visibility public
14 * @example Naming the position of a relation name
15 *     \SqlSemantics\Platform\MySql\Model\Contract\NameUse::Relation->name // => 'Relation'
16 */
17enum NameUse
18{
19    case Column;
20    case Relation;
21    case Qualifier;
22    case Alias;
23    case Routine;
24    case Label;
25    case Identifier;
26}
27