Represents a local database instance. It provides methods that allow developers to perform operations on a local database.
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. Note that this method will lock the entire database. |