I have firebase already initialized in my app.module.ts with the config and all of that, and im going to use fireSQL to get items from my database because i like mySQL code to make this things, but the problem is that the page about fireSQL on firebaseopensource.com says that you have to declare fireSQL like this:
firebase.initializeApp({config});
const fireSQL = new FireSQL(firebase.firestore());
And i dont want to do this, initialize here firebase again, is there a way to change "firebase.firestore()" to something that takes the already initialized firebase?
EDIT: another solution for my problem would be knowing how to do this query in firebase query:
$query = "SELECT * FROM " . ITEMS_TABLE . " WHERE (category LIKE '%".$category."%' AND (title LIKE '%" . $text . "%' OR description LIKE '%" . $text . "%')) ORDER BY ".$orderby." ".$ascdesc;
It's in PHP, not typescript because is from another project that i m transforming to angular