- SDK Version: ~40.0.0
Hi all,
I want to use expo-sqlite to transaction object to execute an sql statement.
However, I got a problem in define the return value of the error function.
Here is the example code:
tx.executeSql(
// sql statement (ok)
"...",
// input arguments (ok)
[...],
// resolve (ok)
() => {
resolve()
},
// what to do when error happen (Wrong!!!)
// I got an error!!!
// Here ask me to return a boolean value for the **error callback funtion**, but how??? true or false???
(_, err) => {
reject(err)
}
)
From the type definition file, I know, I need to return a boolean value for the error callback function, but how? true or false???
Do you have some idea how to do it???
P.S: I also wrote this question in stackoverflow, in case you want some points.