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

The check option of an updatable view: rows written through the view must satisfy its condition.

Mirrors ViewCheckOption. WITH CHECK OPTION without a word is CASCADED; the spelling is kept because the grammar keeps it. Source: https://www.postgresql.org/docs/17/sql-createview.html.

Reading the check optiondoctest
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE VIEW v AS SELECT 1 AS a WITH LOCAL CHECK OPTION');
    $create->statement->checkOption->cascaded() // => false

Cases§

case Unqualified = ''
case Cascaded = 'CASCADED'
case Local = 'LOCAL'

Methods§

public function cascaded(): bool

Tells whether the conditions of the views below are checked too.

Returns

bool
Test cases 1
Calls 1
public function keywords(): list<string>

Answers the keywords of the clause.

Returns

list<string>
Calls 1

Test cases 4§

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

Dedicated tests 2
Other tests reaching this symbol 2

Relations§

Constant reads 3
Type declarations 1