Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Conversation

@shivam1708
Copy link

No description provided.

@shivam1708
Copy link
Author

@netchampfaris @rmehta please review.

addOne(doctype,data,num,db){
var y = '('+'?, '.repeat(num-1)+'?)';
console.log('insert data: ',data);
return db.executeSql(`INSERT INTO ${doctype} VALUES ${y}`,data).then(res => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when and how db variable is initialized?

@@ -0,0 +1,58 @@
module.exports = class IonicSqlite{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extend the class from the base class Database

});
}

getAll(doctype,condtion,db){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can't change the function signature of getAll it should only take parameters as provided by the base Database class

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants