enumLikeOptionKind
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.
$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::IndexesCases§
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
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ColumnRule packages/sql-semantics-postgres/src/Lowering/Table/ColumnRule.php:65
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ColumnRule packages/sql-semantics-postgres/src/Lowering/Table/ColumnRule.php:65
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ColumnRule packages/sql-semantics-postgres/src/Lowering/Table/ColumnRule.php:66
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ColumnRule packages/sql-semantics-postgres/src/Lowering/Table/ColumnRule.php:66
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ColumnRule packages/sql-semantics-postgres/src/Lowering/Table/ColumnRule.php:67
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ColumnRule packages/sql-semantics-postgres/src/Lowering/Table/ColumnRule.php:67
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ColumnRule packages/sql-semantics-postgres/src/Lowering/Table/ColumnRule.php:68
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ColumnRule packages/sql-semantics-postgres/src/Lowering/Table/ColumnRule.php:68
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ColumnRule packages/sql-semantics-postgres/src/Lowering/Table/ColumnRule.php:69
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\ColumnRule packages/sql-semantics-postgres/src/Lowering/Table/ColumnRule.php:69
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Declarations::includesGenerated() packages/sql-semantics-postgres/src/Rules/Table/Definition/Declarations.php:135
- class-const SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Declarations::includesGenerated() packages/sql-semantics-postgres/src/Rules/Table/Definition/Declarations.php:135