go-gorm / sharding

High performance table sharding plugin for Gorm.
MIT License
276 stars 60 forks source link

Support for optional primary key #127

Closed hyperphoton closed 1 year ago

hyperphoton commented 1 year ago

If some table do not have primary key, now is supported by this pr. Just let PrimaryKeyGeneratorFn return 0.