cds-dbs icon indicating copy to clipboard operation
cds-dbs copied to clipboard

feat: `error` standard function

Open schwma opened this issue 1 month ago • 0 comments

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"]
}

schwma avatar Nov 18 '25 09:11 schwma