File tree Expand file tree Collapse file tree
Open diff view settings
Expand file tree Collapse file tree
Open diff view settings
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ This method allows one or more SQL statements to be executed without returning
313313any results. This method is useful when executing SQL statements read from a
314314file. This method is a wrapper around [ ` sqlite3_exec() ` ] [ ] .
315315
316- ### ` database.function(name[, options], function ) `
316+ ### ` database.function(name[, options], fn ) `
317317
318318<!-- YAML
319319added:
@@ -335,10 +335,10 @@ added:
335335 arguments (between zero and [ ` SQLITE_MAX_FUNCTION_ARG ` ] [ ] ). If ` false ` ,
336336 ` function ` must be invoked with exactly ` function.length ` arguments.
337337 ** Default:** ` false ` .
338- * ` function ` {Function} The JavaScript function to call when the SQLite
339- function is invoked. The return value of this function should be a valid
340- SQLite data type: see [ Type conversion between JavaScript and SQLite] [ ] .
341- The result defaults to ` NULL ` if the return value is ` undefined ` .
338+ * ` fn ` {Function} The JavaScript function to call when the SQLite function is
339+ invoked. The return value of this function should be a valid SQLite data type:
340+ see [ Type conversion between JavaScript and SQLite] [ ] . The result defaults to
341+ ` NULL ` if the return value is ` undefined ` .
342342
343343This method is used to create SQLite user-defined functions. This method is a
344344wrapper around [ ` sqlite3_create_function_v2() ` ] [ ] .
You can’t perform that action at this time.
0 commit comments