classLineOption
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.
$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::TerminatedProperties§
public LineOptionKind $kindpublic Text $textMethods§
public function __construct(public LineOptionKind $kind, public Text $text)Parameters
$kind | LineOptionKind | What the option sets |
$text | Text | The string it sets |
public function render(Output $out): voidTest 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
- class-const SqlSemantics\Platform\MySql\Statement\Dml\Load\LoadTable::__construct() packages/sql-semantics-mysql/src/Statement/Dml/Load/LoadTable.php:96
- class-const SqlSemantics\Platform\MySql\Statement\Dml\Load\TextFileFormat::__construct() packages/sql-semantics-mysql/src/Statement/Dml/Load/TextFileFormat.php:49