cds-dbs
cds-dbs copied to clipboard
feat: `error` standard function
This PR adds a standard function error that generates SQL statement that produces a runtime compatible error object, useful for i18n of error messages.
Example:
SELECT error('MESSAGE',(arg),(target1,target2)) FROM ...
Column error contains the following JSON:
{
"message": "MESSAGE",
"args": ["valueOfArg"],
"targets": ["target1", "target2"]
}