Registry / database / sharding-jdbc-core

sharding-jdbc-core

JSON →
library4.1.1javamavenunverified

Core module of Apache ShardingSphere, providing distributed database middleware for sharding and scaling.

<dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-core</artifactId> <version>4.1.1</version> </dependency>
INSTALL
IMPORT
SIG · SHARDING-JDBC-CORE
S
sharding-jdbc-core
databasejavav4.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ShardingDataSourceFactory
org.apache.shardingsphere.shardingjdbc.api.ShardingDataSourceFactory

Creates a sharding data source from a YAML configuration.

import org.apache.shardingsphere.shardingjdbc.api.ShardingDataSourceFactory; import javax.sql.DataSource; import java.util.Properties; public class Quickstart { public static void main(String[] args) throws Exception { DataSource dataSource = ShardingDataSourceFactory.createDataSource( "sharding-config.yaml"); System.out.println(dataSource.getConnection()); } }
Debug
Known issues
breakingVersion 4.x is outdated; consider upgrading to 5.x for new features and fixes.
fix
Use org.apache.shardingsphere:shardingsphere-jdbc-core:5.x instead.
affects: 4.x
Upgrade
Version history
4.1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
32
Resources
sharding-jdbc-core — mvn dependency:get sharding-jdbc-core · libregistry