Lec#13
Lec#13
SQLite
SqLite
DataBase Management System that comes with
Mobile apps
A database consists of many tables
In rows/columns (records/fields)
• SQLite is the embedded database of choice for both
the iOS and Android mobile platforms
• SQLite is called an embedded database because its
primary use is to provide data persistence to your
app, it is an integral part of your app.
• Apps do not share Embedded Databases the way
they share databases like Oracle and DB2
Example:
• Download and install Navicat
• Design a database
Core Data
• Core Data
– an Apple provided Object-Relational Mapping
framework
– stores Objective-C objects into a SQLite Database
• object instance data looks like a row in an SQL table.
Core Data
• Benefits
– supported by Apple
– don't need to know SQL
• Drawbacks
– does not work with RDBMS as the store
– ordered relationships are hard
– undo/rollback doesn't always work
– data migration to a revised model is hard