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

Check libsql url is in the right shape #1636

Merged
merged 2 commits into from
Jul 10, 2023
Merged

Check libsql url is in the right shape #1636

merged 2 commits into from
Jul 10, 2023

Conversation

rylev
Copy link
Collaborator

@rylev rylev commented Jul 7, 2023

Fixes #1635

I've decided to not transparently turn libsql:// urls into https:// urls because libsql:// urls are a thing for talking to libsql databases over a websocket API. This just improves the error message so users know we only support http or https.

Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
@rylev rylev requested a review from itowlson July 7, 2023 16:22
Copy link
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the explanatory error rather than silent substitution. A couple of fixes to the presentation of the messages, but otherwise good to go - thanks!

crates/trigger/src/runtime_config/sqlite.rs Outdated Show resolved Hide resolved
crates/trigger/src/runtime_config/sqlite.rs Outdated Show resolved Hide resolved
@michelleN michelleN added this to the 1.4.0 milestone Jul 10, 2023
Signed-off-by: itowlson <github@hestia.cc>
@itowlson itowlson merged commit 1540d13 into main Jul 10, 2023
@rylev rylev deleted the check-libsql-url branch April 24, 2024 10:26
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.

Handle libsql:// scheme in SQLite runtime config
3 participants