Saving Data on Android



Download 19,28 Mb.
Pdf ko'rish
bet263/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   259   260   261   262   263   264   265   266   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

Firebase console
You can do all of these operations that you implemented in this chapter, like adding 
data, updating and deleting, manually in the Firebase console.
Open firebase console in the browser and navigate to the Firestore database.
Saving Data on Android
Chapter 17: Managing Data with Cloud Firestore
raywenderlich.com
257


From here, you can view your database data. You can click on any collection to see 
the documents within that collection, and you can click on any document to see the 
details of that document.
You'll also notice these menu icons. Click on the in the last column for example. 
There you'll see the options to delete a document or a specific field of the document:
You can also filter the documents inside the collection by clicking the filter button:
Visit the official documentation 
https://firebase.google.com/docs/firestore/using-
console
 to explore more possibilities of the console.
Key points
• Firestore database is created in the Firebase console.
• You need to add a Firestore client library for Android to the project in order to use 
Firestore APIs.
• You need to initialize a Firestore instance in order to communicate with the 
database.
• You call the 
collection
 method passing in the collection path to get a reference 
to the collection at the specified path in the database.
• You need to create and populate the map of data that you wan't to save to the
Saving Data on Android
Chapter 17: Managing Data with Cloud Firestore
raywenderlich.com
258


database.
• You call the 
set
 method on the document reference that will replace the data in 
the document if it already exists or it will create it if it doesn't to save the data to 
the database. You pass in the map that contains the data that you want to write to 
that document.
• Firebase supports transactions which are used in cases when you want to write a 
bunch of data to the database at once.
• You call the 
update
 method on a document reference to update fields in the 
document.
• You call the 
delete
 method on a document reference which deletes the document 
referred to by the reference.
• Adding, updating and deleting operations are asynchronous.
• You can use the Firebase console to manage data in the Firestore database.

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   259   260   261   262   263   264   265   266   ...   292




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish