Skip to content

add option for using unix_domain_socket - #158

Open
kyoto7250 wants to merge 3 commits into
TaKO8Ki:mainfrom
kyoto7250:issue_151
Open

add option for using unix_domain_socket#158
kyoto7250 wants to merge 3 commits into
TaKO8Ki:mainfrom
kyoto7250:issue_151

Conversation

@kyoto7250

@kyoto7250 kyoto7250 commented Jun 21, 2022

Copy link
Copy Markdown
Contributor

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

Comment thread src/config.rs
match self.database.as_ref() {
Some(database) => Ok(format!(
"mysql://{user}:{password}@{host}:{port}/{database}",
"mysql://{user}:{password}@{host}:{port}/{database}{unix_domain_socket}",

@kyoto7250 kyoto7250 Jun 21, 2022

Copy link
Copy Markdown
Contributor Author

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