feat: allow to select default read client
This pull request introduces enhancements to the read replica functionality by adding a new option for the default read client, modifying the query execution logic.
It opt-in for $replicas like the legacy behavior but allow to opt-in for $primary instead.
It's a proposal to fix #35
Attemping to use this fix with patch-package
+1
This would help to safely integrate the extension in large code bases.
+1
Same reason as above.
+1 for me this is extremely important. Moreover if we want to adopt progressively a readReplica strategy I don't want to migrate 100% of my codebase.