Saving Data on Android



Download 19,28 Mb.
Pdf ko'rish
bet62/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   58   59   60   61   62   63   64   65   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

SQLiteOpenHelper
 implementation is created with a different version number in its 
constructor.
The implementation of this method should provide the code that is necessary to 
upgrade to the new version of the schema. Since this is a very simple example, you're 
just dropping the previous table, and recreating it, using the new schema. But in real 
environments, and big apps, you'd usually do something called a 
migration
.
Migration is the process of updating the database, without dropping it. For example, 
if you decide to add a new field to the TODO model, called 
toDoPriority
, you would 
need to change the database as well, because you need to store that field, and 
retrieve it, but the old database doesn't have that field defined. You would then 
update the version number (e.g., from 
1
 to 
2
) and write a SQL statement, to 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   58   59   60   61   62   63   64   65   ...   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