Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sqlite url config not working with relative paths #1167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

meufel
Copy link

@meufel meufel commented Sep 27, 2022

Closes #965

Pull Request check-list

  • Does npm run test pass with this change (including linting)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Have you added new tests to prevent regressions?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

Description of change

Related Issue: #965

Due to the way URLs are parsed for sqlite, it isn't possible to provide an URL config containing a relative path. This is now fixed by this pull request: As long as the relative path starts with ./ or ../ it is resolved correctly.

Breaking Changes

Since the host part of valid URLs cannot contain only dots this change won't be breaking in the real world.

Disclaimer

I added tests for this change but didn't really respect the magic of the test helpers since I didn't find a way to create a config containing a relative path URL with it. I hope that's okay. Otherwise, if somebody can help me there, I will update the test code.

I also didn't add any documentation for this change since I didn't find a proper location for it.

@meufel meufel force-pushed the fix/sqlite-rel-paths/965 branch 2 times, most recently from ca5cfd7 to 4b89ad7 Compare September 29, 2022 09:52
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.

SQLite relative path doesn't work with URI
1 participant