classCatalogMisuse
final class CatalogMisuse
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A catalog command that PostgreSQL rejects because it breaks a rule of the command.
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE DATABASE d OWNER a OWNER b') // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: conflicting or redundant optionsProperties§
public list<string> $subjectspublic CatalogMisuseRule $ruleMethods§
public function __construct(public CatalogMisuseRule $rule, list<string> $subjects = [])Parameters
$rule | CatalogMisuseRule | The broken rule |
$subjects | list<string> | The texts the message names, one for each `%s` of the rule |
Calls 3
- static-call Check::input() line 33
- function-call
countline 33 - function-call
substr_countline 33
public function message(): stringDescribes the broken rule in the words of PostgreSQL.
Returns
stringCalls 1
- function-call
sprintfline 42
Test cases 2§
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 1
Relations§
Instantiated in 22
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\DomainChecks::constraints() packages/sql-semantics-postgres/src/Rules/Catalog/DomainChecks.php:43
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\DomainChecks::constraints() packages/sql-semantics-postgres/src/Rules/Catalog/DomainChecks.php:51
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\DomainChecks::constraints() packages/sql-semantics-postgres/src/Rules/Catalog/DomainChecks.php:54
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\DomainChecks::constraints() packages/sql-semantics-postgres/src/Rules/Catalog/DomainChecks.php:58
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\DomainChecks::constraints() packages/sql-semantics-postgres/src/Rules/Catalog/DomainChecks.php:61
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\DomainChecks::attributes() packages/sql-semantics-postgres/src/Rules/Catalog/DomainChecks.php:100
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\DomainInput::undeclared() packages/sql-semantics-postgres/src/Rules/Catalog/DomainInput.php:59
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\OptionChecks::redundant() packages/sql-semantics-postgres/src/Rules/Catalog/OptionChecks.php:49
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\OptionChecks::database() packages/sql-semantics-postgres/src/Rules/Catalog/OptionChecks.php:68
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\OptionChecks::database() packages/sql-semantics-postgres/src/Rules/Catalog/OptionChecks.php:73
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\PublicationList::derive() packages/sql-semantics-postgres/src/Rules/Catalog/PublicationList.php:72
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\PublishedTables::columns() packages/sql-semantics-postgres/src/Rules/Catalog/PublishedTables.php:78
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\PublishedTables::columns() packages/sql-semantics-postgres/src/Rules/Catalog/PublishedTables.php:80
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\PublishedTables::columns() packages/sql-semantics-postgres/src/Rules/Catalog/PublishedTables.php:84
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\TypeChecks::labels() packages/sql-semantics-postgres/src/Rules/Catalog/TypeChecks.php:37
- new SqlSemantics\Platform\PostgreSql\Rules\Catalog\TypeChecks::attributes() packages/sql-semantics-postgres/src/Rules/Catalog/TypeChecks.php:53
- new SqlSemantics\Platform\PostgreSql\Statement\Catalog\Extension\CreateExtension::deriveStatement() packages/sql-semantics-postgres/src/Statement/Catalog/Extension/CreateExtension.php:61
- new SqlSemantics\Platform\PostgreSql\Statement\Catalog\Schema\CreateSchema::deriveStatement() packages/sql-semantics-postgres/src/Statement/Catalog/Schema/CreateSchema.php:74
- new SqlSemantics\Platform\PostgreSql\Statement\Catalog\Schema\CreateSchema::deriveStatement() packages/sql-semantics-postgres/src/Statement/Catalog/Schema/CreateSchema.php:77
- new SqlSemantics\Platform\PostgreSql\Statement\Catalog\Schema\CreateSchema::deriveStatement() packages/sql-semantics-postgres/src/Statement/Catalog/Schema/CreateSchema.php:88
- new SqlSemantics\Platform\PostgreSql\Statement\Catalog\Tablespace\AlterTablespaceOptions::deriveStatement() packages/sql-semantics-postgres/src/Statement/Catalog/Tablespace/AlterTablespaceOptions.php:58
- new SqlSemantics\Platform\PostgreSql\Statement\Catalog\Type\DropEnumLabel::deriveStatement() packages/sql-semantics-postgres/src/Statement/Catalog/Type/DropEnumLabel.php:46