org.tinygroup.dbrouter.impl.shardrule
public class ShardRuleByIdSameSchema extends ShardRuleByIdAbstract
| Constructor and 描述 |
|---|
ShardRuleByIdSameSchema() |
ShardRuleByIdSameSchema(String tableName,
String primaryKeyFieldName,
int remainder) |
| Modifier and Type | Method and 描述 |
|---|---|
String |
getReplacedSql(Partition partition,
Shard shard,
String sql)
返回替换好的SQL语句,对于在同一个schema中的用多个表进行分表的话,就需要替换SQL脚本
|
getPrimaryKeyFieldName, getRemainder, getTableName, isMatch, setPrimaryKeyFieldName, setRemainder, setTableNameCopyright © 2006–2015 TinyGroup. All rights reserved.