I have a payload similar to the below sample
{"timezone": null,
"recurrence": null,
"event_id": "55bfe76n3",
"attendeesEmail": [
{
"email": "abc@xyz.com",
"responseStatus": "needsAction"
},
{
"email": "efg@xyz.com",
"responseStatus": "needsAction"
}]
}
I would want to insert the payload into two tables, table A with values in attendeesEmail object and table B having remaining key values. I am looking to have a single db connector to do this operation.
Things I have tried:
Using bulk operation to insert but unable to do multiple inserts in a single query inside 1 dbConnector
BEGIN;
INSERT INTO A (event_id) values ('55bfe76n3');
INSERT INTO B (email) values ('abc@xyz.com');
COMMIT;
This throws an error saying: "Query type must be one of '[INSERT, STORE_PROCEDURE_CALL]' but was 'DDL' (java.lang.IllegalArgumentException)."