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.

Reading the databasedoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('GRANT SELECT ON shop.* TO u')->statement->level->database->value // => 'shop'

Properties§

public Name $database

Methods§

public function __construct(public Name $database)

Parameters

$databaseNameThe database name
public function describe(): string

Describes the level.

Returns

string
Test cases 1
public function render(Output $out): void

Writes db.*.

Parameters

$outOutput
Calls 2

Test cases 3§

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 2

Relations§

Instantiated in 1