Apama 10.15.0 | Connecting Apama Applications to External Components | Standard IAF Plug-ins | The Database Connector IAF Adapter (ADBC) | The ADBC Event application programming interface | Running commands
 
Running commands
To execute database commands, such as creating a table or SQL operations such as Delete and Update, use the Connection event's runCommand action.
*To run a command
1. Call the runCommand action of the Connection event (for the open database) with the a string containing the SQL command to execute and the name of the callback action.
2. Create a handler action for the runCommand() callback action.
The definitions for the two forms of the runCommand are:
action runCommand(
  string commandString,
string token,
  action <Connection, string, string> callback)
and:
action runCommandFull(
  string commandString,
string token,
  dictionary<string, string> extraParams,
  action<Connection, string, string> callback)