classProcedureAnalyse
final class ProcedureAnalyse
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.The PROCEDURE ANALYSE (max_elements, max_memory) clause of the 5.x grammars.
It asks the server to return a description of the result columns instead of the rows; the arguments are optional unsigned integers. The 8.0 server removed it. Source: https://dev.mysql.com/doc/refman/5.7/en/procedure-analyse.html.
$query = (new \SqlSemantics\Platform\MySql\Semantics('mysql-5.7.44'))->analyze('SELECT a FROM t PROCEDURE ANALYSE(10, 2000)');
count($query->statement->procedure->arguments) // => 2$one = new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('1');
new \SqlSemantics\Platform\MySql\Statement\Query\Clause\ProcedureAnalyse([$one, new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('2'), new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('3')]) // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\InvalidConstructionProperties§
public list<NumberLiteral> $argumentsMethods§
public function __construct(list<NumberLiteral> $arguments = [])Parameters
$arguments | list<NumberLiteral> | At most two unsigned integers |
Calls 5
- static-call Check::listOf() line 43
- class-const NumberLiteral::class() line 43
- static-call Check::input() line 44
- function-call
countline 44 - class-const NumberForm::Integer() line 46
public function render(Output $out): voidTest cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 1
Relations§
Instantiated in 1
Type declarations 3
- type SqlSemantics\Platform\MySql\Lowering\Query\Shared\TailRule packages/sql-semantics-mysql/src/Lowering/Query/Shared/TailRule.php:127
- type SqlSemantics\Platform\MySql\Lowering\Query\Shared\Trailer packages/sql-semantics-mysql/src/Lowering/Query/Shared/Trailer.php:40
- type SqlSemantics\Platform\MySql\Statement\Query\Select packages/sql-semantics-mysql/src/Statement/Query/Select.php:116