# sqldef

Idempotent database schema management.

Source: [Console review](<https://console.dev/tools/sqldef>)

Website: [https://github.com/sqldef/sqldef](<https://github.com/sqldef/sqldef>)

Profile updated: 2026-10-16

Category: [Database management](<https://console.dev/tools/categories/database-management>)

## Supported tech stack

Research checked: 2026-10-11

### Runs on

- Linux (Operating system)
- macOS (Operating system)

### Integrates with

- Docker (Integration)
- MySQL (Integration)
- PostgreSQL (Integration)
- SQL Server (Integration)
- SQLite (Integration)

Source: [Research source](<https://github.com/sqldef/sqldef>)

Documented compatibility; coverage may be incomplete. Written in describes implementation, not user-project language support.

Schema manager supports MySQL, PostgreSQL, SQLite and SQL Server, with Docker distribution and Linux/macOS installation.

## Console’s review — 2026-02-12

Reviewed: 2026-02-12

Author: [David Mytton](<https://console.dev/about#david-mytton>)

Citation: [This review](<https://console.dev/tools/sqldef#review_21c275de35b68d64fdd97a62bd49903a9db9b2ec088d245f2352184c28186c85>)

### What we like

Define the schema in a single file, sqldef manages the migrations for MySQL, Postgres, SQLite, and SQL Server. Doesn’t need to be connected to the database - can run offline in CI. All operations are idempotent. Single Go binary.

### Tradeoffs

Focused on the popular SQL databases.

This review reflects Console’s assessment at publication on 2026-02-12. Features and limitations may have changed since the review date.

## Is sqldef a fit?

Based on [Console’s review published on 2026-02-12](<https://console.dev/tools/sqldef#review_21c275de35b68d64fdd97a62bd49903a9db9b2ec088d245f2352184c28186c85>).

Summary updated: 2026-10-16

### Why consider it

sqldef can manage database schema migrations for multiple databases offline in CI

### Keep in mind

sqldef is focused on popular SQL databases

[Selection criteria](<https://console.dev/selection-criteria>) · [About Console](<https://console.dev/about>) · [Browse tools](<https://console.dev/tools>)
