Apache ShardingSphere · JSON Structure

Apache Shardingsphere Sharding Table Structure

Sharding configuration for a logical table

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

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

Properties

logicTable actualDataNodes databaseStrategy tableStrategy

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-table-structure.json",
  "description": "Sharding configuration for a logical table",
  "type": "object",
  "properties": {
    "logicTable": {
      "type": "string",
      "description": "Logical table name"
    },
    "actualDataNodes": {
      "type": "string",
      "description": "Actual data nodes expression (e.g. ds${0..1}.orders${0..3})"
    },
    "databaseStrategy": {
      "$ref": "#/components/schemas/ShardingStrategy"
    },
    "tableStrategy": {
      "$ref": "#/components/schemas/ShardingStrategy"
    }
  },
  "name": "ShardingTable"
}