enum KeyOrIndexChoice_f6ff0fbf: string
    implements KeyOrIndexForm, NormalKeyTypeForm, OptKeyOrIndexForm
Public API: explicitly declared with @visibility public.

The key_or_index SQL value; generated by bin/build-models.php.

Accept a structured SQL valuedoctest
$write = static fn (\SqlSemantics\Statement\Model\MySql\Choice\KeyOrIndexChoice_f6ff0fbf $value): string => \SqlSemantics\Statement\Writer::render($value);
    $write instanceof \Closure // => true

Cases§

case UseKey_5ca24005 = 'KEY'
case UseIndex_ea69fe17 = 'INDEX'

Methods§

public function write(Writer $writer): void

Writes the selected SQL option.

Parameters

$writerWriter
Calls 2