classShowCharacterSet
final class ShowCharacterSet
implements Statement, Relation
uses Snapshot
Public API: explicitly declared with
@visibility public.SHOW CHARACTER SET (SHOW CHARSET): the character sets of the server.
Rule: MYSQL-SHOW-CHARACTERSET-001. CHARACTER SET, CHAR SET and CHARSET are the same keyword (LeafNoise); the writer emits CHARSET. The rows and the WHERE condition are derived by MYSQL-SHOW-FACTS-001 from the layout of MYSQL-SHOW-ROWS-001. Terminates: a fixed layout. Source: https://dev.mysql.com/doc/refman/8.4/en/show-character-set.html. Status: Implemented.
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("SHOW CHARACTER SET WHERE Maxlen > 1");
[$show->field(0)->name?->value, $show->toString()] // => ['Charset', "SHOW CHARSET WHERE Maxlen > 1"]Properties§
Methods§
public function deriveStatement(Derivation $derivation): voidDerives the rows and the filter.
Parameters
$derivation | Derivation |
Calls 2
- method-call ShowFacts::derive() line 50
- new ShowFacts line 50
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFactDerives the result columns.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 3
- method-call ShowFacts::fact() line 58
- new ShowFacts line 58
- class-const Report::Charsets() line 58
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\LegacyObjectRule::server() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyObjectRule.php:192
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ServerRule::statement() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ServerRule.php:78