Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Shardingsphere
提交
e855932c
Shardingsphere
项目概览
apache
/
Shardingsphere
通知
56
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Shardingsphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e855932c
编写于
5月 02, 2018
作者:
L
liu ze jian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add split read, write and separate support(添加分片读写分离支持)
上级
a97a6a3a
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
858 addition
and
6 deletion
+858
-6
sharding-jdbc-core/src/test/java/io/shardingjdbc/dbtest/asserts/AssertEngine.java
...est/java/io/shardingjdbc/dbtest/asserts/AssertEngine.java
+15
-2
sharding-jdbc-core/src/test/java/io/shardingjdbc/dbtest/config/bean/AssertsDefinition.java
...io/shardingjdbc/dbtest/config/bean/AssertsDefinition.java
+3
-0
sharding-jdbc-core/src/test/resources/asserts/select/assert-test.xml
...bc-core/src/test/resources/asserts/select/assert-test.xml
+2
-2
sharding-jdbc-core/src/test/resources/asserts/select/config/test-dbtbl.yaml
.../src/test/resources/asserts/select/config/test-dbtbl.yaml
+2
-2
sharding-jdbc-core/src/test/resources/asserts/select/config/test-masterslave.yaml
...est/resources/asserts/select/config/test-masterslave.yaml
+92
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_0.xml
...st/resources/asserts/select/init/masterslave/master_0.xml
+39
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_1.xml
...st/resources/asserts/select/init/masterslave/master_1.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_2.xml
...st/resources/asserts/select/init/masterslave/master_2.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_3.xml
...st/resources/asserts/select/init/masterslave/master_3.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_4.xml
...st/resources/asserts/select/init/masterslave/master_4.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_5.xml
...st/resources/asserts/select/init/masterslave/master_5.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_6.xml
...st/resources/asserts/select/init/masterslave/master_6.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_7.xml
...st/resources/asserts/select/init/masterslave/master_7.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_8.xml
...st/resources/asserts/select/init/masterslave/master_8.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_9.xml
...st/resources/asserts/select/init/masterslave/master_9.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_0.xml
...est/resources/asserts/select/init/masterslave/slave_0.xml
+39
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_1.xml
...est/resources/asserts/select/init/masterslave/slave_1.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_2.xml
...est/resources/asserts/select/init/masterslave/slave_2.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_3.xml
...est/resources/asserts/select/init/masterslave/slave_3.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_4.xml
...est/resources/asserts/select/init/masterslave/slave_4.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_5.xml
...est/resources/asserts/select/init/masterslave/slave_5.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_6.xml
...est/resources/asserts/select/init/masterslave/slave_6.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_7.xml
...est/resources/asserts/select/init/masterslave/slave_7.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_8.xml
...est/resources/asserts/select/init/masterslave/slave_8.xml
+37
-0
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_9.xml
...est/resources/asserts/select/init/masterslave/slave_9.xml
+37
-0
未找到文件。
sharding-jdbc-core/src/test/java/io/shardingjdbc/dbtest/asserts/AssertEngine.java
浏览文件 @
e855932c
...
...
@@ -29,6 +29,7 @@ import javax.sql.DataSource;
import
javax.xml.parsers.ParserConfigurationException
;
import
javax.xml.xpath.XPathExpressionException
;
import
io.shardingjdbc.core.api.MasterSlaveDataSourceFactory
;
import
io.shardingjdbc.core.api.ShardingDataSourceFactory
;
import
io.shardingjdbc.core.constant.DatabaseType
;
import
io.shardingjdbc.dbtest.StartTest
;
...
...
@@ -147,12 +148,20 @@ public class AssertEngine {
try
{
for
(
DatabaseType
each
:
InItCreateSchema
.
getDatabaseSchemas
())
{
Map
<
String
,
DataSource
>
dataSourceMaps
=
new
HashMap
<>();
for
(
String
db
:
dbs
)
{
DataSource
subDataSource
=
InItCreateSchema
.
buildDataSource
(
db
,
each
);
dataSourceMaps
.
put
(
db
,
subDataSource
);
}
String
configPath
=
PathUtil
.
getPath
(
assertsDefinition
.
getShardingRuleConfig
(),
rootPath
)
+
"-"
+
dbName
+
".yaml"
;
dataSource
=
getDataSource
(
dataSourceMaps
,
configPath
);
if
(
"true"
.
equals
(
assertsDefinition
.
getMasterslave
()))
{
String
configPath
=
PathUtil
.
getPath
(
assertsDefinition
.
getShardingRuleConfig
(),
rootPath
)
+
"-"
+
dbName
+
".yaml"
;
dataSource
=
getMasterSlaveDataSource
(
dataSourceMaps
,
configPath
);
}
else
{
String
configPath
=
PathUtil
.
getPath
(
assertsDefinition
.
getShardingRuleConfig
(),
rootPath
)
+
"-"
+
dbName
+
".yaml"
;
dataSource
=
getDataSource
(
dataSourceMaps
,
configPath
);
}
// dql run
dqlRun
(
each
,
initDataPath
,
dbName
,
path
,
id
,
assertsDefinition
,
rootPath
,
msg
,
dataSource
,
dataSourceMaps
,
dbs
);
...
...
@@ -932,6 +941,10 @@ public class AssertEngine {
return
ShardingDataSourceFactory
.
createDataSource
(
dataSourceMap
,
new
File
(
path
));
}
public
static
DataSource
getMasterSlaveDataSource
(
final
Map
<
String
,
DataSource
>
dataSourceMap
,
final
String
path
)
throws
IOException
,
SQLException
{
return
MasterSlaveDataSourceFactory
.
createDataSource
(
dataSourceMap
,
new
File
(
path
));
}
/**
* According to the sub DataSource set of shardingDataSource.
*
...
...
sharding-jdbc-core/src/test/java/io/shardingjdbc/dbtest/config/bean/AssertsDefinition.java
浏览文件 @
e855932c
...
...
@@ -42,6 +42,9 @@ public class AssertsDefinition {
@XmlAttribute
(
name
=
"database-config"
)
private
String
databaseConfig
;
@XmlAttribute
(
name
=
"masterslave"
)
private
String
masterslave
;
@XmlAttribute
(
name
=
"init-data-file"
)
private
String
initDataFile
;
...
...
sharding-jdbc-core/src/test/resources/asserts/select/assert-test.xml
浏览文件 @
e855932c
<asserts
sharding-rule-config=
"./config/test"
init-data-file=
"./init"
base-config=
"db,tbl,dbtbl"
database=
"h2,mysql,oracle,sqlserver,postgresql"
>
<asserts
sharding-rule-config=
"./config/test"
init-data-file=
"./init"
base-config=
"db,tbl,dbtbl
,masterslave
"
database=
"h2,mysql,oracle,sqlserver,postgresql"
>
<assertDQL
id=
"assertSelectOne"
sql=
"assertSelectOne"
expected-data-file=
"SelectOne.xml"
>
...
...
@@ -57,7 +57,7 @@
<value
value=
"1109"
type=
"int"
/>
</parameter>
</subAssert>
<subAssert
expected-data-file=
"SelectEqualsWithSingleTable_1.xml"
base-config=
"db,dbtbl"
>
<subAssert
expected-data-file=
"SelectEqualsWithSingleTable_1.xml"
base-config=
"db,
masterslave,
dbtbl"
>
<parameter>
<value
value=
"12"
type=
"int"
/>
<value
value=
"1201"
type=
"int"
/>
...
...
sharding-jdbc-core/src/test/resources/asserts/select/config/test-dbtbl.yaml
浏览文件 @
e855932c
...
...
@@ -16,7 +16,7 @@ shardingRule:
tableStrategy
:
inline
:
shardingColumn
:
order_id
algorithmExpression
:
t_order_${order_id %
2
}
algorithmExpression
:
t_order_${order_id %
10
}
t_order_item
:
actualDataNodes
:
dbtbl_${0..9}.t_order_item_${0..9}
keyGeneratorColumnName
:
order_item_id
...
...
@@ -29,7 +29,7 @@ shardingRule:
tableStrategy
:
inline
:
shardingColumn
:
order_id
algorithmExpression
:
t_order_item_${order_id %
2
}
algorithmExpression
:
t_order_item_${order_id %
10
}
bindingTables
:
-
t_order,t_order_item
...
...
sharding-jdbc-core/src/test/resources/asserts/select/config/test-masterslave.yaml
0 → 100644
浏览文件 @
e855932c
shardingRule
:
tables
:
config
:
actualDataNodes
:
db_ms_${0..9}.t_config
t_order
:
actualDataNodes
:
db_ms_${0..9}.t_order_${0..9}
databaseStrategy
:
standard
:
shardingColumn
:
user_id
preciseAlgorithmClassName
:
io.shardingjdbc.core.integrate.api.yaml.fixture.SingleAlgorithm
tableStrategy
:
inline
:
shardingColumn
:
order_id
algorithmExpression
:
t_order_${order_id % 10}
keyGeneratorColumnName
:
order_id
keyGeneratorClass
:
io.shardingjdbc.core.integrate.api.yaml.fixture.IncrementKeyGenerator
logicIndex
:
t_order_index
t_order_item
:
actualDataNodes
:
db_ms_${0..9}.t_order_item_${0..9}
databaseStrategy
:
standard
:
shardingColumn
:
user_id
preciseAlgorithmClassName
:
io.shardingjdbc.core.integrate.api.yaml.fixture.SingleAlgorithm
tableStrategy
:
inline
:
shardingColumn
:
order_id
algorithmExpression
:
t_order_item_${order_id % 10}
bindingTables
:
-
t_order,t_order_item
defaultDatabaseStrategy
:
none
:
defaultTableStrategy
:
complex
:
shardingColumns
:
id, order_id
algorithmClassName
:
io.shardingjdbc.core.integrate.api.yaml.fixture.MultiAlgorithm
masterSlaveRules
:
db_ms_0
:
masterDataSourceName
:
master_0
slaveDataSourceNames
:
-
slave_0
loadBalanceAlgorithmType
:
ROUND_ROBIN
db_ms_1
:
masterDataSourceName
:
master_1
slaveDataSourceNames
:
-
slave_1
loadBalanceAlgorithmType
:
ROUND_ROBIN
db_ms_2
:
masterDataSourceName
:
master_2
slaveDataSourceNames
:
-
slave_2
loadBalanceAlgorithmType
:
ROUND_ROBIN
db_ms_3
:
masterDataSourceName
:
master_3
slaveDataSourceNames
:
-
slave_3
loadBalanceAlgorithmType
:
ROUND_ROBIN
db_ms_4
:
masterDataSourceName
:
master_4
slaveDataSourceNames
:
-
slave_4
loadBalanceAlgorithmType
:
ROUND_ROBIN
db_ms_5
:
masterDataSourceName
:
master_5
slaveDataSourceNames
:
-
slave_5
loadBalanceAlgorithmType
:
ROUND_ROBIN
db_ms_6
:
masterDataSourceName
:
master_6
slaveDataSourceNames
:
-
slave_6
loadBalanceAlgorithmType
:
ROUND_ROBIN
db_ms_7
:
masterDataSourceName
:
master_7
slaveDataSourceNames
:
-
slave_7
loadBalanceAlgorithmType
:
ROUND_ROBIN
db_ms_8
:
masterDataSourceName
:
master_8
slaveDataSourceNames
:
-
slave_8
loadBalanceAlgorithmType
:
ROUND_ROBIN
db_ms_9
:
masterDataSourceName
:
master_9
slaveDataSourceNames
:
-
slave_9
loadBalanceAlgorithmType
:
ROUND_ROBIN
configMap
:
key1
:
value1
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_0.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1000"
user_id=
"10"
status=
"init"
/>
<t_order_1
order_id=
"1001"
user_id=
"10"
status=
"init"
/>
<t_order_2
order_id=
"1002"
user_id=
"10"
status=
"init"
/>
<t_order_3
order_id=
"1003"
user_id=
"10"
status=
"init"
/>
<t_order_4
order_id=
"1004"
user_id=
"10"
status=
"init"
/>
<t_order_5
order_id=
"1005"
user_id=
"10"
status=
"init"
/>
<t_order_6
order_id=
"1006"
user_id=
"10"
status=
"init"
/>
<t_order_7
order_id=
"1007"
user_id=
"10"
status=
"init"
/>
<t_order_8
order_id=
"1008"
user_id=
"10"
status=
"init"
/>
<t_order_9
order_id=
"1009"
user_id=
"10"
status=
"init"
/>
<t_order_item_0
item_id=
"100000"
order_id=
"1000"
user_id=
"10"
status=
"init"
/>
<t_order_item_0
item_id=
"100001"
order_id=
"1000"
user_id=
"10"
status=
"init"
/>
<t_order_item_1
item_id=
"100100"
order_id=
"1001"
user_id=
"10"
status=
"init"
/>
<t_order_item_1
item_id=
"100101"
order_id=
"1001"
user_id=
"10"
status=
"init"
/>
<t_order_item_2
item_id=
"100200"
order_id=
"1002"
user_id=
"10"
status=
"init"
/>
<t_order_item_2
item_id=
"100201"
order_id=
"1002"
user_id=
"10"
status=
"init"
/>
<t_order_item_3
item_id=
"100300"
order_id=
"1003"
user_id=
"10"
status=
"init"
/>
<t_order_item_3
item_id=
"100301"
order_id=
"1003"
user_id=
"10"
status=
"init"
/>
<t_order_item_4
item_id=
"100400"
order_id=
"1004"
user_id=
"10"
status=
"init"
/>
<t_order_item_4
item_id=
"100401"
order_id=
"1004"
user_id=
"10"
status=
"init"
/>
<t_order_item_5
item_id=
"100500"
order_id=
"1005"
user_id=
"10"
status=
"init"
/>
<t_order_item_5
item_id=
"100501"
order_id=
"1005"
user_id=
"10"
status=
"init"
/>
<t_order_item_6
item_id=
"100600"
order_id=
"1006"
user_id=
"10"
status=
"init"
/>
<t_order_item_6
item_id=
"100601"
order_id=
"1006"
user_id=
"10"
status=
"init"
/>
<t_order_item_7
item_id=
"100700"
order_id=
"1007"
user_id=
"10"
status=
"init"
/>
<t_order_item_7
item_id=
"100701"
order_id=
"1007"
user_id=
"10"
status=
"init"
/>
<t_order_item_8
item_id=
"100800"
order_id=
"1008"
user_id=
"10"
status=
"init"
/>
<t_order_item_8
item_id=
"100801"
order_id=
"1008"
user_id=
"10"
status=
"init"
/>
<t_order_item_9
item_id=
"100900"
order_id=
"1009"
user_id=
"10"
status=
"init"
/>
<t_order_item_9
item_id=
"100901"
order_id=
"1009"
user_id=
"10"
status=
"init"
/>
<t_config
id=
"1"
status=
"init"
/>
<t_global
id=
"1"
status=
"global_master"
/>
</dataset>
</init>
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_1.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1100"
user_id=
"11"
status=
"init"
/>
<t_order_1
order_id=
"1101"
user_id=
"11"
status=
"init"
/>
<t_order_2
order_id=
"1102"
user_id=
"11"
status=
"init"
/>
<t_order_3
order_id=
"1103"
user_id=
"11"
status=
"init"
/>
<t_order_4
order_id=
"1104"
user_id=
"11"
status=
"init"
/>
<t_order_5
order_id=
"1105"
user_id=
"11"
status=
"init"
/>
<t_order_6
order_id=
"1106"
user_id=
"11"
status=
"init"
/>
<t_order_7
order_id=
"1107"
user_id=
"11"
status=
"init"
/>
<t_order_8
order_id=
"1108"
user_id=
"11"
status=
"init"
/>
<t_order_9
order_id=
"1109"
user_id=
"11"
status=
"init"
/>
<t_order_item_0
item_id=
"110000"
order_id=
"1100"
user_id=
"11"
status=
"init"
/>
<t_order_item_0
item_id=
"110001"
order_id=
"1100"
user_id=
"11"
status=
"init"
/>
<t_order_item_1
item_id=
"110100"
order_id=
"1101"
user_id=
"11"
status=
"init"
/>
<t_order_item_1
item_id=
"110101"
order_id=
"1101"
user_id=
"11"
status=
"init"
/>
<t_order_item_2
item_id=
"110200"
order_id=
"1102"
user_id=
"11"
status=
"init"
/>
<t_order_item_2
item_id=
"110201"
order_id=
"1102"
user_id=
"11"
status=
"init"
/>
<t_order_item_3
item_id=
"110300"
order_id=
"1103"
user_id=
"11"
status=
"init"
/>
<t_order_item_3
item_id=
"110301"
order_id=
"1103"
user_id=
"11"
status=
"init"
/>
<t_order_item_4
item_id=
"110400"
order_id=
"1104"
user_id=
"11"
status=
"init"
/>
<t_order_item_4
item_id=
"110401"
order_id=
"1104"
user_id=
"11"
status=
"init"
/>
<t_order_item_5
item_id=
"110500"
order_id=
"1105"
user_id=
"11"
status=
"init"
/>
<t_order_item_5
item_id=
"110501"
order_id=
"1105"
user_id=
"11"
status=
"init"
/>
<t_order_item_6
item_id=
"110600"
order_id=
"1106"
user_id=
"11"
status=
"init"
/>
<t_order_item_6
item_id=
"110601"
order_id=
"1106"
user_id=
"11"
status=
"init"
/>
<t_order_item_7
item_id=
"110700"
order_id=
"1107"
user_id=
"11"
status=
"init"
/>
<t_order_item_7
item_id=
"110701"
order_id=
"1107"
user_id=
"11"
status=
"init"
/>
<t_order_item_8
item_id=
"110800"
order_id=
"1108"
user_id=
"11"
status=
"init"
/>
<t_order_item_8
item_id=
"110801"
order_id=
"1108"
user_id=
"11"
status=
"init"
/>
<t_order_item_9
item_id=
"110900"
order_id=
"1109"
user_id=
"11"
status=
"init"
/>
<t_order_item_9
item_id=
"110901"
order_id=
"1109"
user_id=
"11"
status=
"init"
/>
<t_config
id=
"1"
status=
"init"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_2.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1200"
user_id=
"12"
status=
"init"
/>
<t_order_1
order_id=
"1201"
user_id=
"12"
status=
"init"
/>
<t_order_2
order_id=
"1202"
user_id=
"12"
status=
"init"
/>
<t_order_3
order_id=
"1203"
user_id=
"12"
status=
"init"
/>
<t_order_4
order_id=
"1204"
user_id=
"12"
status=
"init"
/>
<t_order_5
order_id=
"1205"
user_id=
"12"
status=
"init"
/>
<t_order_6
order_id=
"1206"
user_id=
"12"
status=
"init"
/>
<t_order_7
order_id=
"1207"
user_id=
"12"
status=
"init"
/>
<t_order_8
order_id=
"1208"
user_id=
"12"
status=
"init"
/>
<t_order_9
order_id=
"1209"
user_id=
"12"
status=
"init"
/>
<t_order_item_0
item_id=
"120000"
order_id=
"1200"
user_id=
"12"
status=
"init"
/>
<t_order_item_0
item_id=
"120001"
order_id=
"1200"
user_id=
"12"
status=
"init"
/>
<t_order_item_1
item_id=
"120100"
order_id=
"1201"
user_id=
"12"
status=
"init"
/>
<t_order_item_1
item_id=
"120101"
order_id=
"1201"
user_id=
"12"
status=
"init"
/>
<t_order_item_2
item_id=
"120200"
order_id=
"1202"
user_id=
"12"
status=
"init"
/>
<t_order_item_2
item_id=
"120201"
order_id=
"1202"
user_id=
"12"
status=
"init"
/>
<t_order_item_3
item_id=
"120300"
order_id=
"1203"
user_id=
"12"
status=
"init"
/>
<t_order_item_3
item_id=
"120301"
order_id=
"1203"
user_id=
"12"
status=
"init"
/>
<t_order_item_4
item_id=
"120400"
order_id=
"1204"
user_id=
"12"
status=
"init"
/>
<t_order_item_4
item_id=
"120401"
order_id=
"1204"
user_id=
"12"
status=
"init"
/>
<t_order_item_5
item_id=
"120500"
order_id=
"1205"
user_id=
"12"
status=
"init"
/>
<t_order_item_5
item_id=
"120501"
order_id=
"1205"
user_id=
"12"
status=
"init"
/>
<t_order_item_6
item_id=
"120600"
order_id=
"1206"
user_id=
"12"
status=
"init"
/>
<t_order_item_6
item_id=
"120601"
order_id=
"1206"
user_id=
"12"
status=
"init"
/>
<t_order_item_7
item_id=
"120700"
order_id=
"1207"
user_id=
"12"
status=
"init"
/>
<t_order_item_7
item_id=
"120701"
order_id=
"1207"
user_id=
"12"
status=
"init"
/>
<t_order_item_8
item_id=
"120800"
order_id=
"1208"
user_id=
"12"
status=
"init"
/>
<t_order_item_8
item_id=
"120801"
order_id=
"1208"
user_id=
"12"
status=
"init"
/>
<t_order_item_9
item_id=
"120900"
order_id=
"1209"
user_id=
"12"
status=
"init"
/>
<t_order_item_9
item_id=
"120901"
order_id=
"1209"
user_id=
"12"
status=
"init"
/>
<t_config
id=
"1"
status=
"init"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_3.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1300"
user_id=
"13"
status=
"init"
/>
<t_order_1
order_id=
"1301"
user_id=
"13"
status=
"init"
/>
<t_order_2
order_id=
"1302"
user_id=
"13"
status=
"init"
/>
<t_order_3
order_id=
"1303"
user_id=
"13"
status=
"init"
/>
<t_order_4
order_id=
"1304"
user_id=
"13"
status=
"init"
/>
<t_order_5
order_id=
"1305"
user_id=
"13"
status=
"init"
/>
<t_order_6
order_id=
"1306"
user_id=
"13"
status=
"init"
/>
<t_order_7
order_id=
"1307"
user_id=
"13"
status=
"init"
/>
<t_order_8
order_id=
"1308"
user_id=
"13"
status=
"init"
/>
<t_order_9
order_id=
"1309"
user_id=
"13"
status=
"init"
/>
<t_order_item_0
item_id=
"130000"
order_id=
"1300"
user_id=
"13"
status=
"init"
/>
<t_order_item_0
item_id=
"130001"
order_id=
"1300"
user_id=
"13"
status=
"init"
/>
<t_order_item_1
item_id=
"130100"
order_id=
"1301"
user_id=
"13"
status=
"init"
/>
<t_order_item_1
item_id=
"130101"
order_id=
"1301"
user_id=
"13"
status=
"init"
/>
<t_order_item_2
item_id=
"130200"
order_id=
"1302"
user_id=
"13"
status=
"init"
/>
<t_order_item_2
item_id=
"130201"
order_id=
"1302"
user_id=
"13"
status=
"init"
/>
<t_order_item_3
item_id=
"130300"
order_id=
"1303"
user_id=
"13"
status=
"init"
/>
<t_order_item_3
item_id=
"130301"
order_id=
"1303"
user_id=
"13"
status=
"init"
/>
<t_order_item_4
item_id=
"130400"
order_id=
"1304"
user_id=
"13"
status=
"init"
/>
<t_order_item_4
item_id=
"130401"
order_id=
"1304"
user_id=
"13"
status=
"init"
/>
<t_order_item_5
item_id=
"130500"
order_id=
"1305"
user_id=
"13"
status=
"init"
/>
<t_order_item_5
item_id=
"130501"
order_id=
"1305"
user_id=
"13"
status=
"init"
/>
<t_order_item_6
item_id=
"130600"
order_id=
"1306"
user_id=
"13"
status=
"init"
/>
<t_order_item_6
item_id=
"130601"
order_id=
"1306"
user_id=
"13"
status=
"init"
/>
<t_order_item_7
item_id=
"130700"
order_id=
"1307"
user_id=
"13"
status=
"init"
/>
<t_order_item_7
item_id=
"130701"
order_id=
"1307"
user_id=
"13"
status=
"init"
/>
<t_order_item_8
item_id=
"130800"
order_id=
"1308"
user_id=
"13"
status=
"init"
/>
<t_order_item_8
item_id=
"130801"
order_id=
"1308"
user_id=
"13"
status=
"init"
/>
<t_order_item_9
item_id=
"130900"
order_id=
"1309"
user_id=
"13"
status=
"init"
/>
<t_order_item_9
item_id=
"130901"
order_id=
"1309"
user_id=
"13"
status=
"init"
/>
<t_config
id=
"1"
status=
"init"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_4.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1400"
user_id=
"14"
status=
"init"
/>
<t_order_1
order_id=
"1401"
user_id=
"14"
status=
"init"
/>
<t_order_2
order_id=
"1402"
user_id=
"14"
status=
"init"
/>
<t_order_3
order_id=
"1403"
user_id=
"14"
status=
"init"
/>
<t_order_4
order_id=
"1404"
user_id=
"14"
status=
"init"
/>
<t_order_5
order_id=
"1405"
user_id=
"14"
status=
"init"
/>
<t_order_6
order_id=
"1406"
user_id=
"14"
status=
"init"
/>
<t_order_7
order_id=
"1407"
user_id=
"14"
status=
"init"
/>
<t_order_8
order_id=
"1408"
user_id=
"14"
status=
"init"
/>
<t_order_9
order_id=
"1409"
user_id=
"14"
status=
"init"
/>
<t_order_item_0
item_id=
"140000"
order_id=
"1400"
user_id=
"14"
status=
"init"
/>
<t_order_item_0
item_id=
"140001"
order_id=
"1400"
user_id=
"14"
status=
"init"
/>
<t_order_item_1
item_id=
"140100"
order_id=
"1401"
user_id=
"14"
status=
"init"
/>
<t_order_item_1
item_id=
"140101"
order_id=
"1401"
user_id=
"14"
status=
"init"
/>
<t_order_item_2
item_id=
"140200"
order_id=
"1402"
user_id=
"14"
status=
"init"
/>
<t_order_item_2
item_id=
"140201"
order_id=
"1402"
user_id=
"14"
status=
"init"
/>
<t_order_item_3
item_id=
"140300"
order_id=
"1403"
user_id=
"14"
status=
"init"
/>
<t_order_item_3
item_id=
"140301"
order_id=
"1403"
user_id=
"14"
status=
"init"
/>
<t_order_item_4
item_id=
"140400"
order_id=
"1404"
user_id=
"14"
status=
"init"
/>
<t_order_item_4
item_id=
"140401"
order_id=
"1404"
user_id=
"14"
status=
"init"
/>
<t_order_item_5
item_id=
"140500"
order_id=
"1405"
user_id=
"14"
status=
"init"
/>
<t_order_item_5
item_id=
"140501"
order_id=
"1405"
user_id=
"14"
status=
"init"
/>
<t_order_item_6
item_id=
"140600"
order_id=
"1406"
user_id=
"14"
status=
"init"
/>
<t_order_item_6
item_id=
"140601"
order_id=
"1406"
user_id=
"14"
status=
"init"
/>
<t_order_item_7
item_id=
"140700"
order_id=
"1407"
user_id=
"14"
status=
"init"
/>
<t_order_item_7
item_id=
"140701"
order_id=
"1407"
user_id=
"14"
status=
"init"
/>
<t_order_item_8
item_id=
"140800"
order_id=
"1408"
user_id=
"14"
status=
"init"
/>
<t_order_item_8
item_id=
"140801"
order_id=
"1408"
user_id=
"14"
status=
"init"
/>
<t_order_item_9
item_id=
"140900"
order_id=
"1409"
user_id=
"14"
status=
"init"
/>
<t_order_item_9
item_id=
"140901"
order_id=
"1409"
user_id=
"14"
status=
"init"
/>
<t_config
id=
"1"
status=
"init"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_5.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1500"
user_id=
"15"
status=
"init"
/>
<t_order_1
order_id=
"1501"
user_id=
"15"
status=
"init"
/>
<t_order_2
order_id=
"1502"
user_id=
"15"
status=
"init"
/>
<t_order_3
order_id=
"1503"
user_id=
"15"
status=
"init"
/>
<t_order_4
order_id=
"1504"
user_id=
"15"
status=
"init"
/>
<t_order_5
order_id=
"1505"
user_id=
"15"
status=
"init"
/>
<t_order_6
order_id=
"1506"
user_id=
"15"
status=
"init"
/>
<t_order_7
order_id=
"1507"
user_id=
"15"
status=
"init"
/>
<t_order_8
order_id=
"1508"
user_id=
"15"
status=
"init"
/>
<t_order_9
order_id=
"1509"
user_id=
"15"
status=
"init"
/>
<t_order_item_0
item_id=
"150000"
order_id=
"1500"
user_id=
"15"
status=
"init"
/>
<t_order_item_0
item_id=
"150001"
order_id=
"1500"
user_id=
"15"
status=
"init"
/>
<t_order_item_1
item_id=
"150100"
order_id=
"1501"
user_id=
"15"
status=
"init"
/>
<t_order_item_1
item_id=
"150101"
order_id=
"1501"
user_id=
"15"
status=
"init"
/>
<t_order_item_2
item_id=
"150200"
order_id=
"1502"
user_id=
"15"
status=
"init"
/>
<t_order_item_2
item_id=
"150201"
order_id=
"1502"
user_id=
"15"
status=
"init"
/>
<t_order_item_3
item_id=
"150300"
order_id=
"1503"
user_id=
"15"
status=
"init"
/>
<t_order_item_3
item_id=
"150301"
order_id=
"1503"
user_id=
"15"
status=
"init"
/>
<t_order_item_4
item_id=
"150400"
order_id=
"1504"
user_id=
"15"
status=
"init"
/>
<t_order_item_4
item_id=
"150401"
order_id=
"1504"
user_id=
"15"
status=
"init"
/>
<t_order_item_5
item_id=
"150500"
order_id=
"1505"
user_id=
"15"
status=
"init"
/>
<t_order_item_5
item_id=
"150501"
order_id=
"1505"
user_id=
"15"
status=
"init"
/>
<t_order_item_6
item_id=
"150600"
order_id=
"1506"
user_id=
"15"
status=
"init"
/>
<t_order_item_6
item_id=
"150601"
order_id=
"1506"
user_id=
"15"
status=
"init"
/>
<t_order_item_7
item_id=
"150700"
order_id=
"1507"
user_id=
"15"
status=
"init"
/>
<t_order_item_7
item_id=
"150701"
order_id=
"1507"
user_id=
"15"
status=
"init"
/>
<t_order_item_8
item_id=
"150800"
order_id=
"1508"
user_id=
"15"
status=
"init"
/>
<t_order_item_8
item_id=
"150801"
order_id=
"1508"
user_id=
"15"
status=
"init"
/>
<t_order_item_9
item_id=
"150900"
order_id=
"1509"
user_id=
"15"
status=
"init"
/>
<t_order_item_9
item_id=
"150901"
order_id=
"1509"
user_id=
"15"
status=
"init"
/>
<t_config
id=
"1"
status=
"init"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_6.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1600"
user_id=
"16"
status=
"init"
/>
<t_order_1
order_id=
"1601"
user_id=
"16"
status=
"init"
/>
<t_order_2
order_id=
"1602"
user_id=
"16"
status=
"init"
/>
<t_order_3
order_id=
"1603"
user_id=
"16"
status=
"init"
/>
<t_order_4
order_id=
"1604"
user_id=
"16"
status=
"init"
/>
<t_order_5
order_id=
"1605"
user_id=
"16"
status=
"init"
/>
<t_order_6
order_id=
"1606"
user_id=
"16"
status=
"init"
/>
<t_order_7
order_id=
"1607"
user_id=
"16"
status=
"init"
/>
<t_order_8
order_id=
"1608"
user_id=
"16"
status=
"init"
/>
<t_order_9
order_id=
"1609"
user_id=
"16"
status=
"init"
/>
<t_order_item_0
item_id=
"160000"
order_id=
"1600"
user_id=
"16"
status=
"init"
/>
<t_order_item_0
item_id=
"160001"
order_id=
"1600"
user_id=
"16"
status=
"init"
/>
<t_order_item_1
item_id=
"160100"
order_id=
"1601"
user_id=
"16"
status=
"init"
/>
<t_order_item_1
item_id=
"160101"
order_id=
"1601"
user_id=
"16"
status=
"init"
/>
<t_order_item_2
item_id=
"160200"
order_id=
"1602"
user_id=
"16"
status=
"init"
/>
<t_order_item_2
item_id=
"160201"
order_id=
"1602"
user_id=
"16"
status=
"init"
/>
<t_order_item_3
item_id=
"160300"
order_id=
"1603"
user_id=
"16"
status=
"init"
/>
<t_order_item_3
item_id=
"160301"
order_id=
"1603"
user_id=
"16"
status=
"init"
/>
<t_order_item_4
item_id=
"160400"
order_id=
"1604"
user_id=
"16"
status=
"init"
/>
<t_order_item_4
item_id=
"160401"
order_id=
"1604"
user_id=
"16"
status=
"init"
/>
<t_order_item_5
item_id=
"160500"
order_id=
"1605"
user_id=
"16"
status=
"init"
/>
<t_order_item_5
item_id=
"160501"
order_id=
"1605"
user_id=
"16"
status=
"init"
/>
<t_order_item_6
item_id=
"160600"
order_id=
"1606"
user_id=
"16"
status=
"init"
/>
<t_order_item_6
item_id=
"160601"
order_id=
"1606"
user_id=
"16"
status=
"init"
/>
<t_order_item_7
item_id=
"160700"
order_id=
"1607"
user_id=
"16"
status=
"init"
/>
<t_order_item_7
item_id=
"160701"
order_id=
"1607"
user_id=
"16"
status=
"init"
/>
<t_order_item_8
item_id=
"160800"
order_id=
"1608"
user_id=
"16"
status=
"init"
/>
<t_order_item_8
item_id=
"160801"
order_id=
"1608"
user_id=
"16"
status=
"init"
/>
<t_order_item_9
item_id=
"160900"
order_id=
"1609"
user_id=
"16"
status=
"init"
/>
<t_order_item_9
item_id=
"160901"
order_id=
"1609"
user_id=
"16"
status=
"init"
/>
<t_config
id=
"1"
status=
"init"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_7.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1700"
user_id=
"17"
status=
"init"
/>
<t_order_1
order_id=
"1701"
user_id=
"17"
status=
"init"
/>
<t_order_2
order_id=
"1702"
user_id=
"17"
status=
"init"
/>
<t_order_3
order_id=
"1703"
user_id=
"17"
status=
"init"
/>
<t_order_4
order_id=
"1704"
user_id=
"17"
status=
"init"
/>
<t_order_5
order_id=
"1705"
user_id=
"17"
status=
"init"
/>
<t_order_6
order_id=
"1706"
user_id=
"17"
status=
"init"
/>
<t_order_7
order_id=
"1707"
user_id=
"17"
status=
"init"
/>
<t_order_8
order_id=
"1708"
user_id=
"17"
status=
"init"
/>
<t_order_9
order_id=
"1709"
user_id=
"17"
status=
"init"
/>
<t_order_item_0
item_id=
"170000"
order_id=
"1700"
user_id=
"17"
status=
"init"
/>
<t_order_item_0
item_id=
"170001"
order_id=
"1700"
user_id=
"17"
status=
"init"
/>
<t_order_item_1
item_id=
"170100"
order_id=
"1701"
user_id=
"17"
status=
"init"
/>
<t_order_item_1
item_id=
"170101"
order_id=
"1701"
user_id=
"17"
status=
"init"
/>
<t_order_item_2
item_id=
"170200"
order_id=
"1702"
user_id=
"17"
status=
"init"
/>
<t_order_item_2
item_id=
"170201"
order_id=
"1702"
user_id=
"17"
status=
"init"
/>
<t_order_item_3
item_id=
"170300"
order_id=
"1703"
user_id=
"17"
status=
"init"
/>
<t_order_item_3
item_id=
"170301"
order_id=
"1703"
user_id=
"17"
status=
"init"
/>
<t_order_item_4
item_id=
"170400"
order_id=
"1704"
user_id=
"17"
status=
"init"
/>
<t_order_item_4
item_id=
"170401"
order_id=
"1704"
user_id=
"17"
status=
"init"
/>
<t_order_item_5
item_id=
"170500"
order_id=
"1705"
user_id=
"17"
status=
"init"
/>
<t_order_item_5
item_id=
"170501"
order_id=
"1705"
user_id=
"17"
status=
"init"
/>
<t_order_item_6
item_id=
"170600"
order_id=
"1706"
user_id=
"17"
status=
"init"
/>
<t_order_item_6
item_id=
"170601"
order_id=
"1706"
user_id=
"17"
status=
"init"
/>
<t_order_item_7
item_id=
"170700"
order_id=
"1707"
user_id=
"17"
status=
"init"
/>
<t_order_item_7
item_id=
"170701"
order_id=
"1707"
user_id=
"17"
status=
"init"
/>
<t_order_item_8
item_id=
"170800"
order_id=
"1708"
user_id=
"17"
status=
"init"
/>
<t_order_item_8
item_id=
"170801"
order_id=
"1708"
user_id=
"17"
status=
"init"
/>
<t_order_item_9
item_id=
"170900"
order_id=
"1709"
user_id=
"17"
status=
"init"
/>
<t_order_item_9
item_id=
"170901"
order_id=
"1709"
user_id=
"17"
status=
"init"
/>
<t_config
id=
"1"
status=
"init"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_8.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1800"
user_id=
"18"
status=
"init"
/>
<t_order_1
order_id=
"1801"
user_id=
"18"
status=
"init"
/>
<t_order_2
order_id=
"1802"
user_id=
"18"
status=
"init"
/>
<t_order_3
order_id=
"1803"
user_id=
"18"
status=
"init"
/>
<t_order_4
order_id=
"1804"
user_id=
"18"
status=
"init"
/>
<t_order_5
order_id=
"1805"
user_id=
"18"
status=
"init"
/>
<t_order_6
order_id=
"1806"
user_id=
"18"
status=
"init"
/>
<t_order_7
order_id=
"1807"
user_id=
"18"
status=
"init"
/>
<t_order_8
order_id=
"1808"
user_id=
"18"
status=
"init"
/>
<t_order_9
order_id=
"1809"
user_id=
"18"
status=
"init"
/>
<t_order_item_0
item_id=
"180000"
order_id=
"1800"
user_id=
"18"
status=
"init"
/>
<t_order_item_0
item_id=
"180001"
order_id=
"1800"
user_id=
"18"
status=
"init"
/>
<t_order_item_1
item_id=
"180100"
order_id=
"1801"
user_id=
"18"
status=
"init"
/>
<t_order_item_1
item_id=
"180101"
order_id=
"1801"
user_id=
"18"
status=
"init"
/>
<t_order_item_2
item_id=
"180200"
order_id=
"1802"
user_id=
"18"
status=
"init"
/>
<t_order_item_2
item_id=
"180201"
order_id=
"1802"
user_id=
"18"
status=
"init"
/>
<t_order_item_3
item_id=
"180300"
order_id=
"1803"
user_id=
"18"
status=
"init"
/>
<t_order_item_3
item_id=
"180301"
order_id=
"1803"
user_id=
"18"
status=
"init"
/>
<t_order_item_4
item_id=
"180400"
order_id=
"1804"
user_id=
"18"
status=
"init"
/>
<t_order_item_4
item_id=
"180401"
order_id=
"1804"
user_id=
"18"
status=
"init"
/>
<t_order_item_5
item_id=
"180500"
order_id=
"1805"
user_id=
"18"
status=
"init"
/>
<t_order_item_5
item_id=
"180501"
order_id=
"1805"
user_id=
"18"
status=
"init"
/>
<t_order_item_6
item_id=
"180600"
order_id=
"1806"
user_id=
"18"
status=
"init"
/>
<t_order_item_6
item_id=
"180601"
order_id=
"1806"
user_id=
"18"
status=
"init"
/>
<t_order_item_7
item_id=
"180700"
order_id=
"1807"
user_id=
"18"
status=
"init"
/>
<t_order_item_7
item_id=
"180701"
order_id=
"1807"
user_id=
"18"
status=
"init"
/>
<t_order_item_8
item_id=
"180800"
order_id=
"1808"
user_id=
"18"
status=
"init"
/>
<t_order_item_8
item_id=
"180801"
order_id=
"1808"
user_id=
"18"
status=
"init"
/>
<t_order_item_9
item_id=
"180900"
order_id=
"1809"
user_id=
"18"
status=
"init"
/>
<t_order_item_9
item_id=
"180901"
order_id=
"1809"
user_id=
"18"
status=
"init"
/>
<t_config
id=
"1"
status=
"init"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/master_9.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1900"
user_id=
"19"
status=
"init"
/>
<t_order_1
order_id=
"1901"
user_id=
"19"
status=
"init"
/>
<t_order_2
order_id=
"1902"
user_id=
"19"
status=
"init"
/>
<t_order_3
order_id=
"1903"
user_id=
"19"
status=
"init"
/>
<t_order_4
order_id=
"1904"
user_id=
"19"
status=
"init"
/>
<t_order_5
order_id=
"1905"
user_id=
"19"
status=
"init"
/>
<t_order_6
order_id=
"1906"
user_id=
"19"
status=
"init"
/>
<t_order_7
order_id=
"1907"
user_id=
"19"
status=
"init"
/>
<t_order_8
order_id=
"1908"
user_id=
"19"
status=
"init"
/>
<t_order_9
order_id=
"1909"
user_id=
"19"
status=
"init"
/>
<t_order_item_0
item_id=
"190000"
order_id=
"1900"
user_id=
"19"
status=
"init"
/>
<t_order_item_0
item_id=
"190001"
order_id=
"1900"
user_id=
"19"
status=
"init"
/>
<t_order_item_1
item_id=
"190100"
order_id=
"1901"
user_id=
"19"
status=
"init"
/>
<t_order_item_1
item_id=
"190101"
order_id=
"1901"
user_id=
"19"
status=
"init"
/>
<t_order_item_2
item_id=
"190200"
order_id=
"1902"
user_id=
"19"
status=
"init"
/>
<t_order_item_2
item_id=
"190201"
order_id=
"1902"
user_id=
"19"
status=
"init"
/>
<t_order_item_3
item_id=
"190300"
order_id=
"1903"
user_id=
"19"
status=
"init"
/>
<t_order_item_3
item_id=
"190301"
order_id=
"1903"
user_id=
"19"
status=
"init"
/>
<t_order_item_4
item_id=
"190400"
order_id=
"1904"
user_id=
"19"
status=
"init"
/>
<t_order_item_4
item_id=
"190401"
order_id=
"1904"
user_id=
"19"
status=
"init"
/>
<t_order_item_5
item_id=
"190500"
order_id=
"1905"
user_id=
"19"
status=
"init"
/>
<t_order_item_5
item_id=
"190501"
order_id=
"1905"
user_id=
"19"
status=
"init"
/>
<t_order_item_6
item_id=
"190600"
order_id=
"1906"
user_id=
"19"
status=
"init"
/>
<t_order_item_6
item_id=
"190601"
order_id=
"1906"
user_id=
"19"
status=
"init"
/>
<t_order_item_7
item_id=
"190700"
order_id=
"1907"
user_id=
"19"
status=
"init"
/>
<t_order_item_7
item_id=
"190701"
order_id=
"1907"
user_id=
"19"
status=
"init"
/>
<t_order_item_8
item_id=
"190800"
order_id=
"1908"
user_id=
"19"
status=
"init"
/>
<t_order_item_8
item_id=
"190801"
order_id=
"1908"
user_id=
"19"
status=
"init"
/>
<t_order_item_9
item_id=
"190900"
order_id=
"1909"
user_id=
"19"
status=
"init"
/>
<t_order_item_9
item_id=
"190901"
order_id=
"1909"
user_id=
"19"
status=
"init"
/>
<t_config
id=
"1"
status=
"init"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_0.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1000"
user_id=
"10"
status=
"init_slave"
/>
<t_order_1
order_id=
"1001"
user_id=
"10"
status=
"init_slave"
/>
<t_order_2
order_id=
"1002"
user_id=
"10"
status=
"init_slave"
/>
<t_order_3
order_id=
"1003"
user_id=
"10"
status=
"init_slave"
/>
<t_order_4
order_id=
"1004"
user_id=
"10"
status=
"init_slave"
/>
<t_order_5
order_id=
"1005"
user_id=
"10"
status=
"init_slave"
/>
<t_order_6
order_id=
"1006"
user_id=
"10"
status=
"init_slave"
/>
<t_order_7
order_id=
"1007"
user_id=
"10"
status=
"init_slave"
/>
<t_order_8
order_id=
"1008"
user_id=
"10"
status=
"init_slave"
/>
<t_order_9
order_id=
"1009"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"100000"
order_id=
"1000"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"100001"
order_id=
"1000"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"100100"
order_id=
"1001"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"100101"
order_id=
"1001"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"100200"
order_id=
"1002"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"100201"
order_id=
"1002"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"100300"
order_id=
"1003"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"100301"
order_id=
"1003"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"100400"
order_id=
"1004"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"100401"
order_id=
"1004"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"100500"
order_id=
"1005"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"100501"
order_id=
"1005"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"100600"
order_id=
"1006"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"100601"
order_id=
"1006"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"100700"
order_id=
"1007"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"100701"
order_id=
"1007"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"100800"
order_id=
"1008"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"100801"
order_id=
"1008"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"100900"
order_id=
"1009"
user_id=
"10"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"100901"
order_id=
"1009"
user_id=
"10"
status=
"init_slave"
/>
<t_config
id=
"1"
status=
"init_slave"
/>
<t_global
id=
"1"
status=
"global_slave"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_1.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1100"
user_id=
"11"
status=
"init_slave"
/>
<t_order_1
order_id=
"1101"
user_id=
"11"
status=
"init_slave"
/>
<t_order_2
order_id=
"1102"
user_id=
"11"
status=
"init_slave"
/>
<t_order_3
order_id=
"1103"
user_id=
"11"
status=
"init_slave"
/>
<t_order_4
order_id=
"1104"
user_id=
"11"
status=
"init_slave"
/>
<t_order_5
order_id=
"1105"
user_id=
"11"
status=
"init_slave"
/>
<t_order_6
order_id=
"1106"
user_id=
"11"
status=
"init_slave"
/>
<t_order_7
order_id=
"1107"
user_id=
"11"
status=
"init_slave"
/>
<t_order_8
order_id=
"1108"
user_id=
"11"
status=
"init_slave"
/>
<t_order_9
order_id=
"1109"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"110000"
order_id=
"1100"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"110001"
order_id=
"1100"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"110100"
order_id=
"1101"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"110101"
order_id=
"1101"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"110200"
order_id=
"1102"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"110201"
order_id=
"1102"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"110300"
order_id=
"1103"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"110301"
order_id=
"1103"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"110400"
order_id=
"1104"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"110401"
order_id=
"1104"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"110500"
order_id=
"1105"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"110501"
order_id=
"1105"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"110600"
order_id=
"1106"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"110601"
order_id=
"1106"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"110700"
order_id=
"1107"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"110701"
order_id=
"1107"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"110800"
order_id=
"1108"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"110801"
order_id=
"1108"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"110900"
order_id=
"1109"
user_id=
"11"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"110901"
order_id=
"1109"
user_id=
"11"
status=
"init_slave"
/>
<t_config
id=
"1"
status=
"init_slave"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_2.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1200"
user_id=
"12"
status=
"init_slave"
/>
<t_order_1
order_id=
"1201"
user_id=
"12"
status=
"init_slave"
/>
<t_order_2
order_id=
"1202"
user_id=
"12"
status=
"init_slave"
/>
<t_order_3
order_id=
"1203"
user_id=
"12"
status=
"init_slave"
/>
<t_order_4
order_id=
"1204"
user_id=
"12"
status=
"init_slave"
/>
<t_order_5
order_id=
"1205"
user_id=
"12"
status=
"init_slave"
/>
<t_order_6
order_id=
"1206"
user_id=
"12"
status=
"init_slave"
/>
<t_order_7
order_id=
"1207"
user_id=
"12"
status=
"init_slave"
/>
<t_order_8
order_id=
"1208"
user_id=
"12"
status=
"init_slave"
/>
<t_order_9
order_id=
"1209"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"120000"
order_id=
"1200"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"120001"
order_id=
"1200"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"120100"
order_id=
"1201"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"120101"
order_id=
"1201"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"120200"
order_id=
"1202"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"120201"
order_id=
"1202"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"120300"
order_id=
"1203"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"120301"
order_id=
"1203"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"120400"
order_id=
"1204"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"120401"
order_id=
"1204"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"120500"
order_id=
"1205"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"120501"
order_id=
"1205"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"120600"
order_id=
"1206"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"120601"
order_id=
"1206"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"120700"
order_id=
"1207"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"120701"
order_id=
"1207"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"120800"
order_id=
"1208"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"120801"
order_id=
"1208"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"120900"
order_id=
"1209"
user_id=
"12"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"120901"
order_id=
"1209"
user_id=
"12"
status=
"init_slave"
/>
<t_config
id=
"1"
status=
"init_slave"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_3.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1300"
user_id=
"13"
status=
"init_slave"
/>
<t_order_1
order_id=
"1301"
user_id=
"13"
status=
"init_slave"
/>
<t_order_2
order_id=
"1302"
user_id=
"13"
status=
"init_slave"
/>
<t_order_3
order_id=
"1303"
user_id=
"13"
status=
"init_slave"
/>
<t_order_4
order_id=
"1304"
user_id=
"13"
status=
"init_slave"
/>
<t_order_5
order_id=
"1305"
user_id=
"13"
status=
"init_slave"
/>
<t_order_6
order_id=
"1306"
user_id=
"13"
status=
"init_slave"
/>
<t_order_7
order_id=
"1307"
user_id=
"13"
status=
"init_slave"
/>
<t_order_8
order_id=
"1308"
user_id=
"13"
status=
"init_slave"
/>
<t_order_9
order_id=
"1309"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"130000"
order_id=
"1300"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"130001"
order_id=
"1300"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"130100"
order_id=
"1301"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"130101"
order_id=
"1301"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"130200"
order_id=
"1302"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"130201"
order_id=
"1302"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"130300"
order_id=
"1303"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"130301"
order_id=
"1303"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"130400"
order_id=
"1304"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"130401"
order_id=
"1304"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"130500"
order_id=
"1305"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"130501"
order_id=
"1305"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"130600"
order_id=
"1306"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"130601"
order_id=
"1306"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"130700"
order_id=
"1307"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"130701"
order_id=
"1307"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"130800"
order_id=
"1308"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"130801"
order_id=
"1308"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"130900"
order_id=
"1309"
user_id=
"13"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"130901"
order_id=
"1309"
user_id=
"13"
status=
"init_slave"
/>
<t_config
id=
"1"
status=
"init_slave"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_4.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1400"
user_id=
"14"
status=
"init_slave"
/>
<t_order_1
order_id=
"1401"
user_id=
"14"
status=
"init_slave"
/>
<t_order_2
order_id=
"1402"
user_id=
"14"
status=
"init_slave"
/>
<t_order_3
order_id=
"1403"
user_id=
"14"
status=
"init_slave"
/>
<t_order_4
order_id=
"1404"
user_id=
"14"
status=
"init_slave"
/>
<t_order_5
order_id=
"1405"
user_id=
"14"
status=
"init_slave"
/>
<t_order_6
order_id=
"1406"
user_id=
"14"
status=
"init_slave"
/>
<t_order_7
order_id=
"1407"
user_id=
"14"
status=
"init_slave"
/>
<t_order_8
order_id=
"1408"
user_id=
"14"
status=
"init_slave"
/>
<t_order_9
order_id=
"1409"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"140000"
order_id=
"1400"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"140001"
order_id=
"1400"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"140100"
order_id=
"1401"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"140101"
order_id=
"1401"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"140200"
order_id=
"1402"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"140201"
order_id=
"1402"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"140300"
order_id=
"1403"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"140301"
order_id=
"1403"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"140400"
order_id=
"1404"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"140401"
order_id=
"1404"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"140500"
order_id=
"1405"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"140501"
order_id=
"1405"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"140600"
order_id=
"1406"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"140601"
order_id=
"1406"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"140700"
order_id=
"1407"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"140701"
order_id=
"1407"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"140800"
order_id=
"1408"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"140801"
order_id=
"1408"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"140900"
order_id=
"1409"
user_id=
"14"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"140901"
order_id=
"1409"
user_id=
"14"
status=
"init_slave"
/>
<t_config
id=
"1"
status=
"init_slave"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_5.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1500"
user_id=
"15"
status=
"init_slave"
/>
<t_order_1
order_id=
"1501"
user_id=
"15"
status=
"init_slave"
/>
<t_order_2
order_id=
"1502"
user_id=
"15"
status=
"init_slave"
/>
<t_order_3
order_id=
"1503"
user_id=
"15"
status=
"init_slave"
/>
<t_order_4
order_id=
"1504"
user_id=
"15"
status=
"init_slave"
/>
<t_order_5
order_id=
"1505"
user_id=
"15"
status=
"init_slave"
/>
<t_order_6
order_id=
"1506"
user_id=
"15"
status=
"init_slave"
/>
<t_order_7
order_id=
"1507"
user_id=
"15"
status=
"init_slave"
/>
<t_order_8
order_id=
"1508"
user_id=
"15"
status=
"init_slave"
/>
<t_order_9
order_id=
"1509"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"150000"
order_id=
"1500"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"150001"
order_id=
"1500"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"150100"
order_id=
"1501"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"150101"
order_id=
"1501"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"150200"
order_id=
"1502"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"150201"
order_id=
"1502"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"150300"
order_id=
"1503"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"150301"
order_id=
"1503"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"150400"
order_id=
"1504"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"150401"
order_id=
"1504"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"150500"
order_id=
"1505"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"150501"
order_id=
"1505"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"150600"
order_id=
"1506"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"150601"
order_id=
"1506"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"150700"
order_id=
"1507"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"150701"
order_id=
"1507"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"150800"
order_id=
"1508"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"150801"
order_id=
"1508"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"150900"
order_id=
"1509"
user_id=
"15"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"150901"
order_id=
"1509"
user_id=
"15"
status=
"init_slave"
/>
<t_config
id=
"1"
status=
"init_slave"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_6.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1600"
user_id=
"16"
status=
"init_slave"
/>
<t_order_1
order_id=
"1601"
user_id=
"16"
status=
"init_slave"
/>
<t_order_2
order_id=
"1602"
user_id=
"16"
status=
"init_slave"
/>
<t_order_3
order_id=
"1603"
user_id=
"16"
status=
"init_slave"
/>
<t_order_4
order_id=
"1604"
user_id=
"16"
status=
"init_slave"
/>
<t_order_5
order_id=
"1605"
user_id=
"16"
status=
"init_slave"
/>
<t_order_6
order_id=
"1606"
user_id=
"16"
status=
"init_slave"
/>
<t_order_7
order_id=
"1607"
user_id=
"16"
status=
"init_slave"
/>
<t_order_8
order_id=
"1608"
user_id=
"16"
status=
"init_slave"
/>
<t_order_9
order_id=
"1609"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"160000"
order_id=
"1600"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"160001"
order_id=
"1600"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"160100"
order_id=
"1601"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"160101"
order_id=
"1601"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"160200"
order_id=
"1602"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"160201"
order_id=
"1602"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"160300"
order_id=
"1603"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"160301"
order_id=
"1603"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"160400"
order_id=
"1604"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"160401"
order_id=
"1604"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"160500"
order_id=
"1605"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"160501"
order_id=
"1605"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"160600"
order_id=
"1606"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"160601"
order_id=
"1606"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"160700"
order_id=
"1607"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"160701"
order_id=
"1607"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"160800"
order_id=
"1608"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"160801"
order_id=
"1608"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"160900"
order_id=
"1609"
user_id=
"16"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"160901"
order_id=
"1609"
user_id=
"16"
status=
"init_slave"
/>
<t_config
id=
"1"
status=
"init_slave"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_7.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1700"
user_id=
"17"
status=
"init_slave"
/>
<t_order_1
order_id=
"1701"
user_id=
"17"
status=
"init_slave"
/>
<t_order_2
order_id=
"1702"
user_id=
"17"
status=
"init_slave"
/>
<t_order_3
order_id=
"1703"
user_id=
"17"
status=
"init_slave"
/>
<t_order_4
order_id=
"1704"
user_id=
"17"
status=
"init_slave"
/>
<t_order_5
order_id=
"1705"
user_id=
"17"
status=
"init_slave"
/>
<t_order_6
order_id=
"1706"
user_id=
"17"
status=
"init_slave"
/>
<t_order_7
order_id=
"1707"
user_id=
"17"
status=
"init_slave"
/>
<t_order_8
order_id=
"1708"
user_id=
"17"
status=
"init_slave"
/>
<t_order_9
order_id=
"1709"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"170000"
order_id=
"1700"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"170001"
order_id=
"1700"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"170100"
order_id=
"1701"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"170101"
order_id=
"1701"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"170200"
order_id=
"1702"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"170201"
order_id=
"1702"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"170300"
order_id=
"1703"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"170301"
order_id=
"1703"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"170400"
order_id=
"1704"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"170401"
order_id=
"1704"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"170500"
order_id=
"1705"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"170501"
order_id=
"1705"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"170600"
order_id=
"1706"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"170601"
order_id=
"1706"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"170700"
order_id=
"1707"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"170701"
order_id=
"1707"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"170800"
order_id=
"1708"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"170801"
order_id=
"1708"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"170900"
order_id=
"1709"
user_id=
"17"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"170901"
order_id=
"1709"
user_id=
"17"
status=
"init_slave"
/>
<t_config
id=
"1"
status=
"init_slave"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_8.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1800"
user_id=
"18"
status=
"init_slave"
/>
<t_order_1
order_id=
"1801"
user_id=
"18"
status=
"init_slave"
/>
<t_order_2
order_id=
"1802"
user_id=
"18"
status=
"init_slave"
/>
<t_order_3
order_id=
"1803"
user_id=
"18"
status=
"init_slave"
/>
<t_order_4
order_id=
"1804"
user_id=
"18"
status=
"init_slave"
/>
<t_order_5
order_id=
"1805"
user_id=
"18"
status=
"init_slave"
/>
<t_order_6
order_id=
"1806"
user_id=
"18"
status=
"init_slave"
/>
<t_order_7
order_id=
"1807"
user_id=
"18"
status=
"init_slave"
/>
<t_order_8
order_id=
"1808"
user_id=
"18"
status=
"init_slave"
/>
<t_order_9
order_id=
"1809"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"180000"
order_id=
"1800"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"180001"
order_id=
"1800"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"180100"
order_id=
"1801"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"180101"
order_id=
"1801"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"180200"
order_id=
"1802"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"180201"
order_id=
"1802"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"180300"
order_id=
"1803"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"180301"
order_id=
"1803"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"180400"
order_id=
"1804"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"180401"
order_id=
"1804"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"180500"
order_id=
"1805"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"180501"
order_id=
"1805"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"180600"
order_id=
"1806"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"180601"
order_id=
"1806"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"180700"
order_id=
"1807"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"180701"
order_id=
"1807"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"180800"
order_id=
"1808"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"180801"
order_id=
"1808"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"180900"
order_id=
"1809"
user_id=
"18"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"180901"
order_id=
"1809"
user_id=
"18"
status=
"init_slave"
/>
<t_config
id=
"1"
status=
"init_slave"
/>
</dataset>
</init>
\ No newline at end of file
sharding-jdbc-core/src/test/resources/asserts/select/init/masterslave/slave_9.xml
0 → 100644
浏览文件 @
e855932c
<init>
<dataset>
<t_order_0
order_id=
"1900"
user_id=
"19"
status=
"init_slave"
/>
<t_order_1
order_id=
"1901"
user_id=
"19"
status=
"init_slave"
/>
<t_order_2
order_id=
"1902"
user_id=
"19"
status=
"init_slave"
/>
<t_order_3
order_id=
"1903"
user_id=
"19"
status=
"init_slave"
/>
<t_order_4
order_id=
"1904"
user_id=
"19"
status=
"init_slave"
/>
<t_order_5
order_id=
"1905"
user_id=
"19"
status=
"init_slave"
/>
<t_order_6
order_id=
"1906"
user_id=
"19"
status=
"init_slave"
/>
<t_order_7
order_id=
"1907"
user_id=
"19"
status=
"init_slave"
/>
<t_order_8
order_id=
"1908"
user_id=
"19"
status=
"init_slave"
/>
<t_order_9
order_id=
"1909"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"190000"
order_id=
"1900"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_0
item_id=
"190001"
order_id=
"1900"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"190100"
order_id=
"1901"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_1
item_id=
"190101"
order_id=
"1901"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"190200"
order_id=
"1902"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_2
item_id=
"190201"
order_id=
"1902"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"190300"
order_id=
"1903"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_3
item_id=
"190301"
order_id=
"1903"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"190400"
order_id=
"1904"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_4
item_id=
"190401"
order_id=
"1904"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"190500"
order_id=
"1905"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_5
item_id=
"190501"
order_id=
"1905"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"190600"
order_id=
"1906"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_6
item_id=
"190601"
order_id=
"1906"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"190700"
order_id=
"1907"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_7
item_id=
"190701"
order_id=
"1907"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"190800"
order_id=
"1908"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_8
item_id=
"190801"
order_id=
"1908"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"190900"
order_id=
"1909"
user_id=
"19"
status=
"init_slave"
/>
<t_order_item_9
item_id=
"190901"
order_id=
"1909"
user_id=
"19"
status=
"init_slave"
/>
<t_config
id=
"1"
status=
"init_slave"
/>
</dataset>
</init>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录