mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-10 23:45:58 -06:00
11 lines
477 B
Plaintext
11 lines
477 B
Plaintext
{% 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 %} |