John O'Reilly
09/29/2020, 8:12 PMkodein-db
in a kotlin multiplatform project. https://docs.kodein.org/kodein-db/0.2.0/core/operations.html includes examples like
db.find<User>().all().models()
I'm not seeing models()
available here for some reasonJohn O'Reilly
09/29/2020, 8:13 PMdb.find<Network>().all().use { cursor ->
while (cursor.isValid()) {
val model = cursor.model()
println(model)
cursor.next()
}
}
John O'Reilly
09/29/2020, 8:25 PMdb.newKey
doesn't seem to be available eitherShawn Witte
09/29/2020, 8:27 PMJohn O'Reilly
09/29/2020, 8:29 PMJohn O'Reilly
09/29/2020, 8:33 PMuseModels()
....following now working
db.find<Network>().all().useModels {
it.forEach {
println(it)
}
}
John O'Reilly
09/29/2020, 8:57 PMnewKey
still not available though for some reason