Skip to content

feat: add --wait-interval flag and DBMATE_WAIT_INTERVAL env var - #803

Open
somaz94 wants to merge 1 commit into
amacneil:mainfrom
somaz94:feat/wait-interval-flag
Open

feat: add --wait-interval flag and DBMATE_WAIT_INTERVAL env var#803
somaz94 wants to merge 1 commit into
amacneil:mainfrom
somaz94:feat/wait-interval-flag

Conversation

@somaz94

@somaz94 somaz94 commented Jun 22, 2026

Copy link
Copy Markdown

Adds a --wait-interval CLI flag and DBMATE_WAIT_INTERVAL env var to configure the delay between connection attempts for --wait. The WaitInterval field is already exposed to Go API users; this plumbs it through the CLI, mirroring the existing --wait-timeout / DBMATE_WAIT_TIMEOUT.

Validation (local, macOS):

  • go build ./... and go vet ./... pass
  • golangci-lint run: 0 issues
  • go test for the main package passes, including a new TestConfigureDB_WaitInterval (default / env / flag-overrides-env)
  • dbmate --help shows: --wait-interval value ... (default: 1s) [$DBMATE_WAIT_INTERVAL]

related: #516

@somaz94

somaz94 commented Jul 20, 2026

Copy link
Copy Markdown
Author

Gentle nudge, @amacneil — it's been a few weeks. This adds a --wait-interval flag / DBMATE_WAIT_INTERVAL env for the wait command; it's opt-in and defaults preserve the current behavior. Happy to adjust anything. Thanks for dbmate!

@somaz94

somaz94 commented Aug 18, 2026

Copy link
Copy Markdown
Author

Open since June with no review. Is a configurable wait interval (--wait-interval / DBMATE_WAIT_INTERVAL) something you want in dbmate? Happy to close it if not, otherwise it is green and mergeable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant