-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Database
This page is in an early state and not yet completed or reviewed!
This pages gives some information on the internal app database. In short, you learn about the database structure and how to modify it as well as how to access the stored data.
NewPipe is a streaming frontend. For this reason, storing information on streams
is the database's core functionality.
Basically, stream information is used for feeds, playlists and watch history.
How to update this diagram?
Use https://dbeaver.io/ (FOSS)
When modifying the database structure, the database version needs to be increased.
You also need to create a migration to update the structure on installations which run an old database version. This is done in the Migrations
class. After creating the migration, it needs to be registered with the database to be executed if necessary.
Add some info on the DAO pattern here; AppDatabase and NewPipeDatabase
The primary docs are found on the project's website