Skip to content

Add max connections and password capabilities.#151

Merged
VinaiRachakonda merged 5 commits into
masterfrom
vinai/add-max-conns-and-max-onnecs
Apr 23, 2021
Merged

Add max connections and password capabilities.#151
VinaiRachakonda merged 5 commits into
masterfrom
vinai/add-max-conns-and-max-onnecs

Conversation

@VinaiRachakonda

@VinaiRachakonda VinaiRachakonda commented Apr 18, 2021

Copy link
Copy Markdown
Contributor

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

@max-hoffman

Copy link
Copy Markdown
Contributor

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

@codecov-commenter

codecov-commenter commented Apr 23, 2021

Copy link
Copy Markdown

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.

Comment thread doltpy/sql/sql.py Outdated
f"mysql+mysqlconnector://{user}@{host}:{port}/{database}",
echo=self.server_config.echo,
)
if password:

Copy link
Copy Markdown
Contributor

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

@max-hoffman max-hoffman left a comment

Copy link
Copy Markdown
Contributor

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