AsyncCollection
lightdb.async.AsyncCollection
final case class AsyncCollection[Doc <: Document[Doc], Model <: DocumentModel[Doc]](underlying: Collection[Doc, Model]) extends AnyVal
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass AnyValtrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
def delete[V](f: Model => (UniqueIndex[Doc, V], V))(implicit transaction: Transaction[Doc]): IO[Boolean]
def delete(id: Id[Doc])(implicit transaction: Transaction[Doc], ev: Model <:< DocumentModel[_]): IO[Boolean]
def get[V](f: Model => (UniqueIndex[Doc, V], V))(implicit transaction: Transaction[Doc]): IO[Option[Doc]]
def getOrCreate(id: Id[Doc], create: => IO[Doc], lock: Boolean)(implicit transaction: Transaction[Doc]): IO[Doc]
def modify(id: Id[Doc], lock: Boolean, deleteOnNone: Boolean)(f: Option[Doc] => IO[Option[Doc]])(implicit transaction: Transaction[Doc]): IO[Option[Doc]]
Convenience feature for simple one-off operations removing the need to manually create a transaction around it.
Convenience feature for simple one-off operations removing the need to manually create a transaction around it.
Attributes
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
In this article