Room Database - Using Foreign Keys!
HTML-код
- Опубликовано: 9 окт 2023
- 💻 Join my new Refactoring Legacy Code course now: bit.ly/47dzTLT
📩 Sign up for my new newsletter here 👉 bit.ly/YCNewsletter102
Join my Community on Discord:
/ discord
In this video, we will see how to use the Foreign Keys in Room database to create relationships between entities for one-to-one relationships and one-to-many relationships.
Room is a Jetpack Persistence library; it provides an abstraction over SQLite, which you can use to save data locally on your device, especially for delivering an offline experience for your users.
In This video series, I demonstrate the basic features of Room Library, starting with the setup, adding entities and Daos, creating converters and database, and completing with some of the Best practices such as Clean Architecture, Repository pattern, and Testing.
👨🏽🏭 Who I am:
I'm Younes Charfaoui, a Junior Software Engineer and an Android Developer. I make videos about Android development, Technology, and Productivity for software engineers.
😋 Be My Friend:
💻 GitHub - github.com/Younes-Charfaoui/
🐦 Twitter - / charfaouiyounes
📑 Medium - / mxcsyounes
📷 Instagram - / charfaoui.younes
🌍 My website - www.younescharfaoui.com
Thank you!
This is the most underrated video on RUclips 🔥🔥🔥
Wonderful 😀
Thank you 😄
thanks, I thought it would be more complicated but you explained in a simple way
You're welcome!
Thanks for the effort man!!!
My pleasure!
Thanks for another amazing video :)
wow a great video, thanks. can you make a tutorial about, what if the books id that already exist, can be reviewed. like by the already exist books id, we want to make a column about its reviewed. thanks
very helpful
I have relation 3 tables, exmple table A one to many with B and table C same one to many with B... i try like video and i get error "foreign key constraint failed (code 787 sqlite_constraint_foreignkey)" when insert table B, can you explain why i get that error ?