SqlQueryComponent SQL 查询
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface SqlQueryComponent {
"concept": "SqlQueryComponent", // 产品概念
"label": string, // SQL 查询标题
"code": string, // SQL 查询
"typeAnnotation": TypeAnnotation, // 相关类型
"dataSource": string, // 数据源
"ideVersion": string, // 查询组件的局部版本,值为上线时的 IDE 版本
}
class SqlQueryComponentTreeNode {
ConceptEnum concept; // 产品概念
String label; // SQL 查询标题
String code; // SQL 查询
TypeAnnotationTreeNode typeAnnotation; // 相关类型
String dataSource; // 数据源
String ideVersion; // 查询组件的局部版本,值为上线时的 IDE 版本
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/SqlQueryComponent",
"definitions": {
"SqlQueryComponent": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "SqlQueryComponent"
},
"label": {
"type": "string"
},
"code": {
"type": "string"
},
"typeAnnotation": {
"$ref": "#/definitions/TypeAnnotation"
},
"dataSource": {
"type": "string"
},
"ideVersion": {
"type": "string"
}
},
"required": [
"concept",
"label",
"code",
"typeAnnotation",
"dataSource",
"ideVersion"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "SqlQueryComponent",
"label": "SQL 查询",
"code": null,
"typeAnnotation": null,
"dataSource": null,
"ideVersion": null
}
concept: SqlQueryComponent
label: SQL 查询
code: null
typeAnnotation: null
dataSource: null
ideVersion: null