# jarulraj/sqlcheck

Automatically identify anti-patterns in SQL queries

Repository: https://github.com/jarulraj/sqlcheck
Canonical: https://ross.abutalabs.com/products/sqlcheck
Language: C++
License: Apache-2.0
License Family: permissive
Topics: sql, database, postgresql, mysql, sqlite3, command-line, microsoft-sql-server, oracle
Last push: 2024-02-21T13:30:05+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3440, "days_push": 924, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2521, forks 122 (observed 2026-08-28T04:06:58.347579+00:00)

## What it is
SQLCheck is a command-line tool that automatically detects common SQL anti-patterns in queries and schema definitions. It supports all major SQL dialects including PostgreSQL, MySQL, SQLite, SQL Server, and Oracle, and helps improve query performance by flagging problematic patterns.

## Use cases
- detect anti-patterns in sql queries
- lint sql files for performance issues
- review database schema design for anti-patterns
- find select * and other bad query habits
- check sql queries across multiple dialects
- improve slow sql queries by finding anti-patterns

## When to choose
- you want automated static analysis of SQL queries or DDL for known anti-patterns
- you work across multiple SQL dialects and want one tool
- you want a lightweight CLI to integrate into code review or CI

## When to avoid
- you need a full SQL query optimizer or runtime performance profiler
- you need syntax validation or execution of SQL
- you need an IDE-integrated linter with autofix capabilities

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: linter, developer-tools, database
- domain: databases, developer-tools, performance
- platform: cli, windows, cross-platform
- tags: sql-anti-patterns, static-analysis, sql-linter, query-optimization, database-design, linux, macos

## Member repositories
- jarulraj/sqlcheck (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:58.347579+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:25:55.988527+00:00, confidence not recorded.
  - readme: https://github.com/jarulraj/sqlcheck (fetched 2026-08-28T04:06:58.347579+00:00, sha df09a41ccef0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
