检查sql是否安全。 安全:无副作用,仅执行查询。
Allow-Func-Ident
Allow-Func-Name
Allow-Col-Name
Allow-DataBase-Name
Allow-Table-Name
调用CheckSQL,传入ctx和query。 返回值:是否安全、失败原因、错误。
CheckSQL
ctx
query