You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mariadb version : 3.0.0
operating os : ubuntu 20.04
Hello,
thanks for nice module!
i have a question about types for batch() function
please, see the look at my code screenshot first.
above code are working perfectly, and i want to look how many of rows are affected like this variable from this docs
but there is types error on my IDE
i checked d.ts file and this look like array
after that, i tried to log the result and what exactly result look like. [2022-03-15T03:18:41+00:00][logger][error]: {"affectedRows":1,"insertId":"0","warningStatus":0}
so, it looks like there is type declare error or i might be doin wrong totally.
can you help me what did i do wrong?
Thanks!
The text was updated successfully, but these errors were encountered:
I can confirm the same issue with the return type. The promise resolves with the UpsertResult object (e. g. {"affectedRows":2,"insertId":"10","warningStatus":0}), when inserting multiple values, not with an array of those.
Are there some cases for which it actually returns UpsertResult[]?
I guess we need to use // @ts-ignore for now, or override the interface?
mariadb version :
3.0.0operating os :
ubuntu 20.04Hello,
thanks for nice module!
i have a question about types for
batch()functionplease, see the look at my code screenshot first.
above code are working perfectly, and i want to look how many of rows are affected like this variable from this docs
but there is types error on my IDE

i checked d.ts file and this look like array

after that, i tried to log the result and what exactly result look like.
[2022-03-15T03:18:41+00:00][logger][error]: {"affectedRows":1,"insertId":"0","warningStatus":0}so, it looks like there is type declare error or i might be doin wrong totally.
can you help me what did i do wrong?
Thanks!
The text was updated successfully, but these errors were encountered: