DatabaseType

Fully-qualified class name

org.apache.shardingsphere.infra.database.type.DatabaseType

Definition

Supported database types definition

Implementation classes

Configuration TypeDescriptionFully-qualified class name
SQL92SQL92 database typeorg.apache.shardingsphere.infra.database.type.dialect.SQL92DatabaseType
MySQLMySQL databaseorg.apache.shardingsphere.infra.database.type.dialect.MySQLDatabaseType
MariaDBMariaDB databaseorg.apache.shardingsphere.infra.database.type.dialect.MariaDBDatabaseType
PostgreSQLPostgreSQL databaseorg.apache.shardingsphere.infra.database.type.dialect.PostgreSQLDatabaseType
OracleOracle databaseorg.apache.shardingsphere.infra.database.type.dialect.OracleDatabaseType
SQLServerSQLServer databaseorg.apache.shardingsphere.infra.database.type.dialect.SQLServerDatabaseType
H2H2 databaseorg.apache.shardingsphere.infra.database.type.dialect.H2DatabaseType
openGaussOpenGauss databaseorg.apache.shardingsphere.infra.database.type.dialect.OpenGaussDatabaseType

DialectSchemaMetaDataLoader

Fully-qualified class name

org.apache.shardingsphere.infra.metadata.database.schema.loader.metadata.DialectSchemaMetaDataLoader

Definition

Use SQL dialect to load meta data rapidly

Implementation classes

Configuration TypeDescriptionFully-qualified class name
MySQLUse MySQL dialect to load meta dataorg.apache.shardingsphere.infra.metadata.database.schema.loader.dialect.MySQLSchemaMetaDataLoader
OracleUse Oracle dialect to load meta dataorg.apache.shardingsphere.infra.metadata.database.schema.loader.dialect.OracleSchemaMetaDataLoader
PostgreSQLUse PostgreSQL dialect to load meta dataorg.apache.shardingsphere.infra.metadata.database.schema.loader.dialect.PostgreSQLSchemaMetaDataLoader
SQLServerUse SQLServer dialect to load meta dataorg.apache.shardingsphere.infra.metadata.database.schema.loader.dialect.SQLServerSchemaMetaDataLoader
H2Use H2 dialect to load meta dataorg.apache.shardingsphere.infra.metadata.database.schema.loader.dialect.H2SchemaMetaDataLoader
openGaussUse OpenGauss dialect to load meta dataorg.apache.shardingsphere.infra.metadata.database.schema.loader.dialect.OpenGaussSchemaMetaDataLoader

DataSourcePoolMetaData

Fully-qualified class name

org.apache.shardingsphere.infra.datasource.pool.metadata.DataSourcePoolMetaData

Definition

Data source connection pool metadata

Implementation classes

Configuration TypeDescriptionFully-qualified class name
org.apache.commons.dbcp.BasicDataSource, org.apache.tomcat.dbcp.dbcp2.BasicDataSourceDBCP data source pool meta dataorg.apache.shardingsphere.infra.datasource.pool.metadata.type.dbcp.DBCPDataSourcePoolMetaData
com.zaxxer.hikari.HikariDataSourceHikari data source pool meta dataorg.apache.shardingsphere.infra.datasource.pool.metadata.type.hikari.HikariDataSourcePoolMetaData
com.mchange.v2.c3p0.ComboPooledDataSourceC3P0 data source pool meta dataorg.apache.shardingsphere.infra.datasource.pool.metadata.type.c3p0.C3P0DataSourcePoolMetaData

DataSourcePoolActiveDetector

Fully-qualified class name

org.apache.shardingsphere.infra.datasource.pool.destroyer.detector.DataSourcePoolActiveDetector

Definition

Data source connection pool active detector

Implementation classes

Configuration TypeDescriptionFully-qualified class name
DefaultDefault data source pool active detectororg.apache.shardingsphere.infra.datasource.pool.destroyer.detector.type.DefaultDataSourcePoolActiveDetector
com.zaxxer.hikari.HikariDataSourceHikari data source pool active detectororg.apache.shardingsphere.infra.datasource.pool.destroyer.detector.type.HikariDataSourcePoolActiveDetector

ShardingSphereDriverURLProvider

Fully-qualified class name

org.apache.shardingsphere.driver.jdbc.core.driver.ShardingSphereDriverURLProvider

Definition

ShardingSphere driver URL provider

Implementation classes

Configuration TypeDescriptionFully-qualified class name
jdbc:shardingsphere:classpath:The classpath driver URL providerorg.apache.shardingsphere.driver.jdbc.core.driver.spi.ClasspathDriverURLProvider
jdbc:shardingsphere:absolutepath:The absolute path driver URL providerorg.apache.shardingsphere.driver.jdbc.core.driver.spi.AbsolutePathDriverURLProvider
jdbc:shardingsphere:apollo:The apollo driver URL providerorg.apache.shardingsphere.driver.jdbc.core.driver.spi.ApolloDriverURLProvider

Notice

When you use the Apollo driver url provider, you need to add the corresponding apollo pom dependency, currently available at version 1.9.0, as follows:

  1. <dependency>
  2. <groupId>com.ctrip.framework.apollo</groupId>
  3. <artifactId>apollo-client</artifactId>
  4. <version>${apollo.version}</version>
  5. </dependency>