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

add option for using unix_domain_socket #158

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kyoto7250
Copy link
Contributor

@kyoto7250 kyoto7250 commented Jun 21, 2022

in local hosts, UDS connections are faster than TCP, so we should support UDS.

close #151

TODO

  • mysql
  • postgres
  • add tests

Thanks for your time to review.

changelog: support connecting unix domain socket


match self.database.as_ref() {
Some(database) => Ok(format!(
"mysql://{user}:{password}@{host}:{port}/{database}",
"mysql://{user}:{password}@{host}:{port}/{database}{unix_domain_socket}",
Copy link
Contributor Author

@kyoto7250 kyoto7250 Jun 21, 2022

Choose a reason for hiding this comment

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

@kyoto7250 kyoto7250 marked this pull request as ready for review June 21, 2022 03:11
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.

Connecting to MySQL database with unix domain sockets
1 participant