Skip to content

SuperH-0630/safe-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

安全的SQL

介绍

检查sql是否安全。
安全:无副作用,仅执行查询。

使用方式

context.Context参数

  • Allow-Func-Ident:字符串列表
  • Allow-Func-Name:字符串列表
  • Allow-Col-Name:字符串列表
  • Allow-DataBase-Name:字符串列表
  • Allow-Table-Name:字符串列表

调用

调用CheckSQL,传入ctxquery。 返回值:是否安全、失败原因、错误。

About

golang检查安全的sql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages