SQLTransactionSync

Provides methods for performing a database transaction that may consist of several queries. Accessed from DatabaseSync.transaction and DatabaseSync.readTransaction functions.

Constructor

new SQLTransactionSync()

Methods

MethodReturnsDescription
executeSql() SQLResultSet

Execute the given SQL and return the result as an SQLResultSet object.

Method Details

executeSql(sqlStatement, parametersopt) → {SQLResultSet}

Description:
  • Execute the given SQL and return the result as an SQLResultSet object.

Parameters:
Name Type Attributes Description
sqlStatement String

SQL statement.

parameters Array.<String> <optional>

Array containing the arguments to substitute into the statement.

Returns:
Type
SQLResultSet