Find SQL anti-patterns in statements or a query log: SELECT *, = NULL, NOT IN su...
https://code.halowerk.com/v1/sql-antipatternsOverview
Find SQL anti-patterns in statements or a query log: SELECT *, = NULL, NOT IN subqueries, functions on indexed columns, implicit casts, cartesian joins, large OFFSETs, UPDATE without WHERE and N+1 query runs. Tokenizes every statement with an own dialect-aware SQL lexer and parses it with node-sql-parser where possible.
Protocol
x402 (POST)
Price
$0.0030
Payment Asset
USD Coin
Payment Network
Base
Category
uncategorized
Provider
code
Source
bazaar
Indexed
2026-11-20 14:09:44
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
x402 Payment Validation
Payment Requirements
—
Asset Verified
—
Facilitator
—
Input Schema
{
"body": {
"sql": "SELECT * FROM users WHERE email = NULL;\nDELETE FROM sessions;"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"limitations": [
"Pattern-based: findings are hints for review, not proof of a performance problem.",
"Type-aware checks need schema_ddl; without it implicit casts are not detected."
],
"result": {
"findings": [
{
"fix": "List the needed columns explicitly.",
"line": 1,
"message": "SELECT * returns every column, including ones added later.",
"rule": "select-star",
"severity": "warning",
"source": "https://github.com/jarulraj/sqlcheck/blob/cb672ff4c9a1120e259ec358674ab843876521a1/docs/query/3001.md",
"statements": [
1
]
},
{
"fix": "Use IS NULL / IS NOT NULL (or IS [NOT] DISTINCT FROM).",
"line": 1,
"message": "Comparison \"= NULL\" is never true; it yields NULL.",
"rule": "null-comparison",
"severity": "error",
"source": "https://www.postgresql.org/docs/18/functions-comparison.html",
"statements": [
1
]
},
{
"fix": "Add a WHERE clause (or use TRUNCATE deliberately).",
"line": 2,
"message": "DELETE without WHERE changes every row of the table.",
"rule": "update-delete-without-where",
"severity": "error",
"source": "https://dev.mysql.com/doc/refman/8.4/en/mysql-tips.html#safe-updates",
"statements": [
2
]
}
],
"summary": {
"ast_parse_failures": 0,
"by_rule": {
"null-comparison": 1,
"select-star": 1,
"update-delete-without-where": 1
},
"findings": 3,
"schema_used": false,
"statements": 2
}
},
"service": "sql-antipatterns",
"status": "success"
},
"type": "json"
}