Is it possible to use room database with Compose D...
# compose-desktop
h
Is it possible to use room database with Compose Desktop? My gradle is not able to download the dependencies from maven.google.com. (2.3.0)
b
I'm guessing because room publishes aar instead jar artefacts
h
Thanks! I need to persist data in embedded database, what's best to use?
k
There's a bunch of dependencies of Room on Android APIs (context, intent, etc), so it wouldn't be directly portable as it is.
☝🏻 1
m
I would suggest SQLDelight, its nice and easy to use
☝️ 5
b
There's also multiplatform-settings for key-value storage
d
I'm also feeling happy & productive using Jetbrains Exposed for SQL/DSL + ORM from Desktop.
3
h
I found SQLDelight hard to use, it was generating the interface but when trying to use it it wasn't creating the Table (even when using in memory db with H2). Had to create it manualy (eventhough the first statment in the sq file was the Create Table). When created manually first it seem to work. I've now tried Exposed and I seem to have the database working. (inserting and reading 1 record).
c
#squarelibraries folks can help with SQLDelight issues. I would also say that I would reccomend it
568 Views