final class LineOption
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

One option of the LINES clause of a text file format: TERMINATED BY or STARTING BY a string.

Source: https://dev.mysql.com/doc/refman/8.4/en/load-data.html.

Reading the line terminator of INTO OUTFILEdoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("SELECT 1 INTO OUTFILE 'f' LINES TERMINATED BY ';'");
    $query->statement->into->format->lines[0]->kind // => \SqlSemantics\Platform\MySql\Statement\Dml\Load\LineOptionKind::Terminated

Properties§

public Text $text

Methods§

public function __construct(public LineOptionKind $kind, public Text $text)

Parameters

$kindLineOptionKindWhat the option sets
$textTextThe string it sets
public function render(Output $out): void

Writes the option.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1
Constant reads 2