@imadaboulhouda wrote:
Hello i have problem with sqlite is not connected always show me undefined
let conn = this.sqlite.create({ name: 'imadox.db', }) console.log(conn); //undefined if (conn == null) throw Error('ok error created') // show me this error conn.then((db: any) => { let dbInstance = db._objectInstance; this.http.get('assets/medicaments.sql',{responseType:'text'}).subscribe(e=> { this.sqlitePorter.importSqlToDb(dbInstance, e) .then(() => alert('Imported')) .catch(e => alert('error on import')); }) }).catch((err)=>{ alert('error') console.log(err,"Erro") });
Posts: 1
Participants: 1