final class CreateTableAsSelectMutation
    implements ResultSetMutation

Applies CREATE TABLE ... AS SELECT ... operation to the virtual schema. This mutation creates a new table with structure and data from SELECT.

Methods§

public function applyResultSet(ShadowStore $store, ResultSet $result): void

Parameters

Throws

RuntimeException When the result set does not describe a table that could be created
Test cases 11
Called from 1
Calls 7
public function tableName(): string

{@inheritDoc}

Returns

string
Test cases 1

Private surface 5§

Implementation details, listed for orientation only.

private string $tableName
private list<string> $columnNames
private TableDefinitionRegistry $registry
private ColumnDeclaration $fallbackColumnType
private bool $ifNotExists

Test cases 12§

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

Dedicated tests 10
Other tests reaching this symbol 2

Relations§

Constant reads 1