Skip to content

Database.backup() method

Home > @direct-sqlite/core > Database > backup

Performs a non-blocking copy of the database to target path.

Signature:

backup(destinationPath: string): Promise<void>;

Parameter

Type

Description

destinationPath

string

The file path where the backup should be saved. Should be an absolute path or relative to the current working directory.

Returns:

Promise<void>