Skip to content

Commit

Permalink
Add docs for SHOW ROLE GRANTS
Browse files Browse the repository at this point in the history
Extracted-From: prestodb/presto#10904
  • Loading branch information
cawallin authored and sopel39 committed Jan 29, 2019
1 parent c8d8733 commit ce26168
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion presto-docs/src/main/sphinx/connector/mysql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ The following SQL statements are not yet supported:
* :doc:`/sql/grant`
* :doc:`/sql/revoke`
* :doc:`/sql/show-grants`
* :doc:`/sql/show-roles`
* :doc:`/sql/show-roles`
* :doc:`/sql/show-role-grants`
1 change: 1 addition & 0 deletions presto-docs/src/main/sphinx/connector/postgresql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ The following SQL statements are not yet supported:
* :doc:`/sql/revoke`
* :doc:`/sql/show-grants`
* :doc:`/sql/show-roles`
* :doc:`/sql/show-role-grants`
1 change: 1 addition & 0 deletions presto-docs/src/main/sphinx/sql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ This chapter describes the SQL syntax used in Presto.
sql/show-create-view
sql/show-functions
sql/show-grants
sql/show-role-grants
sql/show-roles
sql/show-schemas
sql/show-session
Expand Down
16 changes: 16 additions & 0 deletions presto-docs/src/main/sphinx/sql/show-role-grants.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
================
SHOW ROLE GRANTS
================

Synopsis
--------

.. code-block:: none
SHOW ROLE GRANTS [ FROM catalog ]
Description
-----------

List non-recursively the ``ROLE``s that have been granted to the session user
in ``catalog``, or the current catalog if ``catalog`` is not specified.

0 comments on commit ce26168

Please sign in to comment.