Apache ShardingSphere · JSON Structure

Apache Shardingsphere Data Source Request Structure

Request to add a data source

Type: object Properties: 5 Required: 4
DatabaseDistributed SQLRead-Write SplittingShardingSQLApacheOpen Source

DataSourceRequest is a JSON Structure definition published by Apache ShardingSphere, describing 5 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name url username password maxPoolSize

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shardingsphere/refs/heads/main/json-structure/apache-shardingsphere-data-source-request-structure.json",
  "description": "Request to add a data source",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Data source name"
    },
    "url": {
      "type": "string",
      "description": "JDBC connection URL"
    },
    "username": {
      "type": "string"
    },
    "password": {
      "type": "string"
    },
    "maxPoolSize": {
      "type": "int32"
    }
  },
  "required": [
    "name",
    "url",
    "username",
    "password"
  ],
  "name": "DataSourceRequest"
}