lightdb.Query
See theQuery companion object
case class Query[Doc <: Document[Doc], Model <: DocumentModel[Doc], V](transaction: CollectionTransaction[Doc, Model], conversion: Conversion[Doc, V], filter: Option[Filter[Doc]], sort: List[Sort], offset: Int, limit: Option[Int], pageSize: Int, countTotal: Boolean, scoreDocs: Boolean, minDocScore: Option[Double], facets: List[FacetQuery[Doc]], optimize: Boolean)
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
Members list
Value members
Concrete methods
def facet(f: Model => FacetField[Doc], path: List[String], childrenLimit: Option[Int], dimsLimit: Option[Int]): Q
def facets(f: Model => List[FacetField[Doc]], childrenLimit: Option[Int], dimsLimit: Option[Int]): Q
def process(establishLock: Boolean, deleteOnNone: Boolean, safeModify: Boolean)(f: Forge[Doc, Option[Doc]]): Unit
Processes through each result record from the query modifying the data in the database.
Processes through each result record from the query modifying the data in the database.
Value parameters
- deleteOnNone
-
whether to delete the record if the function returns None (defaults to true)
- establishLock
-
whether to establish an id lock to avoid concurrent modification (defaults to true)
- f
-
the processing function for records
- safeModify
-
whether to use safe modification. This results in loading the same object twice, but should never risk concurrent modification occurring. (defaults to true)
Attributes
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
In this article