Collection

lightdb.model.Collection
See theCollection companion object
abstract class Collection[D <: Document[D]](val collectionName: String, val db: LightDB, val autoCommit: Boolean, val atomic: Boolean) extends AbstractCollection[D], DocumentModel[D]

Attributes

Companion
object
Graph
Supertypes
trait DocumentModel[D]
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Type members

Inherited types

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

Attributes

Inherited from:
DocumentModel

Value members

Concrete methods

override def model: DocumentModel[D]

Attributes

Definition Classes

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[Id[D]]

Attributes

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

Attributes

Inherited from:
AbstractCollection
protected def doDelete(id: Id[D], collection: AbstractCollection[D], get: (Id[D]) => IO[D], delete: (Id[D]) => IO[Unit])(implicit lock: DocLock[D]): IO[Id[D]]

Attributes

Inherited from:
DocumentActionSupport
protected def doSet(doc: D, collection: AbstractCollection[D], set: (Id[D], Json) => IO[Unit])(implicit lock: DocLock[D]): IO[D]

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
AbstractCollection
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

Concrete fields

val atomic: Boolean
val autoCommit: Boolean
val collectionName: String

Inherited fields

Attributes

Inherited from:
DocumentActionSupport

Attributes

Inherited from:
DocumentActionSupport

Attributes

Inherited from:
DocumentActionSupport

Attributes

Inherited from:
DocumentActionSupport

Attributes

Inherited from:
DocumentActionSupport

Attributes

Inherited from:
DocumentActionSupport
val preSet: DocumentActions[D, D]

Attributes

Inherited from:
DocumentActionSupport
val preSetJson: DocumentActions[D, Json]

Attributes

Inherited from:
DocumentActionSupport

Attributes

Inherited from:
DocumentActionSupport

Implicits

Inherited and Abstract implicits

implicit val rw: RW[D]

Attributes

Inherited from:
AbstractCollection