main.app.cash.backfila.client.misk.hibernate.StringPrimaryKeyCursorAdapter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-misk-hibernate Show documentation
Show all versions of client-misk-hibernate Show documentation
Backfila is a service that manages backfill state, calling into other services to do batched work.
The newest version!
package app.cash.backfila.client.misk.hibernate
import okio.ByteString
import okio.ByteString.Companion.encodeUtf8
internal object StringPrimaryKeyCursorAdapter : PrimaryKeyCursorAdapter {
override fun toByteString(pk: String): ByteString {
return pk.encodeUtf8()
}
override fun fromByteString(byteString: ByteString): Result {
return Result.success(byteString.utf8())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy