Skip to content

Add --wait-db-ms for --exec#153

Open
knu wants to merge 2 commits intoflowershow:mainfrom
knu:feat/exec-wait-db-ms
Open

Add --wait-db-ms for --exec#153
knu wants to merge 2 commits intoflowershow:mainfrom
knu:feat/exec-wait-db-ms

Conversation

@knu
Copy link
Contributor

@knu knu commented Feb 2, 2026

When running mddb --watch in the background, the database may be in the middle of an update when you execute a query. This can lead to unexpected or incomplete results. The new --wait-db-ms option allows you to wait for the database to settle (i.e., wait until no writes have occurred for the specified duration) before executing the query, ensuring consistent results.

knu added 2 commits February 2, 2026 23:34
Add --wait-db-ms for --exec to wait until markdown.db has been idle
for the specified duration before running.
@changeset-bot
Copy link

changeset-bot bot commented Feb 2, 2026

⚠️ No Changeset found

Latest commit: 3fbedaf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@knu
Copy link
Contributor Author

knu commented Feb 2, 2026

Test is failing. Node 16 may be too old; can we require Node 20 or better?

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