Database.backup() method
Home > @direct-sqlite/core > Database > backup
Database.backup() method
Section titled “Database.backup() method”Performs a non-blocking copy of the database to target path.
Signature:
backup(destinationPath: string): Promise<void>;Parameters
Section titled “Parameters”|
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>