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

ionicsqlite added - #81

Open
shivam1708 wants to merge 2 commits into
frappe:masterfrom
shivam1708:master
Open

ionicsqlite added#81
shivam1708 wants to merge 2 commits into
frappe:masterfrom
shivam1708:master

Conversation

@shivam1708

Copy link
Copy Markdown

No description provided.

@shivam1708

Copy link
Copy Markdown
Author

@netchampfaris @rmehta please review.

Comment thread backends/ionicsqlite.js
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
Copy Markdown
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?

Comment thread backends/ionicsqlite.js Outdated
@@ -0,0 +1,58 @@
module.exports = class IonicSqlite{

Copy link
Copy Markdown
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

Comment thread backends/ionicsqlite.js
});
}

getAll(doctype,condtion,db){

Copy link
Copy Markdown
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