-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 proper types to the Doctrine\DBAL\Sharding namespace. #3571
Conversation
@morozov Is the shard id always an integer? I see we allow Can we change it to be int everywhere? |
I believe the
The major problem is that I personally don't know which sharding implementations we support and we don't test anything on CI. I'd assume that depending on the implementation, shards IDs may be integers or strings. E.g. in the Azure documentation, they refer to shards as A, B, C. Enforcing the ID to |
Honestly, I'm not even sure that the sharding support is practically usable. The only implementation of
The implementation means that for every single distribution value, there's a separate shard which does not make any sense. Is there a way to see this sharding in action? |
To be honest, I am not sure. We might need to create a new issue for 3.0 to look at this and figure out how to properly test it and confirm it is working. |
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Add proper types to the Doctrine\DBAL\Sharding namespace.
Summary
Add proper types to the
Doctrine\DBAL\Sharding
namespace.