final class QueryOutput
Public API: explicitly declared with @visibility public.

Modelled SQL and bindings, retaining holes and uncertainty instead of flattening to strings.

Preserving an unresolved SQL fragmentdoctest
$sql = \SqlCatalog\Core\Evaluation\Domain::literal('SELECT * FROM ')->concat(\SqlCatalog\Core\Evaluation\Domain::unknown('table'));
    $output = new \SqlCatalog\Core\Extension\Model\QueryOutput($sql, \SqlCatalog\Core\Evaluation\Domain::literal(null));
    $output->sql->isExact() // => false

Properties§

public Domain $sql
public Domain $bindings
public bool $truncated = false
public bool $combined = false

Methods§

public function __construct(
    public Domain $sql,
    public Domain $bindings,
    public bool $truncated = false,
    public bool $combined = false,
)

The core adds caller, branch and budget evidence from the input derivation.

Parameters

$sqlDomain
$bindingsDomain
$truncatedbool
$combinedbool

Test cases 7§

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

Dedicated tests 1
Other tests reaching this symbol 6

Relations§

Instantiated in 1