enumCheckOption
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.
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE VIEW v AS SELECT 1 AS a WITH LOCAL CHECK OPTION');
$create->statement->checkOption->cascaded() // => falseCases§
case Unqualified = ''case Cascaded = 'CASCADED'case Local = 'LOCAL'Methods§
public function cascaded(): boolTells whether the conditions of the views below are checked too.
Returns
boolTest cases 1
Calls 1
- class-const CheckOption::Local() line 30
public function keywords(): list<string>Answers the keywords of the clause.
Returns
list<string>Calls 1
- class-const CheckOption::Unqualified() line 40
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
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\CreateAsRule::view() packages/sql-semantics-postgres/src/Lowering/Table/CreateAsRule.php:208
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\CreateAsRule::view() packages/sql-semantics-postgres/src/Lowering/Table/CreateAsRule.php:209
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Table\CreateAsRule::view() packages/sql-semantics-postgres/src/Lowering/Table/CreateAsRule.php:210