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 max connections and password capabilities. #151

Merged
merged 5 commits into from
Apr 23, 2021

Conversation

VinaiRachakonda
Copy link
Contributor

@VinaiRachakonda VinaiRachakonda commented Apr 18, 2021

This pr introduces ability to connect with mysql with a password as well as introduces the max_connections flag.

@max-hoffman
Copy link
Collaborator

Adding a test to avoid a decrease in coverage % would be nice, but otherwise looks good.

@codecov-commenter
Copy link

codecov-commenter commented Apr 23, 2021

Codecov Report

Merging #151 (c163bfa) into master (2c0e198) will increase coverage by 0.62%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #151      +/-   ##
==========================================
+ Coverage   41.95%   42.57%   +0.62%     
==========================================
  Files          23       23              
  Lines         963      970       +7     
==========================================
+ Hits          404      413       +9     
+ Misses        559      557       -2     
Impacted Files Coverage Δ
doltpy/sql/sql.py 78.57% <71.42%> (+1.51%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c0e198...c163bfa. Read the comment docs.

f"mysql+mysqlconnector://{user}@{host}:{port}/{database}",
echo=self.server_config.echo,
)
if password:
Copy link
Collaborator

Choose a reason for hiding this comment

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

is password is not None

Copy link
Collaborator

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

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

lgtm, in the future add tests if you add lines of code

@VinaiRachakonda VinaiRachakonda merged commit 7b31d88 into master Apr 23, 2021
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.

3 participants