Is it possible to use the Room Persistence Library from Google's Android Architecture Components in a java desktop application or in other words – as I haven't found anything on that – which things needed to be done and how complicated would that be?
Room is an ORM, Object Relational Mapping library. In other words, Room will map our database objects to Java objects. Room provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite.
The Room persistence library provides an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite. Latest Update.
Room is a persistence library that's part of Android Jetpack. Room is an abstraction layer on top of a SQLite database. SQLite uses a specialized language (SQL) to perform database operations.
The room is an ORM ( Object Relational Mapper ) for SQLite database in Android. It is part of the Architecture Components.
No, you can't. When creating a Room database, you need to supply an android Context
, but that does not exist outside of android projects. I would suggest trying an ORM like exposed or ktorm instead
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With