Dev_Interview_Prep_App icon indicating copy to clipboard operation
Dev_Interview_Prep_App copied to clipboard

Feature: Add Room DB to a module in the Project to store questions and answers.

Open Tc2r1 opened this issue 2 years ago • 11 comments

Setup Local storage in one of the modules inside the project by using Room db.

Most Android applications require local data storage. In the past years, we have achieved this through the use of SQLite databases. Room is a persistent library that is part of the Android jetpack. It is built on top of SQLite. The room persistent library has many advantages over raw SQLite.


🎃🎃LEVEL 2 CONTRIBUTIONS🎃🎃 - RESOLVE A SMALL "ISSUE" TICKET!

  1. Find an issue and ask for rights/claim to work on it.
  2. A Maintainer will grant said permissions.
  3. Fork the repo and create a branch to save your work to.
  4. Resolve the issue
  5. Pull latest changes from master branch into your branch and resolve all merge conflicts.
  6. Create a PR!
  7. Your PR will be reviewed, after resolving all request, your PR will be accepted
  8. Open Contributors.md file and add your name and relevant information.
  9. CELEBRATE GOOD TIMES COME ON!!
  10. RINSE REPEAT! You're a fireball!



### Describe alternatives you've considered

Additional context

Android Developer Docs on Room Room Tutorial

Tc2r1 avatar Oct 22 '22 06:10 Tc2r1

Hi, I would like to try this one. We only have to add the db right? or we also have to insert questions and answers in the database by creating dao?

!assign

mksiddiq avatar Oct 22 '22 08:10 mksiddiq

@mksiddiq please insert questions and answers into the database by creating dao in the com/interviewprep/kotlinretrofit/repository/tc2rgithubrepository/source/local folder, or a similar path you'd create (different modules have different setups).

If its too hard to add the Dao for you, feel free to just add the db :) Pick a module you like (or are familiar with) to work in.

Tc2r1 avatar Oct 22 '22 09:10 Tc2r1

Sure, I will work on it.

mksiddiq avatar Oct 22 '22 09:10 mksiddiq

👋 You've been assigned this issue, Please fork the repository and create a branch to work on the issue assigned here 💻. When you are done make a Pull Request. Good Luck!

github-actions[bot] avatar Oct 22 '22 10:10 github-actions[bot]

@mksiddiq HI, it sounds like you may have opened the project incorrectly. Here are some image guides to show how to correctly open the project.

However if you would like to communiate over a messenger, just reply here and i'll see if we can sync up shortly after your reply.

Tc2r1 avatar Oct 22 '22 16:10 Tc2r1

Oh, this might be the problem. This should help, thanks!

mksiddiq avatar Oct 22 '22 17:10 mksiddiq

I am trying to implement the RoomDB for KotlinBase Module and there are already classes defined for Question and Answer instances so do I use typeconverters to store those instances into RoomDB or should I make new data classes for Answer and Question.

yazh1202 avatar Oct 25 '22 08:10 yazh1202

Please feel free to contact me on google chat. ([email protected]) or google hangouts. @yazh1202 @mksiddiq

Tc2r1 avatar Oct 25 '22 21:10 Tc2r1

@Tc2r1 sure

mksiddiq avatar Oct 26 '22 08:10 mksiddiq

@mksiddiq https://8x8.vc/tc2r1 if g chat doesn't work

Tc2r1 avatar Oct 26 '22 08:10 Tc2r1

I have raised a PR #170 regarding this issue. Please review it and suggest changes if required.

yazh1202 avatar Oct 26 '22 14:10 yazh1202