1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Add aggregate function support to sqlite3.oo1.DB.createFunction(). Change signature of the options object used by that function so that the callback property names match those of the corresponding C APIs.

FossilOrigin-Name: a7db6e4b50beebfb1c97e0c4de49538d8199c166b18a0b1b175736c593128a00
This commit is contained in:
stephan
2022-10-16 18:50:55 +00:00
parent 8ffc98999d
commit 824bb5b8db
5 changed files with 151 additions and 49 deletions

View File

@ -160,7 +160,7 @@
log("Create a scalar UDF...");
db.createFunction({
name: 'twice',
callback: function(pCx, arg){ // note the call arg count
xFunc: function(pCx, arg){ // note the call arg count
return arg + arg;
}
});