LMDBCollection

zio.lmdb.LMDBCollection
case class LMDBCollection[T](name: String)(using x$2: JsonEncoder[T], x$3: JsonDecoder[T])

A helper class to simplify user experience by avoiding repeating collection name and data types

Attributes

T

the data class type for collection content

name

collection name

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def collect(keyFilter: RecordKey => Boolean, valueFilter: T => Boolean): ZIO[LMDB, CollectErrors, List[T]]
def delete(key: RecordKey): ZIO[LMDB, DeleteErrors, Option[T]]
def fetch(key: RecordKey): ZIO[LMDB, FetchErrors, Option[T]]
def upsert(key: RecordKey, modifier: Option[T] => T): ZIO[LMDB, UpsertErrors, UpsertState[T]]
def upsertOverwrite(key: RecordKey, document: T): ZIO[LMDB, UpsertErrors, UpsertState[T]]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product