V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jwh199588
V2EX  ›  程序员

大模型进行 sql 校验

  •  
  •   jwh199588 · Sep 6, 2025 · 2409 views
    This topic created in 238 days ago, the information mentioned may be changed or developed.

    现在我想对 git 提交的 sql 进行校验,比如是否包含存储过程,索引是否符合规范,请问是用提示词的方式,还是有更好的方法来校验,能不能提供一些思路。 感谢

    2 replies    2025-09-06 11:38:09 +08:00
    fors
        1
    fors  
       Sep 6, 2025
    tree sitter 结构化,逐个判断各个节点
    root71370
        2
    root71370  
       Sep 6, 2025 via Android
    用专业的审计引擎吧,看下 goInception
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2494 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 12:16 · PVG 20:16 · LAX 05:16 · JFK 08:16
    ♥ Do have faith in what you're doing.