Sqlite query like


#1

HOW I USE THAT QUERY IN IONIC ?

public listaItens(descricao, tipodebusca, pagina, itens_mostrar, loja){
return new Promise((resolve, reject) => {
this.storage = new SQLite();
this.storage.openDatabase({name: “infosysDB.db”, location: “default”})
.then(
(data) => {
if(tipodebusca == “descricao”){
let busca = descricao + “%”;
this.storage.executeSql(“SELECT * FROM itensoffline WHERE descricao LIKE ‘?%’”, [descricao]) <-- THAT QUERY


#2

WHY ARE YOU SHOUTING?

Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.


#3

Is this Ionic Native or only the Cordova plugin?