Parsing PL/SQL code to check against syntax and semantic errors

后端 未结 4 865
鱼传尺愫
鱼传尺愫 2021-01-14 04:40

Please consider following scenario:

  • I have a Text-Area and a Button on UI.
  • User will enter a PL/SQL block in
4条回答
  •  梦谈多话
    2021-01-14 04:51

    I think you need a PL/SQL interpreter. It can check the given almost the syntax of the code. If you want to get full check, it is not easy, you have to check the DB objects, properties. permissions etc.

    You can create yourself a PL/SQL interpreter to ensure you requirements, OR you can try this parser: https://github.com/porcelli/plsql-parser

    By the way, I will be in trouble with "execute immediate" -calls.

提交回复
热议问题