Database
Unofficial
Represents a WebSQL database instance.
Import:
import type { Database } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface DatabaseProperties
| Property | Type | Description | |
|---|---|---|---|
| version | string | Current version string of the database schema. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| changeVersion(oldVersion, newVersion, callback?, errorCallback?, successCallback?) | void | Change the database version, optionally running a migration transaction. | |
| readTransaction(callback, errorCallback?, successCallback?) | void | Execute a read-only transaction against the database. | |
| transaction(callback, errorCallback?, successCallback?) | void | Execute a read-write transaction against the database. |
Links to this page: