# Comparisons

Each page compares SQLTy with one tool: a quick comparison table, where each is stronger, which to choose, what SQLTy is missing, and the versions tested. Every page is checked again for each SQLTy release.

## Typed SQL

| Tool | Language | How it types SQL |
| --- | --- | --- |
| [sqlc](<https://sqlty.kuncar.dev/vs-sqlc/index.md>) | Go, Python and others | Generates code from schema and `.sql` files |
| [SQLx](<https://sqlty.kuncar.dev/vs-sqlx/index.md>) | Rust | Query macros checked against a database at compile time |
| [asyncpg\_typed](<https://sqlty.kuncar.dev/vs-asyncpg-typed/index.md>) | Python | Declared types checked against the server on every call |
| [aiosql and PugSQL](<https://sqlty.kuncar.dev/vs-aiosql/index.md>) | Python | Named queries from `.sql` files, untyped |
| [ioj/sqlty](<https://sqlty.kuncar.dev/vs-ioj-sqlty/index.md>) | Go | Generates pgx code; unrelated to SQLTy despite the name |
| [pggen](<https://sqlty.kuncar.dev/vs-pggen/index.md>) | Go | Generates pgx code from `.sql` files and a live database |
| [scany and sqlx](<https://sqlty.kuncar.dev/vs-scany-sqlx/index.md>) | Go | Scan rows into structs at runtime |
| [Other languages](<https://sqlty.kuncar.dev/vs-other-languages/index.md>) | Java, Kotlin, Scala, Haskell, Rust, Gleam | jOOQ, SQLDelight, doobie, postgresql-typed, Cornucopia, Squirrel |

## ORMs and query builders

| Tool | How SQLTy fits |
| --- | --- |
| [SQLAlchemy](<https://sqlty.kuncar.dev/vs-sqlalchemy/index.md>) | Checks the raw SQL you run through `text()` |
| [Django ORM](<https://sqlty.kuncar.dev/vs-django/index.md>) | Checks the raw SQL you run through `connection.cursor()` |
| [bob](<https://sqlty.kuncar.dev/vs-bob/index.md>) | Go: checks raw SQL constants instead of a generated ORM |
| [go-jet](<https://sqlty.kuncar.dev/vs-go-jet/index.md>) | Go: checks raw SQL constants instead of a query builder |

## SQL linters and libraries

| Tool | What it checks |
| --- | --- |
| [sqruff](<https://sqlty.kuncar.dev/vs-sqruff/index.md>) | Style and formatting of `.sql` files; SQLTy runs its rules on Python strings |
| [SQLFluff](<https://sqlty.kuncar.dev/vs-sqlfluff/index.md>) | Style of `.sql` files and dbt models |
| [sqlglot](<https://sqlty.kuncar.dev/vs-sqlglot/index.md>) | A parser and transpiler that annotates SQL types |
| [Inline SQL](<https://sqlty.kuncar.dev/vs-inline-sql/index.md>) | SQL highlighting and basic checks in VS Code |
| [sqlvet](<https://sqlty.kuncar.dev/vs-sqlvet/index.md>) | Names and syntax of raw SQL in Go calls |

## Migration linters

| Tool | What it checks |
| --- | --- |
| [Squawk](<https://sqlty.kuncar.dev/vs-squawk/index.md>) | PostgreSQL migration files, one at a time |
| [MigrationPilot](<https://sqlty.kuncar.dev/vs-migrationpilot/index.md>) | PostgreSQL migration files, with explanations of each lock |
| [pgdeadbolt](<https://sqlty.kuncar.dev/vs-pgdeadbolt/index.md>) | PostgreSQL migration files, with suggested rewrites |
