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 quotedIdentifier(int $minLength, int $maxLength): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 28
- function-call
compactline 28
public static function stringLiteral(int $minLength, int $maxLength): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 36
- function-call
compactline 36
public static function integerLiteral(int $min, int $max): GenerationPlan<true>Parameters
$min | int | |
$max | int |
Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 44
- function-call
compactline 44
public static function decimalLiteral(int $precision, int $scale): GenerationPlan<true>Parameters
$precision | int | |
$scale | int |
Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 52
- function-call
compactline 52
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
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 64
- function-call
compactline 66
public static function hexLiteral(int $minLength, int $maxLength): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 75
- function-call
compactline 75
public static function binaryLiteral(int $minLength, int $maxLength): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 83
- function-call
compactline 83
public static function dollarQuotedString(int $minLength, int $maxLength): GenerationPlan<true>Parameters
$minLength | int | |
$maxLength | int |
Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 91
- function-call
compactline 91
public static function parameterMarker(int $min, int $max): GenerationPlan<true>Parameters
$min | int | |
$max | int |
Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::lexical() line 99
- function-call
compactline 99
public static function insertFunctionUpsertStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 3
- static-call GenerationPlan::constrained() line 107
- static-call ProductionPattern::exactly() line 108
- static-call ProductionPattern::containing() line 111
public static function temporaryTableStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Called from 1
Calls 2
- static-call GenerationPlan::constrained() line 141
- static-call ProductionPattern::containing() line 142
public static function viewStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 1
- static-call GenerationPlan::fromRule() line 151
public static function generatedColumnStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 159
- static-call ProductionPattern::containing() line 160
- static-call ProductionPattern::nonEmpty() line 161
- static-call ProductionPattern::exactly() line 162
public static function foreignKeyCascadeStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 177
- static-call ProductionPattern::containing() line 178
- static-call ProductionPattern::nonEmpty() line 179
- static-call ProductionPattern::exactly() line 180
public static function partitionOfStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::constrained() line 195
- static-call ProductionPattern::containing() line 196
public static function tableSampleStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 2
Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 206
- static-call ProductionPattern::exactly() line 207
- static-call ProductionPattern::containing() line 210
- static-call ProductionPattern::nonEmpty() line 212
public static function doStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 2
- static-call GenerationPlan::constrained() line 225
- static-call ProductionPattern::exactly() line 226
public static function mergeStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 3
- static-call GenerationPlan::constrained() line 236
- static-call ProductionPattern::exactly() line 238
- static-call ProductionPattern::containing() line 244
public static function copyStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 1
- static-call GenerationPlan::fromRule() line 257
public static function partialIndexUpsertStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 265
- static-call ProductionPattern::exactly() line 266
- static-call ProductionPattern::containing() line 269
- static-call ProductionPattern::nonEmpty() line 272
public static function domainDmlStatements(): non-empty-list<GenerationPlan<true>>Returns
non-empty-list<GenerationPlan<true>>Test cases 1
Called from 1
Calls 3
- function-call
array_mapline 281 - static-call GenerationPlan::constrained() line 282
- static-call ProductionPattern::exactly() line 283
public static function fullTextSearchStatement(): GenerationPlan<true>Returns
GenerationPlan<true>Test cases 1
Called from 1
Calls 4
- static-call GenerationPlan::constrained() line 294
- static-call ProductionPattern::exactly() line 295
- static-call ProductionPattern::containing() line 298
- static-call ProductionPattern::nonEmpty() line 300
public static function foreignKeyConstraint(): GenerationPlan<true>Returns
GenerationPlan<true>Called from 1
Calls 3
- static-call GenerationPlan::constrained() line 341
- static-call ProductionPattern::containing() line 342
- static-call ProductionPattern::nonEmpty() line 344
public static function statementOfType(
Generator $faker,
?StatementRule $type,
int $maxDepth,
): GenerationPlan<true>Selects a statement type when omitted and bounds its generation plan.
Parameters
$faker | Generator | |
$type | ?StatementRule | |
$maxDepth | int |
Returns
GenerationPlan<true>Test cases 2
Called from 1
Calls 3
- method-call
Generator::randomElement()line 357 - static-call StatementRule::cases() line 357
- static-call GenerationPlan::statement() line 360
Test cases 27§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 26
GenerationPlansTest::testBinaryLiteralPlansThatLexemecallsGenerationPlansTest::testCopyStatementStartsFromTheCopyGrammarcallsGenerationPlansTest::testDecimalLiteralPlansThatLexemecallsGenerationPlansTest::testDollarQuotedStringPlansThatLexemecallsGenerationPlansTest::testDomainDmlStatementsCoverAllMutationGrammarscallsGenerationPlansTest::testDoStatementRequiresASingleStringBlockcallsGenerationPlansTest::testFloatLiteralPlansThatLexemecallsGenerationPlansTest::testForeignKeyCascadeStatementRequiresBothCascadeActionscallsGenerationPlansTest::testForeignKeyConstraintRestrictsTheTableConstraintGrammarcallsGenerationPlansTest::testFullTextSearchStatementRequiresTheMatchOperatorcallsGenerationPlansTest::testGeneratedColumnStatementRequiresTheGeneratedConstraintcallsGenerationPlansTest::testHexLiteralPlansThatLexemecallsGenerationPlansTest::testInsertFunctionUpsertStatementRestrictsTheConflictFunctionGrammarcallsGenerationPlansTest::testIntegerLiteralPlansThatLexemecallsGenerationPlansTest::testMergeStatementRequiresAllMutationBranchescallsGenerationPlansTest::testParameterMarkerPlansThatLexemecallsGenerationPlansTest::testPartialIndexUpsertStatementRequiresAConflictPredicatecallsGenerationPlansTest::testPartitionOfStatementRequiresARangeBoundcallsGenerationPlansTest::testQuotedIdentifierPlansThatLexemecallsGenerationPlansTest::testStatementOfTypePreservesAnExplicitTypeWithoutConsumingRandomnesscallsGenerationPlansTest::testStatementOfTypeUsesTheSeededFakerChoiceWhenNoTypeIsSpecifiedcallsGenerationPlansTest::testStringLiteralPlansThatLexemecallsGenerationPlansTest::testTableSampleStatementKeepsTheConstraintBeyondTheFirstOccurrencecallsGenerationPlansTest::testTableSampleStatementRequiresASamplingClausecallsGenerationPlansTest::testTemporaryTableStatementRequiresTheTemporaryProductioncallsGenerationPlansTest::testViewStatementStartsFromTheViewGrammarcalls
Other tests reaching this symbol 1
PostgreSqlProviderTestcalls
Relations§
Static calls 24
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::sql() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:111
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::copyStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:329
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::foreignKeyConstraint() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:578
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::quotedIdentifier() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:614
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::stringLiteral() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:632
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::integerLiteral() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:648
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::decimalLiteral() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:666
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::floatLiteral() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:685
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::hexLiteral() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:704
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::binaryLiteral() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:722
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::dollarQuotedString() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:740
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::parameterMarker() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:756
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::insertFunctionUpsertStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:774
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::partialIndexUpsertStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:793
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::domainDmlStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:814
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::fullTextSearchStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:833
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::temporaryTableStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:851
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::viewStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:869
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::generatedColumnStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:886
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::foreignKeyCascadeStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:903
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::partitionOfStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:920
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::tableSampleStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:937
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::doStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:954
- static-call SqlFaker\PostgreSql\PostgreSqlProvider::mergeStatement() packages/sql-faker/src/PostgreSql/PostgreSqlProvider.php:971