Replies: 1 comment
-
I converted this to a discussion as that's strictly speaking not a bug in diesel. Diesel just passes a "opaque" database URL to the underlying database implementation. In this case that's SQLite. This means it's problematic for us to implement either of your "proposed" solutions:
That would require reimplementing sqlite's url parsing logic to differentiate between path and non-path URL's. See their documentation to understand what's all possible to be passed there.
As this error message is generated by sqlite and not by diesel there is no maintainable way for diesel to change the error message. Such a change needs to be implemented in sqlite itself. Feel free to raise the issue there. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Setup
Versions
Feature Flags
Problem Description
diesel setup
when using a local SQLite database will fail when parent directories to the file path are not present. The error message is vague and unexpected.What are you trying to accomplish?
Creating a SQLite database.
What is the expected output?
Either:
What is the actual output?
Are you seeing any additional errors?
Steps to reproduce
diesel setup
... errormkdir data
diesel setup
... successChecklist
closed if this is not the case)
Beta Was this translation helpful? Give feedback.
All reactions