Skip to content

Conversation

simolus3
Copy link
Contributor

As a parameter, dbLocation controls the directory we use to store the database file. When used, it should always point at an existing directory because we're not creating it beforehand. This is not mentioned in the JSDoc, so this adds a sentence about that.

For the node SDK, this also improves the error message when misusing dbLocation by including the solution (creating the directory).

@simolus3 simolus3 requested a review from stevensJourney March 24, 2025 11:31
Copy link

changeset-bot bot commented Mar 24, 2025

🦋 Changeset detected

Latest commit: 191e0ce

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@powersync/node Patch

Not sure what this means? Click here to learn what changesets are.

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

@simolus3 simolus3 merged commit db90702 into main Mar 25, 2025
6 checks passed
@simolus3 simolus3 deleted the node-create-directory branch March 25, 2025 07:25
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.

2 participants