DockerERTFF/app/api/myInsertMeta.json

70 lines
1.5 KiB
JSON

{
"meta": {
"$_GET": [
{
"type": "object",
"name": "obj_datastore"
},
{
"type": "text",
"name": "da_id"
}
]
},
"exec": {
"steps": {
"name": "insert",
"module": "dbupdater",
"action": "insert",
"options": {
"connection": "MyDB",
"sql": {
"type": "insert",
"values": [
{
"table": "da_meta",
"column": "da_id",
"type": "number",
"value": "{{$_GET.da_id}}",
"recid": 1
},
{
"table": "da_meta",
"column": "obj_dataStore",
"type": "text",
"value": "{{$_GET.obj_datastore}}",
"recid": 2
}
],
"table": "da_meta",
"returning": "id",
"query": "insert into `da_meta` (`da_id`, `obj_dataStore`) values (?, ?)",
"params": [
{
"name": ":P1",
"type": "expression",
"value": "{{$_GET.da_id}}",
"test": ""
},
{
"name": ":P2",
"type": "expression",
"value": "{{$_GET.obj_datastore}}",
"test": ""
}
]
}
},
"meta": [
{
"name": "identity",
"type": "text"
},
{
"name": "affected",
"type": "number"
}
]
}
}
}