packages/sql-semantics-postgres/resources/models/Choice/JsonObjectConstructorNullClauseOptChoice_5faad07a.php

1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Statement\Model\PostgreSql\Choice;
6
7/**
8 * The json_object_constructor_null_clause_opt 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\PostgreSql\Choice\JsonObjectConstructorNullClauseOptChoice_5faad07a $value): string => \SqlSemantics\Statement\Writer::render($value);
13 *     $write instanceof \Closure // => true
14 */
15enum JsonObjectConstructorNullClauseOptChoice_5faad07a: string implements \SqlSemantics\Statement\Model\PostgreSql\Role\JsonObjectConstructorNullClauseOptForm
16{
17    case UseNullOnNull_4df71739 = 'NULL ON NULL';
18    case UseAbsentOnNull_5247be9f = 'ABSENT ON NULL';
19    case Use_e3b0c442 = '';
20
21    /**
22     * Writes the selected SQL option.
23     */
24    public function write(\SqlSemantics\Statement\Writer $writer): void
25    {
26        foreach (explode(' ', $this->value) as $word) {
27            $writer->append($word);
28        }
29    }
30}
31