sqldef is a schema migration tool that automatically generates SQL migration statements by comparing database schemas. Instead of writing migrations manually, developers define the desired schema, and sqldef computes the difference. It's compatible with MySQL, PostgreSQL, SQLite, and others, making migrations safer and more maintainable.

Features

  • Auto-generates schema migration SQL
  • Supports MySQL, PostgreSQL, SQLite, and more
  • Declarative schema definitions in SQL files
  • Detects drift between schema and database
  • CLI tool with diff and apply commands
  • Prevents destructive migrations without confirmation

Project Samples

Project Activity

See All Activity >

Categories

SQL Clients

License

MIT License

Follow sqldef

sqldef Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of sqldef!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go SQL Clients

Registered

2025-06-05