Page Contents

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

dataSource.connector.execute(_sql_, _params_, _cb_);

or

dataSource.connector.query(_sql_, _params_, _cb_); // For 1.x connectors

Where:

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