Skip to content

Conversation

@danielmarbach
Copy link
Contributor

@danielmarbach danielmarbach commented Aug 19, 2025

This PR introduces a provider concept that allows resolving the mongo client from the container. Similar functionality is already available in DynamoDB, CosmoDB, and Azure Table.

Unfortunately the names haven't been kept consistent. In the past we used quite a few I{VERB} type of interfaces, which has been criticized publicly, and some attempts have been made to no longer use names like that. CosmosDB and AzureTable, if I'm not mistaken, had those names already in there, while DynamoDB persistence was created later following the "modern" nomenclature.

This PR also makes sure that installers only run when they actually should (in case their corresponding feature is activated).

@danielmarbach danielmarbach changed the title Client provider Add client provider support Aug 19, 2025
@danielmarbach danielmarbach marked this pull request as ready for review August 19, 2025 10:16
@danielmarbach danielmarbach requested a review from afprtclr August 19, 2025 10:17
@danielmarbach danielmarbach merged commit 443d118 into master Aug 19, 2025
4 checks passed
@danielmarbach danielmarbach deleted the client-provider branch August 19, 2025 12:58
@danielmarbach danielmarbach added this to the 6.0.0 milestone Sep 1, 2025
@danielmarbach danielmarbach changed the title Add client provider support Introduce provider to support overriding the mongo client using dependency injection Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants