classRangeDatums
final class RangeDatums
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.
Checks the datums of one side of a range partition bound.
Rule: PG-RANGE-DATUMS-001. A side holds at least one datum, in order; a datum is a value, MINVALUE or MAXVALUE. Source: https://www.postgresql.org/docs/17/sql-createtable.html. Status: Implemented.
Methods§
public function checked(array<array-key, object|Scalar|null> $datums): non-empty-list<Scalar|RangeLimit>Checks a list of range datums.
Parameters
$datums | array<array-key, object|Scalar|null> |
Returns
non-empty-list<Scalar|RangeLimit>Test cases 1
Called from 2
- method-call SqlSemantics\Platform\PostgreSql\Statement\Table\Partition\RangeBound::__construct() packages/sql-semantics-postgres/src/Statement/Table/Partition/RangeBound.php:46
- method-call SqlSemantics\Platform\PostgreSql\Statement\Table\Partition\RangeBound::__construct() packages/sql-semantics-postgres/src/Statement/Table/Partition/RangeBound.php:47
Calls 3
- static-call Check::listOf() line 32
- class-const Node::class() line 32
- static-call Check::input() line 33
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Instantiated in 2
- new SqlSemantics\Platform\PostgreSql\Statement\Table\Partition\RangeBound::__construct() packages/sql-semantics-postgres/src/Statement/Table/Partition/RangeBound.php:46
- new SqlSemantics\Platform\PostgreSql\Statement\Table\Partition\RangeBound::__construct() packages/sql-semantics-postgres/src/Statement/Table/Partition/RangeBound.php:47
Method calls 2
- method-call SqlSemantics\Platform\PostgreSql\Statement\Table\Partition\RangeBound::__construct() packages/sql-semantics-postgres/src/Statement/Table/Partition/RangeBound.php:46
- method-call SqlSemantics\Platform\PostgreSql\Statement\Table\Partition\RangeBound::__construct() packages/sql-semantics-postgres/src/Statement/Table/Partition/RangeBound.php:47