enumInitialMode
enum InitialMode: string
Public API: explicitly declared with
@visibility public.When a deferrable foreign key is checked at first: the word written after INITIALLY.
Source: https://sqlite.org/foreignkeys.html#fk_deferred.
$create = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TABLE c (p REFERENCES parent DEFERRABLE INITIALLY DEFERRED)');
$create->statement->columns[0]->constraints[1]->initially // => \SqlSemantics\Platform\Sqlite\Statement\Schema\Reference\InitialMode::DeferredCases§
case Deferred = 'DEFERRED'case Immediate = 'IMMEDIATE'Test cases 4§
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 3
Relations§
Constant reads 3
- class-const SqlSemantics\Platform\Sqlite\Lowering\Definition\ForeignKeyRule::initially() packages/sql-semantics-sqlite/src/Lowering/Definition/ForeignKeyRule.php:155
- class-const SqlSemantics\Platform\Sqlite\Lowering\Definition\ForeignKeyRule::initially() packages/sql-semantics-sqlite/src/Lowering/Definition/ForeignKeyRule.php:156
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Reference\Deferrability::deferred() packages/sql-semantics-sqlite/src/Statement/Schema/Reference/Deferrability.php:48
Type declarations 2
- type SqlSemantics\Platform\Sqlite\Lowering\Definition\ForeignKeyRule packages/sql-semantics-sqlite/src/Lowering/Definition/ForeignKeyRule.php:149
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Reference\Deferrability packages/sql-semantics-sqlite/src/Statement/Schema/Reference/Deferrability.php:39