Combine Multiple SqlStorage.query?


#1

Hey everyone,

currently I am trying to build a small testservice, which inits an SqlStorage database.
In order to achieve that, I have 2 statements :

storage.query('CREATE TABLE IF NOT EXISTS people (id INTEGER PRIMARY KEY AUTOINCREMENT, firstname TEXT, lastname TEXT)')
storage.query('CREATE TABLE IF NOT EXISTS things (id INTEGER PRIMARY KEY AUTOINCREMENT, firstname TEXT, lastname TEXT)')

As both are Promises and no Observables, .forkJoin is not an option.
Cause of the missing of $q.all I am currently not able to combine those queries.

Does anyone have an idea how to solve this problem ?


#2

Can you not use Promise.all?


#3

Thank you!
This is exactly what I needed !