Closed ppanphper closed 1 year ago
sharding.Register func will be get the same plugin name for sharding,so different sharding-key column could not register successfully when invoking db.USE()
The same database has multiple tables with different shardingkey rules
https://github.com/go-gorm/sharding/issues/62
Is it possible to support setting plugins name to solve the problem of different shardingKey rules for multiple tables in the same database?
Isn' t supported ?
Describe the feature
sharding.Register func will be get the same plugin name for sharding,so different sharding-key column could not register successfully when invoking db.USE()
Motivation
The same database has multiple tables with different shardingkey rules
Related Issues
https://github.com/go-gorm/sharding/issues/62
Is it possible to support setting plugins name to solve the problem of different shardingKey rules for multiple tables in the same database?