????
Current Path : C:/opt/pgsql/pgAdmin 4/web/pgadmin/browser/server_groups/servers/templates/macros/ |
Current File : C:/opt/pgsql/pgAdmin 4/web/pgadmin/browser/server_groups/servers/templates/macros/privilege.macros |
{% macro APPLY(conn, type, role, param, privs, with_grant_privs) -%} {% if privs %} GRANT {{ privs|join(', ') }} ON {{ type }} {{ conn|qtIdent(param) }} TO {{ role }}; {% endif %} {% if with_grant_privs %} GRANT {{ with_grant_privs|join(', ') }} ON {{ type }} {{ conn|qtIdent(param) }} TO {{ role }} WITH GRANT OPTION; {% endif %} {%- endmacro %} {% macro RESETALL(conn, type, role, param) -%} REVOKE ALL ON {{ type }} {{ conn|qtIdent(param) }} FROM {{ role }}; {%- endmacro %}