QueryFromExpression 查询 From 子句
1. 结构声明
- TS Declaration
- JSON Schema
class QueryFromExpression extends LogicItem {
entityNamespace: string;
entityName: string;
asName: string;
joinParts: Array<QueryJoinExpression>;
}
{
"type": "object",
"properties": {
"label": {
"type": "string"
},
"description": {
"type": "string"
},
"folded": {
"type": "boolean"
},
"offsetX": {
"type": "number"
},
"offsetY": {
"type": "number"
},
"entityNamespace": {
"type": "string"
},
"entityName": {
"type": "string"
},
"asName": {
"type": "string"
},
"joinParts": {
"type": "array",
"items": {
"$ref": "#/definitions/QueryJoinExpression"
}
}
},
"required": [
"entityNamespace",
"entityName",
"asName",
"joinParts"
],
"additionalProperties": false
}
2. 节点示例
(1) 示例
AST 如下:
- JSON
- YAML
{
"concept": "QueryFromExpression",
"entityNamespace": "app.dataSources.defaultDS.entities",
"entityName": "OrderProduct",
"asName": "",
"joinParts": []
}
concept: QueryFromExpression
entityNamespace: app.dataSources.defaultDS.entities
entityName: OrderProduct
asName: ""
joinParts: []