Skip to content

Database

Unofficial

Represents a WebSQL database instance.

Import:

import type { Database } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface Database

Properties

PropertyTypeDescription
versionstringCurrent version string of the database schema.

Methods

MethodReturnsDescription
changeVersion(oldVersion, newVersion, callback?, errorCallback?, successCallback?)voidChange the database version, optionally running a migration transaction.
readTransaction(callback, errorCallback?, successCallback?)voidExecute a read-only transaction against the database.
transaction(callback, errorCallback?, successCallback?)voidExecute a read-write transaction against the database.

Links to this page: