classGenerationPlans
final class GenerationPlans
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Names the generation plans this dialect's provider is built from.
A plan is how a caller says which SQL it wants, and the ones a provider offers are a fixed vocabulary rather than something each caller assembles. Naming them here keeps that vocabulary in one place and lets the provider read as a list of what it can generate.
Methods§
public static function withoutEmptyRows(non-empty-string|null $startRule = null): GenerationPlan<true>Directs a walk that never leaves a VALUES list with nothing in it.
Parameters
$startRule | non-empty-string|null | Rule the walk begins at, or null for the grammar entry point |
Returns
GenerationPlan<true> Plan whose row lists always carry a rowTest cases 1
Called from 1
Calls 3
- static-call GenerationPlan::all() line 33
- static-call GenerationPlan::fromRule() line 34
- static-call ProductionPattern::nonEmpty() line 37
public static function quotedIdentifier(int $minLength, int $maxLength): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testQuotedIdentifierPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 46
- function-call
compactline 46
public static function stringLiteral(int $minLength, int $maxLength): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testStringLiteralPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 54
- function-call
compactline 54
public static function nationalStringLiteral(
int $minLength,
int $maxLength,
): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testNationalStringLiteralPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 62
- function-call
compactline 62
public static function dollarQuotedString(int $minLength, int $maxLength): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testDollarQuotedStringPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 70
- function-call
compactline 70
public static function integerLiteral(int $min, int $max): GenerationPlan<true>Parameters
$min | int | |
$max | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testIntegerLiteralPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 78
- function-call
compactline 78
public static function longIntegerLiteral(int $min, int $max): GenerationPlan<true>Parameters
$min | int | |
$max | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testLongIntegerLiteralPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 86
- function-call
compactline 86
public static function unsignedBigIntLiteral(
int $minLength,
int $maxLength,
): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testUnsignedBigIntLiteralPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 94
- function-call
compactline 94
public static function decimalLiteral(int $precision, int $scale): GenerationPlan<true>Parameters
$precision | int | |
$scale | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testDecimalLiteralPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 102
- function-call
compactline 102
public static function floatLiteral(
int $precision,
int $scale,
int $minExponent,
int $maxExponent,
): GenerationPlan<true>Parameters
$precision | int | |
$scale | int | |
$minExponent | int | |
$maxExponent | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testFloatLiteralPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 114
- function-call
compactline 116
public static function hexLiteral(int $minLength, int $maxLength): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testHexLiteralPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 125
- function-call
compactline 125
public static function quotedHexLiteral(int $minBytes, int $maxBytes): GenerationPlan<true>Parameters
$minBytes | int | |
$maxBytes | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testQuotedHexLiteralPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 133
- function-call
compactline 133
public static function binaryLiteral(int $minLength, int $maxLength): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testBinaryLiteralPlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 141
- function-call
compactline 141
public static function hostname(
int $minParts,
int $maxParts,
int $maxPartLength,
): GenerationPlan<true>Parameters
$minParts | int | |
$maxParts | int | |
$maxPartLength | int |
Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testHostnamePlansThatLexemecovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 149
- function-call
compactline 149
public static function foreignKeyConstraint(Grammar $grammar): GenerationPlan<true>Parameters
$grammar | Grammar |
Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 3
- static-call GenerationPlan::constrained() line 167
- static-call ProductionPattern::containing() line 168
- static-call ProductionPattern::nonEmpty() line 170
public static function multiTableUpdateStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::constrained() line 180
- static-call ProductionPattern::exactly() line 181
public static function updateJoinDerivedStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 210
- static-call ProductionPattern::exactly() line 211
- static-call ProductionPattern::containing() line 218
- static-call ProductionPattern::nonEmpty() line 224
public static function insertSelectCompoundStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 3
- static-call GenerationPlan::constrained() line 234
- static-call ProductionPattern::containing() line 235
- static-call ProductionPattern::exactly() line 238
public static function insertRowAliasUpsertStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 253
- static-call ProductionPattern::containing() line 254
- static-call ProductionPattern::exactly() line 256
- static-call ProductionPattern::nonEmpty() line 257
public static function insertFunctionUpsertStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 267
- static-call ProductionPattern::containing() line 268
- static-call ProductionPattern::exactly() line 270
- static-call ProductionPattern::nonEmpty() line 277
public static function temporaryTableStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::constrained() line 288
- static-call ProductionPattern::nonEmpty() line 289
public static function viewStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testViewStatementRestrictsTheCreateGrammarcovers and calls
Called from 1
Calls 2
- static-call GenerationPlan::constrained() line 298
- static-call ProductionPattern::exactly() line 299
public static function generatedColumnStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 313
- static-call ProductionPattern::containing() line 314
- static-call ProductionPattern::exactly() line 315
- static-call ProductionPattern::nonEmpty() line 317
public static function foreignKeyCascadeStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 327
- static-call ProductionPattern::containing() line 328
- static-call ProductionPattern::exactly() line 329
- static-call ProductionPattern::nonEmpty() line 331
public static function partitionSelectStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 3
- static-call GenerationPlan::constrained() line 347
- static-call ProductionPattern::exactly() line 349
- static-call ProductionPattern::nonEmpty() line 353
public static function loadDataStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
GenerationPlansTest::testLoadDataStatementStartsFromTheLoadGrammarcovers and calls
Called from 1
Calls 1
- static-call GenerationPlan::fromRule() line 365
public static function fullTextSearchStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 373
- static-call ProductionPattern::exactly() line 374
- static-call ProductionPattern::nonEmpty() line 376
- static-call ProductionPattern::containing() line 379
public static function multiTableDeleteStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 3
- static-call GenerationPlan::constrained() line 388
- static-call ProductionPattern::containing() line 389
- static-call ProductionPattern::exactly() line 390
Test cases 29§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 28
GenerationPlansTest::testBinaryLiteralPlansThatLexemecovers and callsGenerationPlansTest::testDecimalLiteralPlansThatLexemecovers and callsGenerationPlansTest::testDollarQuotedStringPlansThatLexemecovers and callsGenerationPlansTest::testFloatLiteralPlansThatLexemecovers and callsGenerationPlansTest::testForeignKeyCascadeStatementRequiresBothCascadeActionscovers and callsGenerationPlansTest::testForeignKeyConstraintAdaptsToTheGrammarVersioncovers and callsGenerationPlansTest::testFullTextSearchStatementRequiresMatchAgainstGrammarcovers and callsGenerationPlansTest::testGeneratedColumnStatementRequiresTheGeneratedAttributecovers and callsGenerationPlansTest::testHexLiteralPlansThatLexemecovers and callsGenerationPlansTest::testHostnamePlansThatLexemecovers and callsGenerationPlansTest::testInsertFunctionUpsertStatementRestrictsTheConflictFunctionGrammarcovers and callsGenerationPlansTest::testInsertRowAliasUpsertStatementRestrictsTheValuesGrammarcovers and callsGenerationPlansTest::testInsertSelectCompoundStatementRestrictsTheUnionGrammarcovers and callsGenerationPlansTest::testIntegerLiteralPlansThatLexemecovers and callsGenerationPlansTest::testLoadDataStatementStartsFromTheLoadGrammarcovers and callsGenerationPlansTest::testLongIntegerLiteralPlansThatLexemecovers and callsGenerationPlansTest::testMultiTableDeleteStatementRestrictsTheDeleteGrammarcovers and callsGenerationPlansTest::testMultiTableUpdateStatementRestrictsTheUpdateGrammarcovers and callsGenerationPlansTest::testNationalStringLiteralPlansThatLexemecovers and callsGenerationPlansTest::testPartitionSelectStatementRequiresThePartitionClausecovers and callsGenerationPlansTest::testQuotedHexLiteralPlansThatLexemecovers and callsGenerationPlansTest::testQuotedIdentifierPlansThatLexemecovers and callsGenerationPlansTest::testStringLiteralPlansThatLexemecovers and callsGenerationPlansTest::testTemporaryTableStatementRequiresTheTemporaryProductioncovers and callsGenerationPlansTest::testUnsignedBigIntLiteralPlansThatLexemecovers and callsGenerationPlansTest::testUpdateJoinDerivedStatementRestrictsTheDerivedTableGrammarcovers and callsGenerationPlansTest::testViewStatementRestrictsTheCreateGrammarcovers and callsGenerationPlansTest::testWithoutEmptyRowsConstrainsEveryOptionalValuesOccurrencecovers and calls
Other tests reaching this symbol 1
MySqlProviderTestcalls
Relations§
Static calls 28
- static-call SqlFaker\MySqlProvider::sqlWithoutEmptyRows() packages/sql-faker/src/MySqlProvider.php:142
- static-call SqlFaker\MySqlProvider::loadDataStatement() packages/sql-faker/src/MySqlProvider.php:223
- static-call SqlFaker\MySqlProvider::multiTableUpdateStatement() packages/sql-faker/src/MySqlProvider.php:239
- static-call SqlFaker\MySqlProvider::multiTableDeleteStatement() packages/sql-faker/src/MySqlProvider.php:255
- static-call SqlFaker\MySqlProvider::quotedIdentifier() packages/sql-faker/src/MySqlProvider.php:354
- static-call SqlFaker\MySqlProvider::stringLiteral() packages/sql-faker/src/MySqlProvider.php:370
- static-call SqlFaker\MySqlProvider::nationalStringLiteral() packages/sql-faker/src/MySqlProvider.php:386
- static-call SqlFaker\MySqlProvider::dollarQuotedString() packages/sql-faker/src/MySqlProvider.php:402
- static-call SqlFaker\MySqlProvider::integerLiteral() packages/sql-faker/src/MySqlProvider.php:416
- static-call SqlFaker\MySqlProvider::longIntegerLiteral() packages/sql-faker/src/MySqlProvider.php:430
- static-call SqlFaker\MySqlProvider::unsignedBigIntLiteral() packages/sql-faker/src/MySqlProvider.php:447
- static-call SqlFaker\MySqlProvider::decimalLiteral() packages/sql-faker/src/MySqlProvider.php:463
- static-call SqlFaker\MySqlProvider::floatLiteral() packages/sql-faker/src/MySqlProvider.php:480
- static-call SqlFaker\MySqlProvider::hexLiteral() packages/sql-faker/src/MySqlProvider.php:497
- static-call SqlFaker\MySqlProvider::quotedHexLiteral() packages/sql-faker/src/MySqlProvider.php:513
- static-call SqlFaker\MySqlProvider::binaryLiteral() packages/sql-faker/src/MySqlProvider.php:529
- static-call SqlFaker\MySqlProvider::hostname() packages/sql-faker/src/MySqlProvider.php:545
- static-call SqlFaker\MySqlProvider::foreignKeyConstraint() packages/sql-faker/src/MySqlProvider.php:868
- static-call SqlFaker\MySqlProvider::updateJoinDerivedStatement() packages/sql-faker/src/MySqlProvider.php:888
- static-call SqlFaker\MySqlProvider::insertSelectCompoundStatement() packages/sql-faker/src/MySqlProvider.php:908
- static-call SqlFaker\MySqlProvider::insertRowAliasUpsertStatement() packages/sql-faker/src/MySqlProvider.php:928
- static-call SqlFaker\MySqlProvider::insertFunctionUpsertStatement() packages/sql-faker/src/MySqlProvider.php:946
- static-call SqlFaker\MySqlProvider::fullTextSearchStatement() packages/sql-faker/src/MySqlProvider.php:963
- static-call SqlFaker\MySqlProvider::temporaryTableStatement() packages/sql-faker/src/MySqlProvider.php:981
- static-call SqlFaker\MySqlProvider::viewStatement() packages/sql-faker/src/MySqlProvider.php:998
- static-call SqlFaker\MySqlProvider::generatedColumnStatement() packages/sql-faker/src/MySqlProvider.php:1014
- static-call SqlFaker\MySqlProvider::foreignKeyCascadeStatement() packages/sql-faker/src/MySqlProvider.php:1030
- static-call SqlFaker\MySqlProvider::partitionSelectStatement() packages/sql-faker/src/MySqlProvider.php:1046