goInception icon indicating copy to clipboard operation
goInception copied to clipboard

非Mysql实例的SQL审核支持

Open Liuzhj opened this issue 4 years ago • 5 comments

描述您想要的功能:

  • 对于非mysql实例的SQL审核,如postgresql,mssql,这些goinception能否支持?我们侧重于使用postgresql

描述您考虑过的解决/替代方案:

  • 对于通用的标准(如SQL99)有通用的规则,再结合不同的数据库自定义不同的审核规则,不知道能不能这样做。 对mysql语法的检测已经相对成熟稳定了,但其他数据库还没有审核的介入。

可参考文档,资料,引用等: https://myslide.cn/slides/5381

Liuzhj avatar Mar 16 '20 05:03 Liuzhj

当前暂不支持,主要是语法解析器的实现比较复杂。 该问题长期开放,以便进行方案讨论。

hanchuanchuan avatar Mar 16 '20 06:03 hanchuanchuan

postgresql有成熟的语法解析器:https://github.com/pganalyze/pg_query_go

swords1999 avatar Aug 30 '22 13:08 swords1999

@hanchuanchuan 请教一下作者:
GoInception 项目未来有对 Oracle SQLPL/SQL 提供审核支持的计划么?

waitspring avatar Oct 09 '22 09:10 waitspring