DataSource

Physical data source configuration

DatabaseDistributed SQLRead-Write SplittingShardingSQLApacheOpen Source

Properties

Name Type Description
name string Data source name
url string JDBC connection URL
username string Database username
maxPoolSize integer Maximum connection pool size
minPoolSize integer Minimum connection pool size
type string Connection pool type (HikariCP, etc.)
View JSON Schema on GitHub

JSON Schema

apache-shardingsphere-data-source-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shardingsphere/refs/heads/main/json-schema/apache-shardingsphere-data-source-schema.json",
  "title": "DataSource",
  "description": "Physical data source configuration",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Data source name"
    },
    "url": {
      "type": "string",
      "description": "JDBC connection URL"
    },
    "username": {
      "type": "string",
      "description": "Database username"
    },
    "maxPoolSize": {
      "type": "integer",
      "description": "Maximum connection pool size"
    },
    "minPoolSize": {
      "type": "integer",
      "description": "Minimum connection pool size"
    },
    "type": {
      "type": "string",
      "description": "Connection pool type (HikariCP, etc.)"
    }
  }
}