DockerERTFF/app/api/myInsertMetaUpsert.json

51 lines
1.1 KiB
JSON

{
"meta": {
"$_GET": [
{
"type": "number",
"name": "da_id"
},
{
"type": "object",
"name": "obj_datastore"
},
{
"type": "number",
"name": "id"
}
]
},
"exec": {
"steps": {
"name": "MyUpsert",
"module": "dbupdater",
"action": "custom",
"options": {
"connection": "MyDB",
"sql": {
"query": "INSERT INTO `da_meta` (`id`, `da_id`, `obj_dataStore`) \nVALUES (?, ?, ?) \nON DUPLICATE KEY UPDATE \n`obj_dataStore` = VALUES(`obj_dataStore`), \n`da_id` = VALUES(`da_id`);\n\n",
"params": [
{
"name": ":P1",
"value": "{{$_GET.id}}",
"recid": 1
},
{
"name": ":P2",
"value": "{{$_GET.da_id}}",
"recid": 2
},
{
"name": ":P3",
"value": "{{$_GET.obj_datastore}}",
"recid": 3
}
]
}
},
"output": true,
"meta": [],
"outputType": "array"
}
}
}