lightdb.collection.Collection
See theCollection companion object
case class Collection[Doc <: Document[Doc], Model <: DocumentModel[Doc]](name: String, model: Model, store: Store[Doc, Model]) extends Initializable, Disposable
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Disposabletrait Initializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
Members list
Type members
Classlikes
object t
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
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
t.type
Value members
Concrete methods
def apply[V](f: Model => (UniqueIndex[Doc, V], V))(implicit transaction: Transaction[Doc]): Task[Doc]
def delete[V](f: Model => (UniqueIndex[Doc, V], V))(implicit transaction: Transaction[Doc]): Task[Boolean]
def delete(id: Id[Doc])(implicit transaction: Transaction[Doc], ev: Model <:< DocumentModel[_]): Task[Boolean]
def get[V](f: Model => (UniqueIndex[Doc, V], V))(implicit transaction: Transaction[Doc]): Task[Option[Doc]]
def getOrCreate(id: Id[Doc], create: => Doc, establishLock: Boolean)(implicit transaction: Transaction[Doc]): Task[Doc]
def modify(id: Id[Doc], establishLock: Boolean, deleteOnNone: Boolean)(f: Forge[Option[Doc], Option[Doc]])(implicit transaction: Transaction[Doc]): Task[Option[Doc]]
Inherited methods
Attributes
- Inherited from:
- Disposable
Attributes
- Inherited from:
- Initializable
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Inherited fields
Calls doDispose() exactly one time. Safe to call multiple times.
Calls doDispose() exactly one time. Safe to call multiple times.
Attributes
- Inherited from:
- Disposable
Calls initialize() exactly one time. Safe to call multiple times.
Calls initialize() exactly one time. Safe to call multiple times.
Attributes
- Inherited from:
- Initializable
In this article