Saving Data on Android


Chapter 10: Data Migration



Download 19,28 Mb.
Pdf ko'rish
bet108/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   104   105   106   107   108   109   110   111   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

Chapter 10: Data Migration
: Every Database has a lifecycle and needs to be 
updated. Applications continuously change and it's important to update the 
schema of a DB without losing any data or relations. In this chapter, you'll learn 
how to manage data migrations with Room in a simple and declarative way.
raywenderlich.com
91


5
Chapter 5: Room 
Architecture
By Aldo Olivares
In the previous section, you learned all the basics behind data storage on Android. 
You learned how to work with permissions, shared preferences, content providers 
and 
SQLite
.
Shared preferences are very useful when you need to store and share simple data
such as user preferences as key-value pairs. The main drawback is that you can't 
store large amounts of data since it's not efficient and there's no way to use queries 
to retrieve information.
SQLite is a fast, lightweight local database natively supported by Android that allows 
you to store large amounts of data in a structured way. The only downside of SQLite 
is that its syntax is not very intuitive since the way to interact with it can be very 
different from platform to platform.
Therefore, in this chapter, you are going to learn about one of the most popular 
libraries that helps you simplify your interaction with SQLite: 
Room
.
Along the way, you will also learn:
• How Object Relational Mappers work.
• About Room's integration with Google's architecture components
• The basics behind entities, DAOs and Room databases.
• The advantages and disadvantages of Room.
• The app you are going to build in the rest of this section.
Let's dive in!
raywenderlich.com
92



Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   104   105   106   107   108   109   110   111   ...   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