enumObjectKind
enum ObjectKind
Public API: explicitly declared with
@visibility public.The kind of object the ON clause of GRANT and REVOKE names: a table (the default), a stored function or a stored procedure.
Mirrors Acl_type. ON TABLE and ON without a kind are the same request. Source: https://dev.mysql.com/doc/refman/8.4/en/grant.html#grant-object-quoting.
[\SqlSemantics\Platform\MySql\Statement\Account\Privilege\Level\ObjectKind::Procedure->keyword(), \SqlSemantics\Platform\MySql\Statement\Account\Privilege\Level\ObjectKind::Table->keyword()] // => ['PROCEDURE', null]Cases§
case Tablecase Functioncase ProcedureMethods§
public function keyword(): ?stringAnswers the keyword the writer emits: none for a table.
Returns
?stringTest cases 1
Called from 3
- method-call SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::level() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:114
- method-call SqlSemantics\Platform\MySql\Statement\Account\Privilege\GrantPrivileges::render() packages/sql-semantics-mysql/src/Statement/Account/Privilege/GrantPrivileges.php:105
- method-call SqlSemantics\Platform\MySql\Statement\Account\Privilege\RevokePrivileges::render() packages/sql-semantics-mysql/src/Statement/Account/Privilege/RevokePrivileges.php:94
Calls 3
- class-const ObjectKind::Table() line 29
- class-const ObjectKind::Function() line 30
- class-const ObjectKind::Procedure() line 31
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Method calls 3
- method-call SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::level() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:114
- method-call SqlSemantics\Platform\MySql\Statement\Account\Privilege\GrantPrivileges::render() packages/sql-semantics-mysql/src/Statement/Account/Privilege/GrantPrivileges.php:105
- method-call SqlSemantics\Platform\MySql\Statement\Account\Privilege\RevokePrivileges::render() packages/sql-semantics-mysql/src/Statement/Account/Privilege/RevokePrivileges.php:94
Constant reads 17
- class-const SqlSemantics\Platform\MySql\Lowering\Account\LegacyGrantRule packages/sql-semantics-mysql/src/Lowering/Account/LegacyGrantRule.php:42
- class-const SqlSemantics\Platform\MySql\Lowering\Account\LegacyGrantRule packages/sql-semantics-mysql/src/Lowering/Account/LegacyGrantRule.php:43
- class-const SqlSemantics\Platform\MySql\Lowering\Account\LegacyGrantRule packages/sql-semantics-mysql/src/Lowering/Account/LegacyGrantRule.php:44
- class-const SqlSemantics\Platform\MySql\Lowering\Account\LegacyGrantRule packages/sql-semantics-mysql/src/Lowering/Account/LegacyGrantRule.php:45
- class-const SqlSemantics\Platform\MySql\Lowering\Account\LegacyGrantRule packages/sql-semantics-mysql/src/Lowering/Account/LegacyGrantRule.php:46
- class-const SqlSemantics\Platform\MySql\Lowering\Account\LegacyGrantRule packages/sql-semantics-mysql/src/Lowering/Account/LegacyGrantRule.php:47
- class-const SqlSemantics\Platform\MySql\Lowering\Account\LegacyGrantRule packages/sql-semantics-mysql/src/Lowering/Account/LegacyGrantRule.php:48
- class-const SqlSemantics\Platform\MySql\Lowering\Account\LegacyGrantRule packages/sql-semantics-mysql/src/Lowering/Account/LegacyGrantRule.php:49
- class-const SqlSemantics\Platform\MySql\Lowering\Account\LegacyGrantRule packages/sql-semantics-mysql/src/Lowering/Account/LegacyGrantRule.php:50
- class-const SqlSemantics\Platform\MySql\Lowering\Account\PrivilegeRule::kind() packages/sql-semantics-mysql/src/Lowering/Account/PrivilegeRule.php:293
- class-const SqlSemantics\Platform\MySql\Lowering\Account\PrivilegeRule::kind() packages/sql-semantics-mysql/src/Lowering/Account/PrivilegeRule.php:294
- class-const SqlSemantics\Platform\MySql\Lowering\Account\PrivilegeRule::kind() packages/sql-semantics-mysql/src/Lowering/Account/PrivilegeRule.php:295
- class-const SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::grant() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:70
- class-const SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::revoke() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:99
- class-const SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::level() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:113
- class-const SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::fit() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:133
- class-const SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::fit() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:148
Type declarations 7
- type SqlSemantics\Platform\MySql\Lowering\Account\PrivilegeRule packages/sql-semantics-mysql/src/Lowering/Account/PrivilegeRule.php:288
- type SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:67
- type SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:96
- type SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:110
- type SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:130
- type SqlSemantics\Platform\MySql\Statement\Account\Privilege\GrantPrivileges packages/sql-semantics-mysql/src/Statement/Account/Privilege/GrantPrivileges.php:71
- type SqlSemantics\Platform\MySql\Statement\Account\Privilege\RevokePrivileges packages/sql-semantics-mysql/src/Statement/Account/Privilege/RevokePrivileges.php:60