denisenkom / go-mssqldb

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

Connect to a DB by directly supplying auth token #753

Open RudraNirvan opened 2 years ago

RudraNirvan commented 2 years ago

Refer to the example file (examples/azuread-service-principal-authtoken/service_principal_authtoken.go) to understand how it will work.

CRLF difference is causing all the lines to be shown as changed, not sure if GitHub offers an option to ignore this while reviewing, suggestions are welcome.

Fixes #752.

codecov[bot] commented 2 years ago

Codecov Report

Merging #753 (1818e42) into master (1598eaf) will decrease coverage by 0.15%. The diff coverage is 0.00%.

:exclamation: Current head 1818e42 differs from pull request most recent head 91766b9. Consider uploading reports for the commit 91766b9 to get more accurate results

@@            Coverage Diff             @@
##           master     #753      +/-   ##
==========================================
- Coverage   71.32%   71.16%   -0.16%     
==========================================
  Files          24       24              
  Lines        5388     5397       +9     
==========================================
- Hits         3843     3841       -2     
- Misses       1301     1311      +10     
- Partials      244      245       +1     
Impacted Files Coverage Δ
mssql.go 86.77% <0.00%> (-0.98%) :arrow_down:
tds.go 65.85% <0.00%> (-0.37%) :arrow_down:
token.go 64.35% <0.00%> (+0.14%) :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 1598eaf...91766b9. Read the comment docs.

RudraNirvan commented 2 years ago

Force push to update author details in commit. No code change - can "Compare" to verify.