commonMain.org.kodein.db.impl.CursorImpl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kodein-db Show documentation
Show all versions of kodein-db Show documentation
Kodein-DB implementation library
The newest version!
package org.kodein.db.impl
import org.kodein.db.BaseCursor
import org.kodein.db.Cursor
import org.kodein.db.Key
import org.kodein.db.Options
import org.kodein.db.model.ModelCursor
internal class CursorImpl(private val cursor: ModelCursor) : Cursor, BaseCursor by cursor {
override fun key(): Key = cursor.key()
override fun model(vararg options: Options.Get): M = cursor.model(*options).model
}