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

Derives receiver state and arguments together, then compiles at the existing sink.

Methods§

public function __construct(
    private ProgramIndex $index,
    private Dialects $dialects = new \SqlCatalog\Core\Sql\Dialects(),
)

Configures the source metadata and SQL grammar used by this model.

Parameters

$indexProgramIndex
$dialectsDialects
Calls 1
public function inputs(CallLike $call): list<Expr>

Parameters

$callCallLike

Returns

list<Expr> The receiver and arguments must be derived together.
Test cases 1
Calls 6
public function statements(CallLike $call, list<Domain> $values): list<QueryOutput>

Parameters

$callCallLike
$valueslist<Domain>Values derived by the core, without losing branch correspondence.

Returns

list<QueryOutput> The SQL compiled by this extension for each receiver alternative.
Calls 14
public function outputs(
    QueryState $state,
    string $method,
    list<Domain> $arguments,
): list<array{Domain, Domain}>

Parameters

$stateQueryState
$methodstring
$argumentslist<Domain>

Returns

list<array{Domain, Domain}> Every statement one execution issues, each with its own bindings.
Test cases 1
Called from 1
Calls 12
public function dispatch(
    QueryState $state,
    string $method,
    list<Domain> $arguments,
    Grammar $grammar,
): array{Domain, Domain}

Private surface 2§

Implementation details, listed for orientation only.

private ProgramIndex $index
private Dialects $dialects = new \SqlCatalog\Core\Sql\Dialects()

Test cases 14§

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

Dedicated tests 9
Other tests reaching this symbol 5

Relations§

Instantiated in 1