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.

Reading whether an option includes or excludesdoctest
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TABLE t (LIKE u EXCLUDING DEFAULTS)');
    $create->statement->definition->elements[0]->options[0]->including // => false

Properties§

public bool $including

Methods§

public function __construct(public bool $including, public LikeOptionKind $kind)

Parameters

$includingboolWhether the option is INCLUDING; EXCLUDING otherwise
$kindLikeOptionKindThe property
public function render(Output $out): void

Writes INCLUDING or EXCLUDING and the property.

Parameters

$outOutput
Calls 1

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1
Constant reads 1