Documentation
¶
Overview ¶
Package sqlstatic flags inline dynamic string construction at known pgx SQL arguments. It is not a data-flow or SQL parser and does not attest safety.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{
Name: "sqlstatic",
Doc: "禁止在 pgx 查询参数内直接拼接动态 SQL;值用参数占位符,动态标识符用 pgx.Identifier.Sanitize",
Run: run,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.