classNullAllowed
final class NullAllowed
implements ColumnConstraint
uses Snapshot
Public API: explicitly declared with
@visibility public.A bare NULL column constraint: the statement that the column may hold NULL.
Rule: SQLITE-COLUMN-NULL-001. The clause is accepted for compatibility and changes nothing, with or without a conflict resolution; it does not undo a NOT NULL constraint of the same column. Source: https://sqlite.org/lang_createtable.html (grammar ccons ::= NULL onconf). Status: Implemented.
$create = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TABLE t (a INT NULL)');
$create->declarations()[0]->columns[0]->nullability // => \SqlSemantics\Platform\Sqlite\Model\Statement\Type\Nullability::NullableProperties§
public ConflictResolution|null $conflict = nullMethods§
public function __construct(public ConflictResolution|null $conflict = null)Parameters
$conflict | ConflictResolution|null | The written ON CONFLICT resolution |
public function deriveConstraint(Derivation $derivation, ConstraintScope $scope): voidDerives nothing: the clause has no operand that depends on a declaration.
Parameters
$derivation | Derivation | |
$scope | ConstraintScope |
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.