土豆兄弟
3e646a2f6a
对分表分库框架进行整理其官网代码示例,构建其快速集成和使用的技术栈 |
2 years ago | |
---|---|---|
.. | ||
doc | 2 years ago | |
docker | 2 years ago | |
example-core | 2 years ago | |
other-example | 2 years ago | |
shardingsphere-example-generator | 2 years ago | |
shardingsphere-jdbc-example/mixed-feature-example | 2 years ago | |
.flattened-pom.xml | 2 years ago | |
.gitignore | 2 years ago | |
README.md | 2 years ago | |
pom.xml | 2 years ago |
README.md
参考文档进行配置学习
1. 具体概述
Example for 2.x or 3.x or 4.x please see tags in https://github.com/apache/shardingsphere-example/tree/${tag}
download source code
git clone https://github.com/apache/shardingsphere.git
compile source code
cd shardingsphere mvn clean install -Prelease
2. 项目结构
shardingsphere-example ├── example-core 示例核心,主要是讲如何整合 │ ├── config-utility 配置工具 │ ├── example-api │ ├── example-raw-jdbc │ ├── example-spring-jpa │ └── example-spring-mybatis ├── other-example 其他示例 │ └── shardingsphere-parser-example ├── shardingsphere-jdbc-example │ ├── mixed-feature-example │ │ └── sharding-readwrite-splitting-example │ │ │ ├── sharding-readwrite-splitting-raw-jdbc-example │ │ │ ├── sharding-readwrite-splitting-spring-boot-jpa-example │ │ │ ├── sharding-readwrite-splitting-spring-boot-mybatis-example │ │ │ ├── sharding-readwrite-splitting-spring-namespace-jpa-example │ │ │ └── sharding-readwrite-splitting-spring-namespace-mybatis-example │ └── single-feature-example │ │ ├── cluster-mode-example 集群模式示例 │ │ │ ├── cluster-mode-raw-jdbc-example │ │ │ ├── cluster-mode-spring-boot-mybatis-example │ │ │ └── cluster-mode-spring-namespace-mybatis-example │ │ ├── encrypt-example 加解密示例 │ │ │ ├── encrypt-raw-jdbc-example │ │ │ ├── encrypt-spring-boot-mybatis-example │ │ │ └── encrypt-spring-namespace-mybatis-example │ │ ├── extension-example 扩展示例 │ │ │ └── custom-sharding-algortihm-example │ │ │ │ ├── class-based-sharding-algorithm-example │ │ │ │ └── spi-based-sharding-algorithm-example │ │ ├── readwrite-splitting-example 读写分离示例 │ │ │ ├── readwrite-splitting-raw-jdbc-example │ │ │ ├── readwrite-splitting-spring-boot-jpa-example │ │ │ ├── readwrite-splitting-spring-boot-mybatis-example │ │ │ ├── readwrite-splitting-spring-namespace-jpa-example │ │ │ └── readwrite-splitting-spring-namespace-mybatis-example │ │ ├── shadow-example │ │ │ ├── shadow-raw-jdbc-example │ │ │ ├── shadow-spring-boot-mybatis-example │ │ │ └── shadow-spring-namespace-mybatis-example │ │ ├── sharding-example 分片示例 │ │ │ ├── sharding-raw-jdbc-example │ │ │ ├── sharding-spring-boot-jpa-example │ │ │ ├── sharding-spring-boot-mybatis-example │ │ │ ├── sharding-spring-namespace-jpa-example │ │ │ └── sharding-spring-namespace-mybatis-example │ │ └── transaction-example 事物示例 │ │ │ ├── transaction-2pc-xa-atomikos-raw-jdbc-example │ │ │ ├── transaction-2pc-xa-bitronix-raw-jdbc-example │ │ │ ├── transaction-2pc-xa-narayana-raw-jdbc-example │ │ │ ├── transaction-2pc-xa-spring-boot-example │ │ │ ├── transaction-2pc-xa-spring-namespace-example │ │ │ ├── transaction-base-seata-raw-jdbc-example │ │ │ └── transaction-base-seata-spring-boot-example ├── shardingsphere-proxy-example │ ├── shardingsphere-proxy-boot-mybatis-example │ ├── shardingsphere-proxy-distsql-example │ └── shardingsphere-proxy-hint-example ├── shardingsphere-sample │ ├── shardingsphere-example-generator └── src/resources └── manual_schema.sql
3. 可用示例
示例 | 描述 |
---|---|
sharding | 展示如何在 ShardingSphere-JDBC 中使用 table sharding\database sharding |
readwrite-splitting | 展示如何使用 ShardingSphere-JDBC readwrite-splitting |
springboot jpa | 展示如何将 SpringBoot JPA 与 ShardingSphere-JDBC 结合使用 |
springboot mybatis | 展示如何使用 SpringBoot Mybatis 与 ShardingSphere-JDBC |
governance | 展示如何使用 ShardingSphere-JDBC 治理 |
transaction | 展示如何使用 ShardingSphere-JDBC 事务 |
hint | 展示如何使用 ShardingSphere-JDBC 提示 |
encryption | 展示如何使用 ShardingSphere-JDBC 加密 |
DistSQL | 展示如何在 ShardingSphere-Proxy 中使用 DistSQL |
APM(Pending) | 展示如何在 ShardingSphere 中使用 APM |
proxy(Pending) | 展示如何使用 ShardingSphere-Proxy |
docker | 展示如何使用 docker 设置 ShardingSphere 的环境 |