Swappable database providers, local-first db commands, the cloud project database, and the migration discipline.
PostgreSQL, MySQL, and SQLite are first-class, swappable bonds — the same handlers run on any of them. Change providers with one command:
npx mlcl swap @molecule/api-database-mysqlnpx mlcl db migrate # apply migrations (runs the scaffolded migrate.ts)
npx mlcl db reset --force # drop/recreate + migrate (DESTRUCTIVE)
npx mlcl db console # psql on the project DB
npx mlcl db url # print DATABASE_URLLocal defaults work out of the box (SQLite, or Postgres if you have it running); credentials live in api/.env.
npx mlcl db info --project <id> # connection + settings
npx mlcl db tables --project <id> # (also: query)
npx mlcl db backup --project <id> # (also: backup-list / restore)api/migrations/, applied by db migrate (and automatically on deploy).db reset --force drops data. It is for local development only.