John O'Reilly
05/18/2025, 9:44 AMWebWorkerException: {"message":"no such table: People","name":"Error"}
John O'Reilly
05/18/2025, 9:49 AMgenerateAsync = true
(as seems to be needed now) so perhaps something related to thatCosmin Mihu
05/18/2025, 11:52 AMJohn O'Reilly
05/18/2025, 12:10 PMcreate
(which I just remembered had to be done for JVM target as well) but getting same error
val driver = createDefaultWebWorkerDriver()
.also { PeopleInSpaceDatabase.Schema.create(it) }
Cosmin Mihu
05/18/2025, 12:27 PMJohn O'Reilly
05/18/2025, 12:28 PMawaitCreate
....hacked it here and it worked......need to figure out now how to tie it in to Koin setup (has to be called from coroutineCosmin Mihu
05/18/2025, 2:40 PMGlobalScope.launch(Dispatchers.Default) {
Database.Schema.awaitCreate(it)
}
For me it works, but still not a good approach.Derek Ellis
05/26/2025, 2:23 PM