Page Contents


To execute SQL directly against your data-connected model, use the following:

dataSource.connector.execute(sql_stmt, params, callback);

or

dataSource.connector.query(sql_stmt, params, callback); // For 1.x connectors

Where:

  • sql_stmt - The SQL string.
  • params - parameters to the SQL statement.
  • callback - callback function