SQLStorage.Database


Purpose

Represents a local database instance. It provides methods that allow developers to perform operations on a local database.

Attributes

Attribute Description Type
version Returns the database version. string

Methods

Name Description
changeVersion

Allows scripts to atomically verify the database version number and change it at the same time as doing a schema update.

readTransaction

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.

transaction

Opens a database in read/write mode, i.e. it allows both read and write SQL statements to run on the database. A transaction is a set of operations considered as one single operation. If a transaction fails, the updates to the database are not committed.

Related topics

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