[PAID] Firestore: Scalable Database

1.Introduction

Extension Name: Firestore

Cloud Firestore is Firebase’s newest database for mobile app development. It builds on the successes of the Realtime Database with a new, more intuitive data model. Cloud Firestore also features richer, faster queries and scales further than the Realtime Database. Also it is considered 50% more efficient in pricing than Realtime Database. This extention uses Andriod X libraries.

2.Documentation

Methods

• Initialize Firebase
Initializes the SDK.
image
Activate the firestore in your Firebase, in the rules, activate the reading and writing. In your project’s settings in firebase, go to add application, select web, put a nickname and copy the following data:

"projectId" ➜ projectId;
"appId" ➜ aplicationId;
"apiKey" ➜ apiKey.
persistent ~ boolean

• Get Document Query
Get a list of documents according to the query, returning it in “GotQuery”.
image
collectionReference ~ text
query ~ list

Key: queryType, Value:

• limit ~ text
Key: value , Value: (Limit of documents returned ~ number)
image

• where ~ text
Key: value , Value: ~ dictonary

  1. Key: fieldpath , Value: ~ text
  2. Key: opStr , Value: (“==”,”>”,”>=”,”<”,”<=”)
  3. Key: value , Value: (value to be compared)
    image

• orderBy ~ text
Key: value , Value: ~ dictonary

  1. Key: direction , Value: (“asc”, “desc”)
  2. Key: field , Value: ~ text
    image

• startAfter ~ text
Key: value , Value: (Start after that value)
image

• startAt ~ text
Key: value , Value: (Start at that value)
image

• endAt ~ text
*Key: value , Value: (end at that value)
image
• endBefore ~ text
Key: value , Value: (end before that value)
image

Example

In this example, all documents in the reference collection are left in ascending order relative to the “id” of the field and then a limit of 5 is placed.

Note: As we can see, the order of selection is from bottom to top in the list :arrow_up:.

• Set Field With Merge
Update one field, creating the document if it does not already exist.
image
documentReference ~ text
document ~ dictionary

• Add Document
Add a new document with a generated id.
image
collectionReference ~ text
document ~ dictionary

• New Document
Create a new empty document with a specific name, if you want to create it by generating an id leave the >documentName field empty.
component_method
collectionReference ~ text
documentReference ~ text
document ~ dictionary

• Get Document
Get all the field along with value for a specific document in a collection.
component_method(1)
documentReference ~ text
collectionReference ~ text

• Updates Document
Updates the document.
image
documentReference ~ (collection/document) text
document ~ dictionary

• Get All Docs
Gets the complete list of documents in the collection, returning to GotAllDocs.
image
collectionReference ~ text

• Register Listener
Register a listener and if there are changes to the collection it will return to OnListenerAdded, OnListenerModified, OnListenerRemoved.
image
collectionRefernce ~ text

• Remove Listener
Removes the listener.
image
collectionRefernce ~ text

• Delete Collection
Deleted collection.
image
collectionReference ~ text

• Delete Document
Deleted document.
image
documentReference ~ text

Events

• Got All Docs
Event returns all documents.
image
documents ~ list

• Got Query
Event returns a list with the selected data.
image
documents ~ list

• On Success
Returns the event if any method is successful.
image
message ~ text

• On Failure
Returns the error message.
image
message ~ text

• On Listener Added
When registering the listener, this event will be called when adding a field to the collection.
image
document ~ dictionary

• On Listener Modified
When registering the listener, this event will be called when modifying a field in the collection.
image
document ~ dictionary

• On Listener Removed
When registering the listener, this event will be called when removing a field from the collection.
image
document ~ dictionary

Price

If paid through UPI: INR 1500
If paid through PayPal: USD 25 + USD 3 (Additional taxes for conversion to INR), Total: USD 28.
If paid through Bitcoin: Bitcoin of value USD 25.
PM for purchasing.

Credits

@Shreyash for his super Rush. :star_struck:

I have used the same description as of @jarlissonlira2 to make it easier for old users to understand the logic easily.

Things I have changed in the extention:

• New Document
Create a new empty document with a specific name, if you want to create it by generating an id leave the >documentName field empty.
component_method
collectionReference ~ text
documentReference ~ text
document ~ dictionary

• Get Document
Get all the field along with value for a specific document in a collection.
component_method(1)
documentReference ~ text
collectionReference ~ text

6 Likes

I think there is same opensourse version

3 Likes

Yes, it is available but source is using old libraries and the extention is not working as well.
Also I have added new components and solved all the errors. :grinning_face_with_smiling_eyes:

Finally it is here searching for it for a long time i am buying it now

1 Like

Please reply in dm

1 Like

that means you have used jarlisson2/FirestoreAIX source right ?

No, I haven’t used the source provided, but taken some guidance :grinning_face_with_smiling_eyes:

1 Like

Well I think it’s only some imports.

He have the right to put his price.

I have updated aix of Jarlisson’s extension hope I can make it available soon.

6 Likes

Nice extension :+1:

1 Like

Please do it early @Jerin_Jacob

No it’s not just library, I have added new components and features too. Also I haven’t used the source, just taken some part of it.

I think that open source never work again.
https://community.kodular.io/search?context=topic&context_id=152060&skip_context=true

I tried that open source but never worked for me and I was told that the developer had already abandoned it and he is no longer available in the community probable he is no longer… or maybe have a problem which we don’t know.

3 Likes

could you build an apk and send me? I will surely logcat and fix it

1 Like

Exactly :joy: :+1:

Real? I can’t wait to see it alive.

1 Like

I think he is busy with his studies. :worried:

4 Likes

The price is too much just for one aix and the bad thing is that some developers you do put and hide some Ads Commisions inside, that is very bad.

That one AIX is the heart of every scalable app :grinning_face_with_smiling_eyes:
What price are you expecting :grinning_face_with_smiling_eyes:, for a fully functional Firestore extention with support and updates. Feel free to share your views.

I cannot say about other developers, but I can guarantee you, no such activities are involved in my extention. :grinning_face_with_smiling_eyes:

wow that is nice idea, but would you teach me how to logcat because after this new update Fenix now days my apps are crashing and I don’t know how to logcat please teach us by giving a guide if you get time.

1 Like

Please read this :point_up_2: