packages/sql-semantics-sqlite/src/Model/Statement/Selection.php
1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Platform\Sqlite\Model\Statement;
6
7/**
8 * A statement or query that reads rows from an input relation structure.
9 *
10 * @visibility public
11 * @example Reading the input relation of a selection
12 * $query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT a FROM t JOIN u');
13 * $query->statement instanceof \SqlSemantics\Platform\Sqlite\Model\Statement\Selection // => true
14 */
15interface Selection extends Node
16{
17 /**
18 * Answers the input relation structure, or null when the selection has no input.
19 */
20 public function input(): ?Relation;
21}
22