From fcdf57fa14103feea7cc5d4cfa1cd42cec8beefc Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Tue, 4 May 2021 18:50:08 -0500 Subject: [PATCH] updated readme --- docs/api.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/api.md b/docs/api.md index 98cc6a6..88cdf1c 100644 --- a/docs/api.md +++ b/docs/api.md @@ -119,7 +119,7 @@ It's better to use this method instead of normal [prepared statements](#prepares ### .backup(*destination*, [*options*]) -> *promise* -Initiates a [backup](https://www.sqlite.org/backup.html) of the database, returning a [promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises) for when the backup is complete. If the backup fails, the promise will be rejected with an `Error`. You can optionally backup an attached database instead by setting the `attached` option to the name of the desired attached database. +Initiates a [backup](https://www.sqlite.org/backup.html) of the database, returning a [promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises) for when the backup is complete. If the backup fails, the promise will be rejected with an `Error`. You can optionally backup an attached database instead by setting the `attached` option to the name of the desired attached database. A backup file is just a regular SQLite3 database file. It can be opened by [`new Database()`](#new-databasepath-options) just like any SQLite3 database. ```js db.backup(`backup-${Date.now()}.db`) @@ -152,8 +152,6 @@ db.backup(`backup-${Date.now()}.db`, { }); ``` -A backup file is just a regular SQLite3 database file. It can be opened by [`new Database()`](#new-databasepath-options) just like any SQLite3 database. - ### .serialize([*options*]) -> *Buffer* Returns a [buffer](https://nodejs.org/api/buffer.html#buffer_class_buffer) containing the serialized contents of the database. The buffer can be written to disk to create a regular SQLite3 database file, or it can be opened directly as an in-memory database by passing it to [`new Database()`](#new-databasepath-options). You can optionally serialize an attached database instead by setting the `attached` option to the name of the desired attached database.