@@ -182,11 +182,14 @@ added:
182182 * ` useBigIntArguments ` {boolean} If ` true ` , integer arguments to ` function `
183183 are converted to ` BigInt ` s. If ` false ` , integer arguments are passed as
184184 JavaScript numbers. ** Default:** ` false ` .
185- * ` varargs ` {boolean} If ` true ` , ` function ` can accept a variable number of
186- arguments. If ` false ` , ` function ` must be invoked with exactly
187- ` function.length ` arguments. ** Default:** ` false ` .
185+ * ` varargs ` {boolean} If ` true ` , ` function ` may be invoked with any number of
186+ arguments (between zero and [ ` SQLITE_MAX_FUNCTION_ARG ` ] [ ] ). If ` false ` ,
187+ ` function ` must be invoked with exactly ` function.length ` arguments.
188+ ** Default:** ` false ` .
188189* ` function ` {Function} The JavaScript function to call when the SQLite
189- function is invoked.
190+ function is invoked. The return value of this function should be a valid
191+ SQLite data type: see [ Type conversion between JavaScript and SQLite] [ ] .
192+ The result defaults to ` NULL ` if the return value is ` undefined ` .
190193
191194This method is used to create SQLite user-defined functions. This method is a
192195wrapper around [ ` sqlite3_create_function_v2() ` ] [ ] .
@@ -599,10 +602,12 @@ resolution handler passed to [`database.applyChangeset()`][]. See also
599602[ Constants Passed To The Conflict Handler ] : https://www.sqlite.org/session/c_changeset_conflict.html
600603[ Constants Returned From The Conflict Handler ] : https://www.sqlite.org/session/c_changeset_abort.html
601604[ SQL injection ] : https://en.wikipedia.org/wiki/SQL_injection
605+ [ Type conversion between JavaScript and SQLite ] : #type-conversion-between-javascript-and-sqlite
602606[ `ATTACH DATABASE` ] : https://www.sqlite.org/lang_attach.html
603607[ `PRAGMA foreign_keys` ] : https://www.sqlite.org/pragma.html#pragma_foreign_keys
604608[ `SQLITE_DETERMINISTIC` ] : https://www.sqlite.org/c3ref/c_deterministic.html
605609[ `SQLITE_DIRECTONLY` ] : https://www.sqlite.org/c3ref/c_deterministic.html
610+ [ `SQLITE_MAX_FUNCTION_ARG` ] : https://www.sqlite.org/limits.html#max_function_arg
606611[ `database.applyChangeset()` ] : #databaseapplychangesetchangeset-options
607612[ `sqlite3_changes64()` ] : https://www.sqlite.org/c3ref/changes.html
608613[ `sqlite3_close_v2()` ] : https://www.sqlite.org/c3ref/close.html
0 commit comments