go-gorm / sharding

High performance table sharding plugin for Gorm.
MIT License
263 stars 55 forks source link

是否可以支持注册不同的shardingkey 分表策略 #84

Closed ppanphper closed 1 year ago

ppanphper commented 1 year ago

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?

zishiguo commented 11 months ago

Isn' t supported ?