final class CreateAsRule
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Lowers the statements that define a relation by a query: CREATE TABLE AS, CREATE VIEW, CREATE MATERIALIZED VIEW, and REFRESH.

Rule: PG-CREATE-AS-LOWER-001. Scope: CreateAsStmt, create_as_target, opt_with_data, CreateMatViewStmt, create_mv_target, OptNoLog, RefreshMatViewStmt, ViewStmt, opt_check_option, and the CREATE TABLE ... AS EXECUTE forms of ExecuteStmt. Termination: no recursion of its own. Source: https://www.postgresql.org/docs/17/sql-createtableas.html, https://www.postgresql.org/docs/17/sql-createview.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe hub
public function tableAsExecute(Form $form, Statement $execute): CreateTableAsExecute

Private surface 2§

Implementation details, listed for orientation only.

private const VIEWS = ['ViewStmt: CREATE OptTemp VIEW qualified_name opt_column_list opt_reloptions A…
private Lowering $lowering

Test cases 7§

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

Dedicated tests 7

Relations§

Instantiated in 5
Method calls 5