RecordDocumentCollection

lightdb.model.RecordDocumentCollection
abstract class RecordDocumentCollection[D <: RecordDocument[D]](collectionName: String, db: LightDB) extends Collection[D], RecordDocumentModel[D]

Attributes

Graph
Supertypes
class Collection[D]
trait DocumentModel[D]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type Field[F] = IndexedField[F, D]

Attributes

Inherited from:
DocumentModel

Value members

Inherited methods

def apply(id: Id[D]): IO[D]

Attributes

Inherited from:
AbstractCollection
def commit(): IO[Unit]

Attributes

Inherited from:
AbstractCollection
def delete(id: Id[D])(implicit existingLock: DocLock[D]): IO[Option[D]]

Attributes

Inherited from:
AbstractCollection
def dispose(): IO[Unit]

Attributes

Inherited from:
AbstractCollection
def get(id: Id[D]): IO[Option[D]]

Attributes

Inherited from:
AbstractCollection
def idStream: Stream[IO, Id[D]]

Attributes

Inherited from:
AbstractCollection
override def model: DocumentModel[D]

Attributes

Definition Classes
Inherited from:
Collection
def modify(id: Id[D])(f: (Option[D]) => IO[Option[D]])(implicit existingLock: DocLock[D]): IO[Option[D]]

Attributes

Inherited from:
AbstractCollection
def postDelete(doc: D, collection: AbstractCollection[D]): IO[Unit]

Attributes

Inherited from:
DocumentModel
def postSet(doc: D, collection: AbstractCollection[D]): IO[Unit]

Called after set

Called after set

Attributes

Inherited from:
DocumentModel
def preDelete(id: Id[D], collection: AbstractCollection[D]): IO[Id[D]]

Attributes

Inherited from:
DocumentModel
def preSet(doc: D, collection: AbstractCollection[D]): IO[D]

Called before preSetJson and before the data is set to the database

Called before preSetJson and before the data is set to the database

Attributes

Inherited from:
DocumentModel
override def preSetJson(json: Json, collection: AbstractCollection[D]): IO[Json]

Called after preSet and before the data is set to the database

Called after preSet and before the data is set to the database

Attributes

Definition Classes
Inherited from:
RecordDocumentModel
def set(doc: D)(implicit existingLock: DocLock[D]): IO[D]

Attributes

Inherited from:
AbstractCollection
def size: IO[Int]

Attributes

Inherited from:
AbstractCollection
def stream: Stream[IO, D]

Attributes

Inherited from:
AbstractCollection
def truncate(): IO[Unit]

Attributes

Inherited from:
AbstractCollection
def withLock[Return](id: Id[D])(f: (DocLock[D]) => IO[Return])(implicit existingLock: DocLock[D]): IO[Return]

Attributes

Inherited from:
AbstractCollection

Inherited fields

val atomic: Boolean

Attributes

Inherited from:
Collection
val autoCommit: Boolean

Attributes

Inherited from:
Collection
lazy protected val store: Store

Attributes

Inherited from:
AbstractCollection

Implicits

Inherited and Abstract implicits

implicit val rw: RW[D]

Attributes

Inherited from:
DocumentModel