110 lines
2.5 KiB
JSON
110 lines
2.5 KiB
JSON
{
|
|
"meta": {
|
|
"$_GET": [
|
|
{
|
|
"type": "text",
|
|
"name": "sort"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"name": "dir"
|
|
}
|
|
],
|
|
"$_POST": [
|
|
{
|
|
"type": "text",
|
|
"name": "Owner"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"name": "numSection"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"name": "numSectionValue"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"name": "remove"
|
|
}
|
|
]
|
|
},
|
|
"exec": {
|
|
"steps": {
|
|
"name": "insert",
|
|
"module": "dbupdater",
|
|
"action": "insert",
|
|
"options": {
|
|
"connection": "DB",
|
|
"sql": {
|
|
"type": "insert",
|
|
"values": [
|
|
{
|
|
"table": "ertPointData",
|
|
"column": "Owner",
|
|
"type": "text",
|
|
"value": "{{$_POST.Owner}}"
|
|
},
|
|
{
|
|
"table": "ertPointData",
|
|
"column": "numSection",
|
|
"type": "text",
|
|
"value": "{{$_POST.numSection}}"
|
|
},
|
|
{
|
|
"table": "ertPointData",
|
|
"column": "numSectionValue",
|
|
"type": "text",
|
|
"value": "{{$_POST.numSectionValue}}"
|
|
},
|
|
{
|
|
"table": "ertPointData",
|
|
"column": "remove",
|
|
"type": "text",
|
|
"value": "{{$_POST.remove}}"
|
|
}
|
|
],
|
|
"table": "ertPointData",
|
|
"returning": "ID",
|
|
"query": "insert into `ertPointData` (`Owner`, `numSection`, `numSectionValue`, `remove`) values (?, ?, ?, ?) returning `ID`",
|
|
"params": [
|
|
{
|
|
"name": ":P1",
|
|
"type": "expression",
|
|
"value": "{{$_POST.Owner}}",
|
|
"test": ""
|
|
},
|
|
{
|
|
"name": ":P2",
|
|
"type": "expression",
|
|
"value": "{{$_POST.numSection}}",
|
|
"test": ""
|
|
},
|
|
{
|
|
"name": ":P3",
|
|
"type": "expression",
|
|
"value": "{{$_POST.numSectionValue}}",
|
|
"test": ""
|
|
},
|
|
{
|
|
"name": ":P4",
|
|
"type": "expression",
|
|
"value": "{{$_POST.remove}}",
|
|
"test": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"meta": [
|
|
{
|
|
"name": "identity",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "affected",
|
|
"type": "number"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |