FireSQL | Query Firestore using SQL syntax | SQL Database library
kandi X-RAY | FireSQL Summary
kandi X-RAY | FireSQL Summary
FireSQL is a library built on top of the official Firebase SDK that allows you to query Cloud Firestore using SQL syntax. It's smart enough to issue the minimum amount of queries necessary to the Firestore servers in order to get the data that you request. On top of that, it offers some of the handy utilities that you're used to when using SQL, so that it can provide a better querying experience beyond what's offered by the native querying methods.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of FireSQL
FireSQL Key Features
FireSQL Examples and Code Snippets
Community Discussions
Trending Discussions on FireSQL
QUESTION
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:
...ANSWER
Answered 2020-Apr-26 at 17:25It looks like new FireSQL(...)
takes any instance of Firestore
. When you do call new FireSQL(firebase.firestore())
it creates or gets the Firestore object fro the default FirebaseApp
object. So if you've previously created a default (unnamed) FirebaseApp
, the firebase.firestore()
code will retrieve the Firestore service from that same object.
If you have another non-default instance FirebaseApp
or Firestore
already, you can pass in in to FireSQL
like this: new FireSQL(myApp.firestore())
or new FireSQL(myFirestore)
.
You won't be able to run an exact equivalent of that query on Firestore, because Firestore doesn't support title LIKE '%" . $text
clauses. See:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install FireSQL
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page