Skip to content

Commit

Permalink
Use database( ... ) as the new Database tag in apps
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Dec 5, 2023
1 parent 9ce6fe2 commit 91dffa8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ load_once_from_file(true)
// If a database definition has been given then read it
//

let llsqlText = yz.helpers.getValueOfCodeString(mm.text, "sqlite", ")//sqlite")
let llsqlText = yz.helpers.getValueOfCodeString(mm.text, "database", ")//database")
if (isValidObject(llsqlText)) {
mm.editor.getSession().setValue( JSON.stringify( llsqlText , null , 2 ));
} else {
Expand Down Expand Up @@ -277,8 +277,8 @@ load_once_from_file(true)
return null
}

this.text = yz.helpers.deleteCodeString(this.text, "sqlite", ")//sqlite")
this.text = yz.helpers.insertCodeString(this.text, "sqlite", JSON.parse(this.sqlText) ,")//sqlite")
this.text = yz.helpers.deleteCodeString(this.text, "database", ")//database")
this.text = yz.helpers.insertCodeString(this.text, "database", JSON.parse(this.sqlText) ,")//database")

return this.text
},
Expand Down

0 comments on commit 91dffa8

Please sign in to comment.