You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix stale README numbers and drop the archived SQL Ops Reviewer
Version 0.7.0 to 0.9.0, tests 277 to 303, and one consistent rule count (48,
or 53 with the contracts pack) instead of the 44/43/31 the page gave in
different places. Replace the two-layer pipeline built on the now-archived
sql-ops-reviewer with sql-sop's own pre-commit and CI story, fix the
pre-commit hook id (sql-sop, not sql-guard) and the action reference, and
point the AI-integration row at sql-sop-mcp.
Fast, rule-based SQL linter. 43 rules (38 SQL + 5 Python), with an optional Contracts pack (5 schema-aware rules) when you supply `--contract path.yml`. SQL Server-focused rules for T-SQL shops. Inline disable, project config, git-changed-only mode, and SARIF output for GitHub Code Scanning. 500+ monthly downloads on PyPI.
63
+
Fast, rule-based SQL linter. 48 rules (43 SQL + 5 Python), with an optional Contracts pack (5 schema-aware rules) when you supply `--contract path.yml`. SQL Server-focused rules for T-SQL shops. Inline disable, project config, git-changed-only mode, and SARIF output for GitHub Code Scanning. 2,000+ installs on PyPI.
65
64
66
65
Catches dangerous SQL before it reaches production -- DELETE without WHERE, UPDATE without WHERE, SQL injection patterns, SELECT *, contract drift, and 40+ more. Runs as a **CLI tool**, **pre-commit hook**, and **GitHub Action**.
67
66
68
67
Built to catch dangerous patterns like DELETE without WHERE before they ever reach a production database.
69
68
70
-
For deeper AI-powered analysis, pair with [SQL Ops Reviewer](https://github.com/Pawansingh3889/sql-ops-reviewer).
69
+
Want the same rules inside your AI assistant? [sql-sop-mcp](https://github.com/Pawansingh3889/sql-sop-mcp) exposes them over MCP, so the model is told a query is unsafe before it suggests it.
71
70
72
71
---
73
72
@@ -96,63 +95,28 @@ queries/create_orders.sql
96
95
Found 2 issues (1 error, 1 warning) in 1 file (0.001s)
97
96
```
98
97
99
-
## The two-layer SQL quality pipeline
98
+
## Where sql-sop runs
100
99
101
-
Most teams have **no SQL review process**. Some use an AI linter. The problem: AI is slow, expensive, and overkill for catching `DELETE FROM users;`.
100
+
Most teams have **no SQL review process** at all. sql-sop gives you one in two places, both driven by the same rules:
102
101
103
-
sql-sop and SQL Ops Reviewer solve this together:
102
+
-**Pre-commit** -- runs in under 0.2s on the files you changed, so a bad `DELETE FROM users` is blocked before it is ever committed.
103
+
-**CI** -- runs on every pull request and uploads SARIF, so findings appear inline in the GitHub "Files changed" view through Code Scanning.
| Speed | <0.1s for 200 files | 45s for 200 files | ~2s |
446
397
| Config needed | Zero | Extensive | Minimal |
447
398
| Language | Python | Python | JavaScript |
448
399
| Pre-commit | Yes | Yes | No |
449
400
| GitHub Action | Yes | Community | No |
450
-
| AI integration | Pairs with SQL Ops Reviewer | No | No |
401
+
| AI integration | MCP server (sql-sop-mcp) | No | No |
451
402
452
403
sql-sop is not a replacement for sqlfluff. It's a fast first pass that catches 80% of real issues with zero setup. If you need dialect-specific formatting and 800 rules, use sqlfluff. If you want instant feedback on dangerous SQL, use sql-guard.
0 commit comments