min

molecule.boilerplate.api.Keywords.min
object min extends min

Attributes

Source
Keywords.scala
Graph
Supertypes
trait min
trait AggrKw
trait Kw
class Object
trait Matchable
class Any
Show all
Self type
min.type

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Keywords.scala

Inherited methods

def apply(i: Int): mins

Minimum n values of attribute.

Apply min(n) to attribute to return Vector of the n smallest values of entities matching the molecule.

Minimum n values of attribute.

Apply min(n) to attribute to return Vector of the n smallest values of entities matching the molecule.

for {
 _ <- Person.age.insert(25, 34, 37, 42, 70)
 _ <- Person.age(min(2)).get.map(_.head ==> List(25, 34))
} yield ()

Attributes

Returns

List[attribute-type]

Note

min/min(n) supports all value types (via comparators).
Can at most return the number of values that match.

Inherited from:
min
Source
Keywords.scala