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.
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)
Copyright © 2013
Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.