Access to table only through functions

Поиск
Список
Период
Сортировка
От Alvin D?az
Тема Access to table only through functions
Дата
Msg-id MWHPR17MB1392E52A397D68771E70D20BE7840@MWHPR17MB1392.namprd17.prod.outlook.com
обсуждение исходный текст
Список pgsql-sql
I am working in a software but I am using and approach in which business logic is in the database this way programmers
onlyhave to worry about what functions they have to call to perform some action or wich view query to get certain data
butfor this work perfectly I need to prevent developers to realize direct CRUD operations against the tables so is
therea way that I could just allow a db user have permission to execute functions but not to perform actions on tables 

Example:

1- table_user(id int, name text)
2- function_save_user(id int, name int).......

You can insert using the function but not writing direct insert statement.



Sent from my iPhone

В списке pgsql-sql по дате отправления:

Предыдущее
От: Martin Stöcker
Дата:
Сообщение: Re: psql method (initcap and also keep Roman number capitalized)
Следующее
От: Gerardo Herzig
Дата:
Сообщение: Re: Access to table only through functions