@@ -80,21 +80,21 @@ added: v22.5.0
80
80
changes:
81
81
- version: REPLACEME
82
82
pr-url: https://github.com/nodejs/node/pull/56991
83
- description: The `location ` argument now supports Buffer and URL objects.
83
+ description: The `path ` argument now supports Buffer and URL objects.
84
84
-->
85
85
86
86
This class represents a single [ connection] [ ] to a SQLite database. All APIs
87
87
exposed by this class execute synchronously.
88
88
89
- ### ` new DatabaseSync(location [, options]) `
89
+ ### ` new DatabaseSync(path [, options]) `
90
90
91
91
<!-- YAML
92
92
added: v22.5.0
93
93
-->
94
94
95
- * ` location ` {string | Buffer | URL} The location of the database. A SQLite database can be
95
+ * ` path ` {string | Buffer | URL} The path of the database. A SQLite database can be
96
96
stored in a file or completely [ in memory] [ ] . To use a file-backed database,
97
- the location should be a file path. To use an in-memory database, the location
97
+ the path should be a file path. To use an in-memory database, the path
98
98
should be the special name ` ':memory:' ` .
99
99
* ` options ` {Object} Configuration options for the database connection. The
100
100
following options are supported:
@@ -204,7 +204,7 @@ wrapper around [`sqlite3_create_function_v2()`][].
204
204
added: v22.5.0
205
205
-->
206
206
207
- Opens the database specified in the ` location ` argument of the ` DatabaseSync `
207
+ Opens the database specified in the ` path ` argument of the ` DatabaseSync `
208
208
constructor. This method should only be used when the database is not opened via
209
209
the constructor. An exception is thrown if the database is already open.
210
210
@@ -538,18 +538,18 @@ exception.
538
538
| ` TEXT ` | {string} |
539
539
| ` BLOB ` | {TypedArray} or {DataView} |
540
540
541
- ## ` sqlite.backup(sourceDb, destination [, options]) `
541
+ ## ` sqlite.backup(sourceDb, path [, options]) `
542
542
543
543
<!-- YAML
544
544
added: v23.8.0
545
545
changes:
546
546
- version: REPLACEME
547
547
pr-url: https://github.com/nodejs/node/pull/56991
548
- description: The `destination ` argument now supports Buffer and URL objects.
548
+ description: The `path ` argument now supports Buffer and URL objects.
549
549
-->
550
550
551
551
* ` sourceDb ` {DatabaseSync} The database to backup. The source database must be open.
552
- * ` destination ` {string | Buffer | URL} The path where the backup will be created. If the file already exists,
552
+ * ` path ` {string | Buffer | URL} The path where the backup will be created. If the file already exists,
553
553
the contents will be overwritten.
554
554
* ` options ` {Object} Optional configuration for the backup. The
555
555
following properties are supported:
0 commit comments