All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.app.cash.backfila.client.misk.hibernate.StringPrimaryKeyCursorAdapter.kt Maven / Gradle / Ivy

Go to download

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