Skip to content

Tankōbon / preload / DatabaseApi

Interface: DatabaseApi ​

Defined in: preload.ts:216

Where the database file lives, as window.tankobon.database.

Methods ​

chooseLocation() ​

chooseLocation(): Promise<DatabaseLocationResult>

Defined in: preload.ts:220

Opens a native directory picker; the new location only takes effect on the next start.

Returns ​

Promise<DatabaseLocationResult>


getLocation() ​

getLocation(): Promise<DatabaseLocation>

Defined in: preload.ts:218

Where the database file currently lives.

Returns ​

Promise<DatabaseLocation>


relaunch() ​

relaunch(): Promise<void>

Defined in: preload.ts:224

Restarts the app, e.g. to open the database from its new location.

Returns ​

Promise<void>


resetLocation() ​

resetLocation(): Promise<DatabaseLocation>

Defined in: preload.ts:222

Points the app back at the default location; takes effect on the next start.

Returns ​

Promise<DatabaseLocation>