116 lines
2.7 KiB
JSON
116 lines
2.7 KiB
JSON
{
|
|
"meta": {
|
|
"$_POST": [
|
|
{
|
|
"type": "text",
|
|
"name": "db_fullName"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"name": "db_licenseNumber"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"name": "db_stateIssue"
|
|
},
|
|
{
|
|
"type": "number",
|
|
"name": "db_employeeID"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"name": "owner"
|
|
}
|
|
]
|
|
},
|
|
"exec": {
|
|
"steps": {
|
|
"name": "insert",
|
|
"module": "dbupdater",
|
|
"action": "insert",
|
|
"options": {
|
|
"connection": "DB",
|
|
"sql": {
|
|
"type": "insert",
|
|
"values": [
|
|
{
|
|
"table": "da",
|
|
"column": "db_fullName",
|
|
"type": "text",
|
|
"value": "{{$_POST.db_fullName}}"
|
|
},
|
|
{
|
|
"table": "da",
|
|
"column": "db_licenseNumber",
|
|
"type": "text",
|
|
"value": "{{$_POST.db_licenseNumber}}"
|
|
},
|
|
{
|
|
"table": "da",
|
|
"column": "db_stateIssue",
|
|
"type": "text",
|
|
"value": "{{$_POST.db_stateIssue}}"
|
|
},
|
|
{
|
|
"table": "da",
|
|
"column": "db_employeeID",
|
|
"type": "number",
|
|
"value": "{{$_POST.db_employeeID}}"
|
|
},
|
|
{
|
|
"table": "da",
|
|
"column": "owner",
|
|
"type": "text",
|
|
"value": "{{$_POST.owner}}"
|
|
}
|
|
],
|
|
"table": "da",
|
|
"returning": "ID",
|
|
"query": "insert into `da` (`db_employeeID`, `db_fullName`, `db_licenseNumber`, `db_stateIssue`, `owner`) values (?, ?, ?, ?, ?) returning `ID`",
|
|
"params": [
|
|
{
|
|
"name": ":P1",
|
|
"type": "expression",
|
|
"value": "{{$_POST.db_fullName}}",
|
|
"test": ""
|
|
},
|
|
{
|
|
"name": ":P2",
|
|
"type": "expression",
|
|
"value": "{{$_POST.db_licenseNumber}}",
|
|
"test": ""
|
|
},
|
|
{
|
|
"name": ":P3",
|
|
"type": "expression",
|
|
"value": "{{$_POST.db_stateIssue}}",
|
|
"test": ""
|
|
},
|
|
{
|
|
"name": ":P4",
|
|
"type": "expression",
|
|
"value": "{{$_POST.db_employeeID}}",
|
|
"test": ""
|
|
},
|
|
{
|
|
"name": ":P5",
|
|
"type": "expression",
|
|
"value": "{{$_POST.owner}}",
|
|
"test": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"meta": [
|
|
{
|
|
"name": "identity",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "affected",
|
|
"type": "number"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |