Skip to content

Add a pooling data source - #2635

Merged
mdaigle merged 7 commits into
dotnet:feat/sqlclientxfrom
mdaigle:pooled-data-source
Jul 1, 2024
Merged

mdaigle merged 7 commits into
dotnet:feat/sqlclientxfrom
mdaigle:pooled-data-source

Conversation

@mdaigle

@mdaigle mdaigle commented Jul 1, 2024

Copy link
Copy Markdown
Contributor

Adds the skeleton of a concrete, pooling SqlDataSource class.
Introduces a "return" flow so that data sources can received an internal connection for recycling or closing.

@VladimirReshetnikov VladimirReshetnikov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good

@mdaigle mdaigle linked an issue Jul 1, 2024 that may be closed by this pull request
@mdaigle
mdaigle merged commit fbacd47 into dotnet:feat/sqlclientx Jul 1, 2024
@mdaigle
mdaigle deleted the pooled-data-source branch July 1, 2024 20:26
//TODO: support auth contexts and provider info
PoolingDataSource(SqlConnectionStringBuilder connectionStringBuilder,
SqlCredential credential,
RemoteCertificateValidationCallback userCertificateValidationCallback,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why do these callbacks exist?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think this is a holdover from npgsql inspiration. I can clean them up and come back around later as the auth flows are fleshed out.

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.

Add a PoolingDataSource to SqlClientX

4 participants