packages/sql-semantics-mysql/resources/models/Choice/ChangeReplicationSourceZstdCompressionLevelChoice_690c94ad.php
1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Statement\Model\MySql\Choice;
6
7/**
8 * The change_replication_source_zstd_compression_level 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\ChangeReplicationSourceZstdCompressionLevelChoice_690c94ad $value): string => \SqlSemantics\Statement\Writer::render($value);
13 * $write instanceof \Closure // => true
14 */
15enum ChangeReplicationSourceZstdCompressionLevelChoice_690c94ad: string implements \SqlSemantics\Statement\Model\MySql\Role\ChangeReplicationSourceZstdCompressionLevelForm
16{
17 case UseMasterZstdCompressionLevel_db3005a2 = 'MASTER_ZSTD_COMPRESSION_LEVEL';
18 case UseSourceZstdCompressionLevel_178ee386 = 'SOURCE_ZSTD_COMPRESSION_LEVEL';
19
20 /**
21 * Writes the selected SQL option.
22 */
23 public function write(\SqlSemantics\Statement\Writer $writer): void
24 {
25 foreach (explode(' ', $this->value) as $word) {
26 $writer->append($word);
27 }
28 }
29}
30