mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
doc: clarify filter option of sqlite.database.applyChangeset
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: https://github.com/nodejs/node/pull/63515 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com> Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
This commit is contained in:
1 parent
71feba6b69
commit
d9cb8468a3
1 file changed
+6
-2
+6
-2
@@ -366,8 +366,12 @@ added: v22.12.0
|
||||
|
||||
* `changeset` {Uint8Array} A binary changeset or patchset.
|
||||
* `options` {Object} The configuration options for how the changes will be applied.
|
||||
* `filter` {Function} Skip changes that, when targeted table name is supplied to this function, return a truthy value.
|
||||
By default, all changes are attempted.
|
||||
* `filter` {Function} for each table affected by at least
|
||||
one change in the changeset, the `filter` callback is invoked with the
|
||||
table name as the first argument. If the return value is falsy, then no
|
||||
attempt is made to apply any changes to the table.
|
||||
Otherwise, if the return value is truthy or no `filter` callback is provided,
|
||||
all changes related to the table are attempted.
|
||||
* `onConflict` {Function} A function that determines how to handle conflicts. The function receives one argument,
|
||||
which can be one of the following values:
|
||||
|
||||
|
||||
Reference in new issue
Block a user