classBoundPredicate
final class BoundPredicate
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Bound predicate operations for PostgreSQL partition.
Methods§
public function rangePredicate(
string $sql,
list<SqlToken> $tokens,
int $index,
TablePartitionKey $key,
): ?stringParameters
$sql | string | |
$tokens | list<SqlToken> | |
$index | int | |
$key | TablePartitionKey |
Returns
?stringTest cases 1
Called from 1
Calls 6
- method-call ClauseTokens::parenthesizedValues() line 28
- new ClauseTokens line 28
- method-call BoundPredicate::rangeBoundary() line 42
- function-call
array_filterline 48 - function-call
is_stringline 50 - function-call
implodeline 53
public function listPredicate(
string $sql,
list<SqlToken> $tokens,
int $index,
TablePartitionKey $key,
): ?stringParameters
$sql | string | |
$tokens | list<SqlToken> | |
$index | int | |
$key | TablePartitionKey |
Returns
?stringTest cases 1
Called from 1
Calls 6
- function-call
countline 61 - method-call ClauseTokens::parenthesizedValues() line 68
- new ClauseTokens line 68
- static-call SqlTokenStream::tokenize() line 76
- static-call PgSqlLexerProfile::create() line 76
- function-call
implodeline 84
public function rangeBoundary(
non-empty-list<string> $expressions,
list<string> $values,
string $operator,
string $unbounded,
): string|false|nullParameters
$expressions | non-empty-list<string> | |
$values | list<string> | |
$operator | string | |
$unbounded | string |
Returns
string|false|nullTest cases 1
Called from 2
- method-call ZtdQuery\Platform\Postgres\Sql\Partition\BoundPredicate::rangePredicate() packages/ztd-query-postgres/src/Sql/Partition/BoundPredicate.php:42
- method-call ZtdQuery\Platform\Postgres\Sql\Partition\BoundPredicate::rangePredicate() packages/ztd-query-postgres/src/Sql/Partition/BoundPredicate.php:43
Test cases 17§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 14
PgSqlSessionFactoryTestcallsTableContextTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsTableFieldsTestcallsPgSqlPartitionReflectorTestcallsPgSqlSchemaParserTestcallsPgSqlSchemaReflectorTestcallsPartitionKeysTestcallsSchemaInitializerTestcallsRowMutationResolverTestcallsTableMutationResolverTestcallsPgSqlMutationResolverTestcallsPgSqlPartitionParserTestcalls
Relations§
Instantiated in 2
- new ZtdQuery\Platform\Postgres\Sql\Partition\PgSqlPartitionParser::parseRelation() packages/ztd-query-postgres/src/Sql/Partition/PgSqlPartitionParser.php:102
- new ZtdQuery\Platform\Postgres\Sql\Partition\PgSqlPartitionParser::parseRelation() packages/ztd-query-postgres/src/Sql/Partition/PgSqlPartitionParser.php:103
Method calls 2
- method-call ZtdQuery\Platform\Postgres\Sql\Partition\PgSqlPartitionParser::parseRelation() packages/ztd-query-postgres/src/Sql/Partition/PgSqlPartitionParser.php:102
- method-call ZtdQuery\Platform\Postgres\Sql\Partition\PgSqlPartitionParser::parseRelation() packages/ztd-query-postgres/src/Sql/Partition/PgSqlPartitionParser.php:103