readTransaction


Purpose

Opens a database in read-only mode, i.e. it allows only read SQL statements to run on the database. It imposes a shared read lock on the database.

Signature

readTransaction(callback, errorCallback, successCallback)

Returns

This method does not return anything.

Parameter

Name Description Type
callback The transaction callback invoked with the SQLTransaction object that represents the transaction. The transaction callback executes the query. SQLTransactionCallback
errorCallback An optional callback object containing a method to handle transaction errors. SQLTransactionErrorCallback
successCallback An optional callback object containing a method to be executed when the transaction succeeds. SQLVoidCallback

Related topics

SQLStorage.Database
Overview
Web SQL Database
Legal notice | Copyright © 2017 and Confidential to Pegasystems Inc. All rights reserved
PDN | Feedback
Advanced...