go-gorm / sharding

High performance table sharding plugin for Gorm.
MIT License
255 stars 48 forks source link

Support for optional primary key #127

Closed hyperphoton closed 11 months ago

hyperphoton commented 11 months ago

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