go-gorm / sharding

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

Support for MySQL: PKMySQLSequence #131

Closed ricleal closed 9 months ago

ricleal commented 9 months ago

What did this pull request do?

Adds support for sharding using a MySQL sequence for the primary keys.

User Case Description

When using MySQL as DB this allows to shard a table.

huacnlee commented 9 months ago

LGTM