enumWriteKind
enum WriteKind: string
Public API: explicitly declared with
@visibility public.The ways a statement can write a column: by inserting a row or by updating one.
Source: https://sqlite.org/gencol.html.
$semantics = new \SqlSemantics\Platform\Sqlite\Semantics();
$table = $semantics->analyze('CREATE TABLE t (a, b AS (a + 1))');
$semantics->analyze('INSERT INTO t (b) VALUES (1)', [$table])->facts->diagnostics[0]->write // => \SqlSemantics\Platform\Sqlite\Statement\Mutation\Problem\WriteKind::InsertCases§
case Insert = 'cannot INSERT into generated column'case Update = 'cannot UPDATE generated column'Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 4
Relations§
Constant reads 2
- class-const SqlSemantics\Platform\Sqlite\Rules\Mutation\GeneratedWrites::inserted() packages/sql-semantics-sqlite/src/Rules/Mutation/GeneratedWrites.php:83
- class-const SqlSemantics\Platform\Sqlite\Rules\Mutation\GeneratedWrites::assigned() packages/sql-semantics-sqlite/src/Rules/Mutation/GeneratedWrites.php:99