Apache ShardingSphere · JSON Structure

Apache Shardingsphere Sharding Rule Structure

Sharding rule for a logical table

Type: object Properties: 3
DatabaseDistributed SQLRead-Write SplittingShardingSQLApacheOpen Source

ShardingRule is a JSON Structure definition published by Apache ShardingSphere, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name tables bindingTables

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-sharding-rule-structure.json",
  "description": "Sharding rule for a logical table",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Rule name"
    },
    "tables": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ShardingTable"
      }
    },
    "bindingTables": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    }
  },
  "name": "ShardingRule"
}