classLikeOption
final class LikeOption
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.One INCLUDING or EXCLUDING option of LIKE.
The options apply in the order written; a later one overrides an earlier one for the properties they share. Source: https://www.postgresql.org/docs/17/sql-createtable.html.
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TABLE t (LIKE u EXCLUDING DEFAULTS)');
$create->statement->definition->elements[0]->options[0]->including // => falseProperties§
public bool $includingpublic LikeOptionKind $kindMethods§
public function __construct(public bool $including, public LikeOptionKind $kind)Parameters
$including | bool | Whether the option is INCLUDING; EXCLUDING otherwise |
$kind | LikeOptionKind | The property |
public function render(Output $out): voidWrites INCLUDING or EXCLUDING and the property.
Parameters
$out | Output |
Calls 1
- method-call Output::keyword() line 40
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
LikeOptionTestcalls