classDatabaseLevel
final class DatabaseLevel
implements PrivilegeLevel
uses Snapshot
Public API: explicitly declared with
@visibility public.ON db.*: the database level of a named database.
The database name may contain the _ and % wildcards of a pattern, as the grant tables store it; the name is kept as written. Source: https://dev.mysql.com/doc/refman/8.4/en/grant.html#grant-database-privileges.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('GRANT SELECT ON shop.* TO u')->statement->level->database->value // => 'shop'Properties§
public Name $databaseMethods§
public function describe(): stringDescribes the level.
Returns
stringTest cases 1
public function render(Output $out): voidWrites db.*.
Parameters
$out | Output |
Calls 2
- method-call Output::name() line 47
- class-const NameUse::Qualifier() line 47
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.