executePlugin()
Last updated 13/07/2022
The following code is an example of calling a plugin by the name of executeSQL and passing parameters to the plugin via the context.
Example One
executePlugin()
const pluginContext = {};
pluginContext['connectionString'] = 'driver=mysql; name=customers; username=admin; password=123; url=db.host.com:3306';
pluginContext['sql'] = 'SELECT customerNo from Customer WHERE postcode = ?';
pluginContext['sqlParams'] = '4066';
const executeResult = five.executePlugin('executeSQL', JSON.stringify(pluginContext));