final class MySqlParser

MySQL parser implementation backed by phpMyAdmin SQL parser.

Methods§

public function parse(string $sql): list<Statement>

Parse SQL into an array of statements with PHP 8.5+ compatibility.

Suppresses warnings for large number to int conversion that occur in phpmyadmin/sql-parser when parsing SQL with very large numeric literals.

Parameters

$sqlstring

Returns

list<Statement>
Test cases 86
Called from 9
Calls 7
public function parseSingleLogicalStatement(string $sql): ?Statement

Parse Single Logical Statement for the supplied MySQL input.

Parameters

$sqlstring

Returns

?Statement
Test cases 25
Called from 2
Calls 4

Test cases 746§

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

Dedicated tests 11
Other tests reaching this symbol 735

Relations§

Instantiated in 1
Method calls 12
Type declarations 17