denisenkom / go-mssqldb

Microsoft SQL server driver written in go language
BSD 3-Clause "New" or "Revised" License
1.82k stars 501 forks source link

Add synonyms for ADO-style connection string parameters #667

Closed shueybubbles closed 3 years ago

shueybubbles commented 3 years ago

Per request in #645 this change expands the set of keys usable in the ADO-style connection string to include application name as well as synonyms for database and user id and server.

The scope of the PR is a bit bigger than that because it includes:

  1. A simple Azure Devops pipeline yml I used in my fork for testing,
  2. A small bug fix in a test to match case on a variable. The test was failing when run against a case sensitive collation
  3. Some formatting fixes to md files to enable go syntax highlighting and satisfy vs code's go linter.

Feel free to cherry pick those out or I can figure out how to do it.

codecov[bot] commented 3 years ago

Codecov Report

Merging #667 (c5065bb) into master (3516239) will increase coverage by 0.07%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #667      +/-   ##
==========================================
+ Coverage   72.28%   72.35%   +0.07%     
==========================================
  Files          24       24              
  Lines        5469     5480      +11     
==========================================
+ Hits         3953     3965      +12     
+ Misses       1291     1290       -1     
  Partials      225      225              
Impacted Files Coverage Δ
conn_str.go 100.00% <100.00%> (ø)
tds.go 66.83% <0.00%> (ø)
token.go 61.08% <0.00%> (+0.15%) :arrow_up:

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 3516239...c5065bb. Read the comment docs.