packages/sql-semantics-mysql/resources/models/Choice/InsertLockOptionChoice_9353dd7b.php

1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Statement\Model\MySql\Choice;
6
7/**
8 * The insert_lock_option SQL value; generated by bin/build-models.php.
9 *
10 * @visibility public
11 * @example Accept a structured SQL value
12 *     $write = static fn (\SqlSemantics\Statement\Model\MySql\Choice\InsertLockOptionChoice_9353dd7b $value): string => \SqlSemantics\Statement\Writer::render($value);
13 *     $write instanceof \Closure // => true
14 */
15enum InsertLockOptionChoice_9353dd7b: string implements \SqlSemantics\Statement\Model\MySql\Role\InsertLockOptionForm
16{
17    case Use_e3b0c442 = '';
18    case UseLowPriority_987c9984 = 'LOW_PRIORITY';
19    case UseDelayed_e28b0c35 = 'DELAYED';
20    case UseHighPriority_93dc3609 = 'HIGH_PRIORITY';
21
22    /**
23     * Writes the selected SQL option.
24     */
25    public function write(\SqlSemantics\Statement\Writer $writer): void
26    {
27        foreach (explode(' ', $this->value) as $word) {
28            $writer->append($word);
29        }
30    }
31}
32