I'm trying out `kodein-db` in a kotlin multiplatfo...
# kodein
j
I'm trying out
kodein-db
in a kotlin multiplatform project. https://docs.kodein.org/kodein-db/0.2.0/core/operations.html includes examples like
Copy code
db.find<User>().all().models()
I'm not seeing
models()
available here for some reason
code like following is working
Copy code
db.find<Network>().all().use { cursor ->
                while (cursor.isValid()) {
                    val model = cursor.model()
                    println(model)
                    cursor.next()
                }
            }
also, noticed
db.newKey
doesn't seem to be available either
s
j
ah, ok....thanks....guess I should probably use 0.3.0 as well (hadn't realised there was update)
ok, see I should have been using
useModels()
....following now working
Copy code
db.find<Network>().all().useModels {
                it.forEach {
                    println(it)
                }
            }
newKey
still not available though for some reason