Herramientas de usuario

Herramientas del sitio


wiki2:postgrest

¡Esta es una revisión vieja del documento!


PostgreSQL for PostgREST

Crear el schema

create schema api;

Crear usuarios

Anónimos

create role web_anon nologin;
grant web_anon to postgres;
grant usage on schema api to web_anon;
grant select on api.todos to web_anon;

Usuario de confianza

create role todo_user nologin;
grant todo_user to postgres;
grant usage on schema api to todo_user;
grant all on api.todos to todo_user;
grant usage, select on sequence api.todos_id_seq to todo_user;

Acciones básicas

wiki2/postgrest.1535644841.txt.gz · Última modificación: 2020/05/09 09:25 (editor externo)