classUtilityProblem
final class UtilityProblem
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A utility command that PostgreSQL rejects because it breaks a rule of the command.
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('EXPLAIN (fast) SELECT 1') // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: unrecognized EXPLAIN option "fast"Properties§
public list<string> $subjectspublic UtilityProblemKind $kindMethods§
public function __construct(
public UtilityProblemKind $kind,
array<array-key, mixed> $subjects = [],
)Parameters
$kind | UtilityProblemKind | The broken rule |
$subjects | array<array-key, mixed> | The texts the message names, one for each `%s` of the rule |
public function message(): stringDescribes the broken rule in the words of PostgreSQL.
Returns
stringTest cases 2
Calls 1
- function-call
sprintfline 47
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Relations§
Instantiated in 19
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\ExplainFacts::rows() packages/sql-semantics-postgres/src/Rules/Utility/ExplainFacts.php:69
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\ExplainFacts::checks() packages/sql-semantics-postgres/src/Rules/Utility/ExplainFacts.php:92
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\ExplainFacts::checks() packages/sql-semantics-postgres/src/Rules/Utility/ExplainFacts.php:100
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\ExplainFacts::checks() packages/sql-semantics-postgres/src/Rules/Utility/ExplainFacts.php:104
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\MaintenanceFacts::targets() packages/sql-semantics-postgres/src/Rules/Utility/MaintenanceFacts.php:51
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\OptionRules::derive() packages/sql-semantics-postgres/src/Rules/Utility/OptionRules.php:157
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\OptionRules::derive() packages/sql-semantics-postgres/src/Rules/Utility/OptionRules.php:159
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\OptionRules::derive() packages/sql-semantics-postgres/src/Rules/Utility/OptionRules.php:161
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::check() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:57
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::check() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:75
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::workers() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:86
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::workers() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:92
- new SqlSemantics\Platform\PostgreSql\Rules\Utility\VacuumChecks::workers() packages/sql-semantics-postgres/src/Rules/Utility/VacuumChecks.php:97
- new SqlSemantics\Platform\PostgreSql\Statement\Utility\DoBlock::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/DoBlock.php:103
- new SqlSemantics\Platform\PostgreSql\Statement\Utility\DoBlock::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/DoBlock.php:105
- new SqlSemantics\Platform\PostgreSql\Statement\Utility\Maintenance\Reindex::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/Maintenance/Reindex.php:83
- new SqlSemantics\Platform\PostgreSql\Statement\Utility\Notify::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/Notify.php:55
- new SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SetSpecialSetting::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/Session/SetSpecialSetting.php:70
- new SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SetTimeZone::deriveStatement() packages/sql-semantics-postgres/src/Statement/Utility/Session/SetTimeZone.php:67