enum LikeOptionKind: string
Public API: explicitly declared with @visibility public.

The properties LIKE can copy from the source table.

Mirrors the CREATE_TABLE_LIKE_* bits. Column names, types and NOT NULL constraints are always copied. Source: https://www.postgresql.org/docs/17/sql-createtable.html.

Reading a LIKE optiondoctest
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE TABLE t (LIKE u INCLUDING ALL EXCLUDING INDEXES)');
    $create->statement->definition->elements[0]->options[1]->kind // => \SqlSemantics\Platform\PostgreSql\Statement\Table\Element\LikeOptionKind::Indexes

Cases§

case Comments = 'COMMENTS'
case Compression = 'COMPRESSION'
case Constraints = 'CONSTRAINTS'
case Defaults = 'DEFAULTS'
case Identity = 'IDENTITY'
case Generated = 'GENERATED'
case Indexes = 'INDEXES'
case Statistics = 'STATISTICS'
case Storage = 'STORAGE'
case All = 'ALL'

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§

Constant reads 12
Type declarations 1