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 admin protocol for DAC #110

Merged
merged 7 commits into from
May 25, 2023
Merged

Add admin protocol for DAC #110

merged 7 commits into from
May 25, 2023

Conversation

shueybubbles
Copy link
Collaborator

Fixes #108
I've attempted to adhere to this spec for DAC: https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/diagnostic-connection-for-database-administrators?view=sql-server-ver15

The doc confuses me a bit. I don't know how an app is supposed to tell the difference between admin:<instance_name> and admin:<server_name>
The driver requires the full admin:server\instance syntax or separate parameters for server and protocol.

@shueybubbles
Copy link
Collaborator Author

Note that I added a test but a full test run against the admin protocol isn't (yet) feasible because the tests keep too many connections open and DAC only allows 1 open connection.

@grrlgeek grrlgeek added this to the v1 milestone May 25, 2023
@@ -1,3 +1,4 @@
//go:build go1.10
Copy link
Collaborator

@stuartpa stuartpa May 25, 2023

Choose a reason for hiding this comment

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

Should we remove one of these? #Resolved

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, the go tooling auto-injected the second one

Copy link
Collaborator

@stuartpa stuartpa left a comment

Choose a reason for hiding this comment

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

:shipit:

@codecov-commenter
Copy link

codecov-commenter commented May 25, 2023

Codecov Report

Merging #110 (434ced7) into main (17c7a0a) will decrease coverage by 0.48%.
The diff coverage is 40.74%.

@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
- Coverage   74.53%   74.06%   -0.48%     
==========================================
  Files          29       29              
  Lines        5592     5613      +21     
==========================================
- Hits         4168     4157      -11     
- Misses       1179     1208      +29     
- Partials      245      248       +3     
Impacted Files Coverage Δ
tds.go 71.36% <36.00%> (-0.89%) ⬇️
mssql.go 86.27% <100.00%> (+0.01%) ⬆️

... and 2 files with indirect coverage changes

@shueybubbles shueybubbles merged commit 327d048 into main May 25, 2023
@shueybubbles shueybubbles deleted the shueybubbles/108 branch May 25, 2023 20:55
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.

Implement admin protocol for dedicated administrator connection
4 participants