DocumentModel

lightdb.model.DocumentModel
trait DocumentModel[D <: Document[D]]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

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

Value members

Concrete methods

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

Called after set

Called after set

Attributes

def preDelete(id: Id[D], collection: AbstractCollection[D]): IO[Id[D]]
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

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

Implicits

Implicits

implicit val rw: RW[D]