final class MySqlQueryGuard

Classifies SQL and enforces ZTD write-protection rules.

Methods§

public function __construct(MySqlParser $parser)

Configure the dependencies used by this operation.

Parameters

public function classify(string $sql): ?QueryKind

Classify a SQL string into READ/WRITE_SIMULATED/DDL_SIMULATED or null if unsupported.

Parameters

$sqlstring

Returns

Test cases 75
Called from 2
Calls 6

Private surface 1§

Implementation details, listed for orientation only.

private MySqlParser $parser

Test cases 237§

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

Dedicated tests 80
Other tests reaching this symbol 157

Relations§

Instantiated in 1
Method calls 2
Type declarations 3