Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is an PL/SQL API?

API PL sql
0
Posted

What is an PL/SQL API?

0

The way that I would define a PL/SQL API is (preferably) one package that provides the interface to one or more underlying tables. Let’s take the EMP table for instance. If I were to define an API for that it would be something like this (pseudocode): • Create Employee • Update Employee • Update Employee Department • Update Employee SalaryAll other code would call one of these procedures/functions to perform the specific action. No one else would write a direct update on EMP, no matter how small or seemingly trivial. If something outside of the 4 defined actions was needed, then it would be added to the preceding package. Why use a PL/SQL API? In all likeliness, the person who is adding the underlying table or tables is going to be the subject matter expert (SME). They should be the ones to define the actions to be performed against that set of tables. Security is a factor here as well. Would you give INSERT/UPDATE/DELETE to non application users or would you require them to use the PL

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.