Lecture 17: SQLite and the Room ORM Flashcards

1
Q

What is SQLite

A

A lightweight database that supports SQL style database syntax and a file based model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The entire SQLite database is stored in ___ and queries simply __

A
  • single file
  • search and modify that file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why is SQL the preferred database for Android systems?

A
  • file based model uses less resources
  • supports enough sql syntax to make writing queries easy if youve worked with SQL before
  • its public domain (free and open-sourced)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SQLite only requires an ___ and a ___ it can read/write from

A
  • SQLite library
  • file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an ARM

A

Object Relational Mapping (ORM)

An abstraction layer between the database and the code. The code interacts with the ORM instead of the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ORM makes it easier to mainain code ___ from the database

A

separetely

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Android provides built in ORM that it recommends you use when accessing databases known as ___

A

Room

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Underneath Room is still a ___, but you wont see it instead you ____

A
  • SQLite database
  • interact with classes ad methods defined within the ORM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Rooms offer a easy way to set up ___ while also offering features you dont get in raw SQLite

A

databases, tables, and queries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The Room ORM uses ___ layers to abstract the database

A

3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Entities describe ___, define the ___, and allow ___

A
  • singular rows
  • column names of the table
  • get/set of values
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are Data Access Objects (DAOs)

A

Queries that return a collection of entities for the query

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the Room ORM layers?

A
  • Room database
  • Data Access Objects
  • Entities
How well did you know this?
1
Not at all
2
3
4
5
Perfectly