We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShardingAlgorithm: func(columnValue interface{}) (suffix string, err error) { if id, ok := columnValue.(uint); ok { return fmt.Sprintf("_%02d", id%shardingNum), nil } return "", fmt.Errorf("invalid column value type") }
and just migrate table {table_name}_00
{table_name}_00
TableName()
func (d *dataobject) TableName() string { return fmt.Sprintf("table_name_%02d", d.ID%shardingNum) }
and just migrate table {table_name}_00 and didnot creat any new table
The text was updated successfully, but these errors were encountered:
jinzhu
No branches or pull requests
Description
and just migrate table
{table_name}_00
TableName()
, and just like thisand just migrate table
{table_name}_00
and didnot creat any new tableThe text was updated successfully, but these errors were encountered: