driftcurve vs sqldef
driftcurve
github.comsqldef
github.comSide by side
| Figure | driftcurve | sqldef |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | Yes | — |
| Web | Yes | — |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | — | Yes |
| API | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Database Schema Comparison Tools | 8.5 (#2) | 7.6 (#12) |
| License | The project is open source under the Apache License 2.0. | The repository says source files are distributed under the MIT License, with the parser under Apache License 2.0. |
| Purpose | driftcurve is a household retirement planning engine that models household finances and simulates retirement outcomes. | sqldef is a CLI tool for diffing SQL schemas and managing relational database migrations with regular SQL DDLs. |
Plans
In their own words
driftcurve
driftcurve is an open-source household retirement planning engine for projecting finances and comparing retirement outcomes. It can model multiple household members, account types, debts, mortgages, pensions, Social Security and property sales. Its default Monte Carlo simulations resample annual market data from 1966–2024 across equities, Treasuries, residential real estate, inflation and Bitcoin. Users can adjust historical returns toward their own long-run targets or enter static annual assumptions. Risk-based spending guardrails solve for monthly spending and suggest adjustments based on portfolio thresholds and probability of success. A Compare page puts two scenarios on one chart. In default local mode, household data and saved scenarios stay in browser localStorage, while forecasts run through a Python backend; there is no account or server-side database persistence. Optional multi-user mode adds email/password accounts, server-side sessions, and stored profiles and scenarios. The project offers forecast and guardrails API endpoints, plus authentication, profile and scenario endpoints in multi-user mode. It is free under Apache License 2.0. The maker describes it as an educational modeling tool, not licensed financial, investment, tax or legal advice.
sqldef
sqldef is a free command-line tool for managing relational database migrations with SQL DDLs. Users maintain a SQL file describing the desired schema; sqldef compares it with the current database schema to generate and apply changes. It lists support for MySQL, MariaDB, TiDB, PostgreSQL, SQL Server, and SQLite3. The workflow can export the current schema and use a dry run to preview migrations before execution. It can also compare two SQL files without a database connection, for schema validation, CI/CD, and migration script generation. Repeated runs are safe: when the database matches the desired schema, another run shows no changes. Rename annotations are documented for tables, columns, indexes, and ENUM values. Each database tool is distributed as a single binary without dependencies. Linux, macOS, Windows, and self-hosted availability are listed. Linux binaries and Docker images are available, but Debian packages are not; a Homebrew tap is listed for four database tools. Source files use the MIT License, while the parser uses Apache License 2.0.