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.
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 |