Repository navigation
Move dev database startup into Wasp.Cli.DevDb - #5284
Conversation
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes The refactor moves development database helpers into Wasp.Cli.DevDb without changing their implementations or the command's execution order.
- Database helpers: Extracts PostgreSQL startup and custom database checks, preserving Docker checks, existing-container detection, port selection, foreground execution, and error handling.
- Command integration: Updates
Wasp.Cli.Command.Start.Dbto import the helpers while retaining argument parsing, requirements, and database-type dispatch. - Build registration: Exposes the new module in
cli-libinwaspc.cabal.
Existing database-start E2E coverage was inspected, including discovery and signal cleanup. Tests were not run locally; relevant Haskell build/test CI jobs were still running at review time.
gpt-6.1-sol | 𝕏
Wasp.Cli.DevDb
@wasp/spec
@wasp/cli
@wasp/cli-darwin-arm64-unknown
@wasp/cli-linux-arm64-glibc
@wasp/cli-linux-x64-glibc
@wasp/cli-linux-x64-musl
commit: |
|
This pull request is now stale. Next steps if the PR is still relevant, and you are able to devote time to it:
If no action is taken, this PR will be automatically closed in 7 days. |
14685ef to
7671f0b
Compare
Deploying wasp-docs-on-main with
|
| Latest commit: |
7671f0b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ab7596d6.wasp-docs-on-main.pages.dev |
| Branch Preview URL: | https://issue-4479-dev-db-module.wasp-docs-on-main.pages.dev |

Description
Does the move in a separate PR as prep work for auto-start database PRs (#4479)
Agreement
wasp start#4914 (comment)Type of change
Checklist
I tested my change in a Wasp app to verify that it works as intended.
🧪 Tests and apps:
examples/kitchen-sink/e2e-tests.waspc/data/Cli/templates, as needed.examples/, as needed.examples/tutorials) I updated the tutorial in the docs (and vice versa).📜 Documentation:
web/docs/.🆕 Changelog: (if change is more than just code/docs improvement)
waspc/ChangeLog.mdwith a user-friendly description of the change.web/docs/migration-guides/.versioninwaspc/waspc.cabalto reflect the changes I introduced.