Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Which is jdbc standard does sharding-jdbc support?


Asked by Nathanael Parra on Dec 06, 2021 FAQ



Support any kind of JDBC standard database: MySQL, Oracle, SQLServer, PostgreSQL and any SQL92 followed databases. Sharding-JDBC is suitable for java application. The yellow part in the diagram indicates the API entrance of Sharding-JDBC, provided in factory method.
Next,
Starting from Oracle Database 12 c Release 2 (12.2.0.1), Oracle JDBC supports database sharding. The JDBC driver recognizes the specified sharding key and super sharding key and connects to the relevant shard that contains the data.
Besides, Support any third-party database connection pool, such as DBCP, C3P0, BoneCP, Druid, HikariCP. Support any kind of JDBC standard database: MySQL, Oracle, SQLServer, PostgreSQL and any SQL92 followed databases. Sharding-JDBC is suitable for java application.
One may also ask,
There are two kinds of factories, ShardingDataSourceFactory and MasterSlaveDataSourceFactory for now. ShardingDataSourceFactory is used to create JDBC drivers of sharding databases with sharding tables or sharding databases with sharding tables+read-write split; MasterSlaveDataSourceFactory is used to create JDBC drivers of read-write split.
In fact,
As the first product and the predecessor of ShardingSphere, Sharding-JDBC defines itself as a lightweight Java framework that provides extra service at Java JDBC layer. With the client end connecting directly to the database, it provides service in the form of jar and requires no extra deployment and dependence.