分库分表实现原理-sharding-jdbc
2020-07-31 14:25:45 0 举报
shardingsphere分库分表原理
作者其他创作
大纲/内容
transactionType
clearPrevious();
fill()
routeDataSources
RoutingEngineFactory
执行查询
java.sql.ResultSet
StatementRoutingEngine.route()
数据源内容
shard
SQL解析
XA LOCAL BASE 事务与当前线程绑定
executeRoute
executeQuery()
SQLParseKernel.pase()
ShardingConnection
SQL路由
extract()
route
new TableRule
runtimeContext
日志
MergeEngineFactory.newInstance
ShardingStrategy.doSharding
SqlRouteResult
parse()
initStatementExecutor();
SQL语法树
SQLParseEngine.pase()
BaseShardingEngine
ShardingRuntimeContext
ShardingDataSource
shard(sql);
routeTables
showSQL
创建数据源&conn&stat
ShardingRule
ShardingStatement
dataSourceMap
statementExecutor.executeQuery()
show RuleConfiguration
routingEngine.route()
0 条评论
下一页