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

$startRulenon-empty-string|nullRule the walk begins at, or null for the grammar entry point

Returns

GenerationPlan<true> Plan whose row lists always carry a row
Test cases 1
Called from 1
Calls 3
public static function quotedIdentifier(int $minLength, int $maxLength): GenerationPlan<true>

Parameters

$minLengthint
$maxLengthint

Returns

Test cases 1
Called from 1
Calls 2
public static function stringLiteral(int $minLength, int $maxLength): GenerationPlan<true>

Parameters

$minLengthint
$maxLengthint

Returns

Test cases 1
Called from 1
Calls 2
public static function nationalStringLiteral(
    int $minLength,
    int $maxLength,
): GenerationPlan<true>

Parameters

$minLengthint
$maxLengthint

Returns

Test cases 1
Called from 1
Calls 2
public static function dollarQuotedString(int $minLength, int $maxLength): GenerationPlan<true>

Parameters

$minLengthint
$maxLengthint

Returns

Test cases 1
Called from 1
Calls 2
public static function integerLiteral(int $min, int $max): GenerationPlan<true>

Parameters

$minint
$maxint

Returns

Test cases 1
Called from 1
Calls 2
public static function longIntegerLiteral(int $min, int $max): GenerationPlan<true>

Parameters

$minint
$maxint

Returns

Test cases 1
Called from 1
Calls 2
public static function unsignedBigIntLiteral(
    int $minLength,
    int $maxLength,
): GenerationPlan<true>

Parameters

$minLengthint
$maxLengthint

Returns

Test cases 1
Called from 1
Calls 2
public static function decimalLiteral(int $precision, int $scale): GenerationPlan<true>

Parameters

$precisionint
$scaleint

Returns

Test cases 1
Called from 1
Calls 2
public static function floatLiteral(
    int $precision,
    int $scale,
    int $minExponent,
    int $maxExponent,
): GenerationPlan<true>

Parameters

$precisionint
$scaleint
$minExponentint
$maxExponentint

Returns

Test cases 1
Called from 1
Calls 2
public static function hexLiteral(int $minLength, int $maxLength): GenerationPlan<true>

Parameters

$minLengthint
$maxLengthint

Returns

Test cases 1
Called from 1
Calls 2
public static function quotedHexLiteral(int $minBytes, int $maxBytes): GenerationPlan<true>

Parameters

$minBytesint
$maxBytesint

Returns

Test cases 1
Called from 1
Calls 2
public static function binaryLiteral(int $minLength, int $maxLength): GenerationPlan<true>

Parameters

$minLengthint
$maxLengthint

Returns

Test cases 1
Called from 1
Calls 2
public static function hostname(
    int $minParts,
    int $maxParts,
    int $maxPartLength,
): GenerationPlan<true>

Parameters

$minPartsint
$maxPartsint
$maxPartLengthint

Returns

Test cases 1
Called from 1
Calls 2

Test cases 29§

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

Dedicated tests 28
Other tests reaching this symbol 1

Relations§

Static calls 28