Transactional 事务
1. 结构声明
- TS Declaration
- JSON Schema
class Transactional extends BaseNode {
enabled: boolean;
propagation?: 'REQUIRED' | 'REQUIRES_NEW' | 'SUPPORTS' | 'NOT_SUPPORTED' | 'MANDATORY' | 'NEVER';
isolation?: 'DEFAULT' | 'READ_UNCOMMITTED' | 'READ_COMMITTED' | 'REPEATABLE_READ' | 'SERIALIZABLE';
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"enabled": {
"type": "boolean"
},
"propagation": {
"type": "string",
"enum": [
"REQUIRED",
"REQUIRES_NEW",
"SUPPORTS",
"NOT_SUPPORTED",
"MANDATORY",
"NEVER"
]
},
"isolation": {
"type": "string",
"enum": [
"DEFAULT",
"READ_UNCOMMITTED",
"READ_COMMITTED",
"REPEATABLE_READ",
"SERIALIZABLE"
]
}
},
"required": [
"enabled"
],
"additionalProperties": false
}
2. 节点示例
(1) 示例
AST 如下:
- JSON
- YAML
{
"concept": "Transactional",
"enabled": true
}
concept: Transactional
enabled: true
对应的代码如下:
- 文本化 NASL
[编译方法未实现]