DbRunApi

binny.jdbc.impl.DbRunApi
See theDbRunApi companion object
final class DbRunApi[F[_]](table: String, logger: Logger[F])(implicit evidence$1: Sync[F])

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def computeAttrAll(id: BinaryId, detect: ContentTypeDetect, hint: Hint): DbRun[F, BinaryAttributes]
def computeAttrDetect(id: BinaryId, detect: ContentTypeDetect, hint: Hint): DbRun[F, SimpleContentType]
def computeAttrLen(id: BinaryId): DbRun[F, Long]
def count(id: BinaryId): DbRun[F, Long]
def countAll(): DbRun[F, Long]
def delete(id: BinaryId): DbRun[F, Int]
def deleteChunk(id: BinaryId, chunkNr: Int): DbRun[F, Int]
def exists(id: BinaryId): DbRun[[_] =>> OptionT[F, _$8], Unit]
def getChunkSize(id: BinaryId): DbRun[F, ChunkInfo]
def insertAllData(id: BinaryId, data: Stream[F, Chunk[Byte]]): Stream[F, DbRun[F, Int]]
def insertAttr(id: BinaryId, attr: BinaryAttributes): DbRun[F, Int]
def insertChunk(id: BinaryId, index: Int, bytes: Chunk[Byte]): DbRun[F, Int]
def insertEmptyAttr(id: BinaryId): DbRun[F, Int]
def insertNextChunk(id: BinaryId, chunkIndex: Int, chunksTotal: Int, bytes: Chunk[Byte]): DbRun[F, InsertChunkResult]
def listAllIds(prefix: Option[String], chunkSize: Int, ds: DataSource): Stream[F, BinaryId]
def listIdsChunk(start: String, prefix: Option[String], chunkSize: Int): DbRun[F, Chunk[BinaryId]]
def queryAll(id: BinaryId, range: ByteRange): DbRun[[_] =>> Stream[F, _$14], Byte]
def queryAttr(id: BinaryId): DbRun[F, Option[BinaryAttributes]]
def queryChunk(id: BinaryId, chunkNr: Int): DbRun[F, Option[Chunk[Byte]]]
def removeChunk(id: BinaryId, chunkIndex: Int): DbRun[F, Int]
def updateAttr(id: BinaryId, attr: BinaryAttributes): DbRun[F, Int]