final class GenerationContext
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Binds the PostgreSql grammar and lexical declarations to the common SQL generation engine.

Properties§

public Grammar $grammar

Common grammar prepared for generation.

public LexicalGrammar $lexicalGrammar

Lexical realization for this release.

public TokenRewriter $rewriter

Declared structural transformations for this dialect.

public Closure(string|null): string|null $startSymbol

Methods§

public function __construct(Grammar $grammar, Generator $faker, string|null $version = null)

Prepares dialect inputs for the common generator.

Parameters

$grammarGrammarCommon AST for this release
$fakerGeneratorSource of random lexical choices
$versionstring|nullExact release or null for the declared default

Throws

RuntimeException When the requested release is unavailable
Test cases 5
Calls 4

Test cases 9§

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

Dedicated tests 5
Other tests reaching this symbol 4

Relations§

Instantiated in 1