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

Tweak the creation of database connections in diesel_CLI #3737

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

weiznich
Copy link
Member

This commit changes how we establish database connections in diesel cli. Instead of relying ot the auto generated InferConnection::establish method we manually construct the right enum variant. This allows us to easily return the underlying error message instead of emitting a generic Invalid connection url for multiconnection error.

This commit changes how we establish database connections in diesel cli.
Instead of relying ot the auto generated `InferConnection::establish`
method we manually construct the right enum variant. This allows us to
easily return the underlying error message instead of emitting a generic
` Invalid connection url for multiconnection` error.
@weiznich weiznich requested a review from a team August 10, 2023 13:14
Copy link
Contributor

@chusteven chusteven left a comment

Choose a reason for hiding this comment

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

Good idea!

@weiznich weiznich added this pull request to the merge queue Aug 11, 2023
Merged via the queue into diesel-rs:master with commit c37bd05 Aug 11, 2023
31 checks passed
weiznich added a commit to weiznich/diesel that referenced this pull request Aug 18, 2023
Tweak the creation of database connections in diesel_CLI
@weiznich weiznich mentioned this pull request Aug 18, 2023
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