Optional Plugins
ShardingSphere only loads the implementation of the core SPI by default.
The binary release package ships some ShardingSphere-maintained optional plugins in the opt-lib directory, but they are not added to the classpath by default.
To enable these plugins, copy the corresponding jars to ext-lib first, then add the required third-party dependencies according to the plugin documentation.
Other plugins that are not shipped with the binary package can be retrieved at https://central.sonatype.com/ .
SPI and existing implementation classes of SPI corresponding to all plugins can be retrieved at https://shardingsphere.apache.org/document/current/cn/dev-manual/ .
The following lists all optional plugins in the format of groupId:artifactId.
- Database dialect adaptation
org.apache.shardingsphere:shardingsphere-proxy-dialect-postgresql, dialect and compatibility adaptation for Postgresorg.apache.shardingsphere:shardingsphere-proxy-dialect-mysql, dialect and compatibility adaptation for MySQLorg.apache.shardingsphere:shardingsphere-proxy-dialect-sqlserver, dialect and compatibility adaptation for MS SQL Serverorg.apache.shardingsphere:shardingsphere-proxy-dialect-mariadb, dialect and compatibility adaptation for MariaDBorg.apache.shardingsphere:shardingsphere-proxy-dialect-presto, dialect and compatibility adaptation for Prestoorg.apache.shardingsphere:shardingsphere-proxy-dialect-oracle, dialect and compatibility adaptation for Oracle Database Free and Oracle-XEorg.apache.shardingsphere:shardingsphere-proxy-dialect-firebird, dialect and compatibility adaptation for Firebirdorg.apache.shardingsphere:shardingsphere-proxy-dialect-clickhouse, dialect and compatibility adaptation for Clickhouseorg.apache.shardingsphere:shardingsphere-proxy-dialect-opengauss, dialect and compatibility adaptation for openGaussorg.apache.shardingsphere:shardingsphere-proxy-dialect-doris, dialect and compatibility adaptation for Doris FEorg.apache.shardingsphere:shardingsphere-proxy-dialect-hive, dialect and compatibility adaptation for HiveServer2
- Data Source Connection Pool
org.apache.shardingsphere:shardingsphere-infra-data-source-pool-hikari, provides connection pool creation and property adaptation implementation fordataSources.<data_source_name>.dataSourceClassName=com.zaxxer.hikari.HikariDataSource
- Permissions and authentication implementation
org.apache.shardingsphere:shardingsphere-authority-simple, provides permission and authentication implementation withauthority.privilege.type=ALL_PERMITTEDorg.apache.shardingsphere:shardingsphere-authority-database, provides permission and authentication implementation withauthority.privilege.type=DATABASE_PERMITTED
- Distributed transactions
org.apache.shardingsphere:shardingsphere-transaction-xa-atomikos, provides distributed transaction implementation fortransaction.providerType=Atomikosorg.apache.shardingsphere:shardingsphere-transaction-xa-narayana, provides distributed transaction implementation fortransaction.providerType=Narayanaorg.apache.shardingsphere:shardingsphere-transaction-base-seata-at, provides distributed transaction implementation fortransaction.providerType=Seata
- SQL Translation
org.apache.shardingsphere:shardingsphere-sql-translator-native-provider, provides SQL translation implementation withsqlTranslator.type=Native
- Configuration and metadata persistence repository
org.apache.shardingsphere:shardingsphere-standalone-mode-repository-memory, provides configuration and metadata persistence repository implementation formode.repository.type=Memoryorg.apache.shardingsphere:shardingsphere-standalone-mode-repository-jdbc, provides configuration and metadata persistence repository implementation formode.repository.type=JDBCorg.apache.shardingsphere:shardingsphere-cluster-mode-repository-zookeeper, provides configuration and metadata persistence repository implementation formode.repository.type=ZooKeeperorg.apache.shardingsphere:shardingsphere-cluster-mode-repository-etcd, provides configuration and metadata persistence repository implementation formode.repository.type=etcd
- Row Value Expressions
org.apache.shardingsphere:shardingsphere-infra-expr-espresso, provides row value expression implementation for<ESPRESSO>
- DistSQL
org.apache.shardingsphere:shardingsphere-sharding-distsql-handler, provides execution capabilities for DistSQL related to!SHARDINGorg.apache.shardingsphere:shardingsphere-broadcast-distsql-handler, provides execution capabilities for DistSQL related to!BROADCASTorg.apache.shardingsphere:shardingsphere-readwrite-splitting-distsql-handler, provides execution capabilities for DistSQL related to!READWRITE_SPLITTINGorg.apache.shardingsphere:shardingsphere-shadow-distsql-handler, provides execution capabilities for DistSQL related to!SHADOWorg.apache.shardingsphere:shardingsphere-encrypt-distsql-handler, provides execution capabilities for DistSQL related to!ENCRYPTorg.apache.shardingsphere:shardingsphere-mask-distsql-handler, provides execution capabilities for DistSQL related to!MASK
- Enhancement of the feature core
org.apache.shardingsphere:shardingsphere-sharding-mysql, provides MySQL-oriented enhancements and adaptations for the core functionality ofshardingsphere-sharding-coreorg.apache.shardingsphere:shardingsphere-data-pipeline-feature-sharding, provides integration capabilities for sharding scenarios in DistSQL related toMIGRATION
- Time service
org.apache.shardingsphere:shardingsphere-database-time-service, provides a unified timestamp by connecting to the database and executing an SQL query to retrieve the current time, which is used by routing logic such as sharding
In addition to the above optional plugins, ShardingSphere community developers have contributed a number of plugin implementations. These plugins can be found in ShardingSphere Plugins repository. Plugins in ShardingSphere Plugin repository would remain the same release plan with ShardingSphere, you can build plugin jar by yourself, and install into ShardingSphere.