Please provide the following:
- SDK Version: ^36.0.2
- Android
Hi i am creating a simple note taking app with typescript and i need to use sqlite for storing but the api is somewhat confusing for me. Please help me understand this things:
- What are the return types of:
Transaction callback,
Transaction error callback,
Transaction succes callback,
ExecuteSql success callback,
ExecuteSql error callback
…
- What are the parameters and and the types of the parameters in:
Transaction error callback,
Transaction succes callback,
ExecuteSql success callback,
ExecuteSql error callback
…
- What are the differences between:
Transaction error callback and executeSql error callback
Transaction succes callback and executeSql success callback
// Transaction
db.transaction(
// Transaction callback
(transaction: SQLTransaction) => {
transaction.executeSql(
// Sqlite statement
"Sqlite statement",
// Arguments
[],
// ExecuteSql success callback
() => {},
// ExecuteSql error callback
() => {}
);
},
// Transaction error callback
() => {},
// Transaction succes callback
() => {}
);