I can do the INSERT just fine, eg
INSERT INTO EVENTS (EVENTID,OPID,DATETIME,EVENTTYPE,BRANCHID,DEPTID) VALUES (29,9,'2021-05-22 19:48:01',1,1,1);
but what I'm trying to do now is somehow make the DATETIME (for example) dynamic, so I can change it based on an upstream node.
Does anyone know how I'd use a placeholder in the TOPIC or maybe a function or some other node to insert changing values into the TOPIC?
I'm familiar with how to do all this for payloads, but not topics
thanks!
But I guess the question is the same whether it's an insert or an update. At the moment I've fudged it by doing an inject which feeds into a single change node which feeds into two function nodes, but I think the function nodes ought to be combined