Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ORM instead of SQLite SQL #1834

Open
3 tasks
dennisguse opened this issue Jan 15, 2024 · 0 comments
Open
3 tasks

Use ORM instead of SQLite SQL #1834

dennisguse opened this issue Jan 15, 2024 · 0 comments
Labels
help wanted Extra attention is needed maintenance Required maintenance work

Comments

@dennisguse
Copy link
Member

We have quite a lot of code to manage three tables in a SQLite database.
One option would be to use an ORM like https://developer.android.com/jetpack/androidx/releases/room

Moreover, all DB interaction is done via ContentProvider.
This complicates the situation even further while it has the advantage that all data can be exposed to other applications.

Plan:

  • OpenTracks accesses SQLite DB directly (without CustomContentProvider)
  • Trim down CustomContentProvider to only provide data for Dashboard API (e.g., for OSMDashboard)
  • Check if ORM/Room helps to get rid of the large amount of data handling code
@dennisguse dennisguse added help wanted Extra attention is needed maintenance Required maintenance work labels Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed maintenance Required maintenance work
Projects
None yet
Development

No branches or pull requests

1 participant