Skip to content

[RFC]: SQL Metadata Backed Enums #91

@simon-mundy

Description

@simon-mundy

Proposed Version

0.4.0 - 1.0.0

Basic Information

During refactoring, it has been noted that some class constants should/could be turned into Enums to help in more tightly constraining and documenting the classes.

An example is PhpDb\Sql\Metadata\Object\ConstraintObject.php with the following:

/**
 * One of "PRIMARY KEY", "UNIQUE", "FOREIGN KEY", or "CHECK"
 */
    protected ?string $type = null;

This issue proposes to create a MetaData\Object<xxx>Enum for the various lists that are required.

Background

No response

Considerations

No response

Proposal(s)

No response

Appendix/Additional Info

No response

Metadata

Metadata

Labels

Lang Feature RefactorRefactoring to new language featuresdocumentationImprovements or additions to documentationenhancementNew feature or requestqaImprovements in quality assurance of the project

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions