classAbsentGrantTable
final class AbsentGrantTable
implements TableResolution
uses Snapshot
Public API: explicitly declared with
@visibility public.The resolution of a table name a complete context does not declare, at a grant level where the table need not exist.
GRANT may name a table that does not exist when the granted privileges include CREATE and no column privilege is granted; REVOKE does not check the table at all. It is not a diagnostic. Source: https://dev.mysql.com/doc/refman/8.4/en/grant.html#grant-table-privileges ("the privileges to be granted must include the CREATE privilege").
$grant = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('GRANT CREATE ON t TO u', []);
$grant->facts->relation($grant->statement->level)->table instanceof \SqlSemantics\Platform\MySql\Statement\Account\Privilege\Level\AbsentGrantTable // => trueProperties§
public QualifiedName $nameMethods§
public function __construct(public QualifiedName $name)Parameters
$name | QualifiedName | The name as the statement wrote it |
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.