RecordDocumentCollection

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

Attributes

Graph
Supertypes
class Collection[D]
class Object
trait Matchable
class Any

Members list

Type members

Inherited types

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

Attributes

Inherited from:
Collection

Value members

Concrete methods

override protected def preSetJson(json: Json): 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 methods

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Collection
def set(doc: D)(implicit existingLock: DocLock[D]): IO[D]

Attributes

Inherited from:
Collection
def size: IO[Int]

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Collection

Inherited fields

val atomic: Boolean

Attributes

Inherited from:
Collection
val autoCommit: Boolean

Attributes

Inherited from:
Collection

Implicits

Inherited and Abstract implicits

implicit val rw: RW[D]

Attributes

Inherited from:
Collection