final class AnyOptionExtensionMethods[O <: Rep[_], P] extends AnyVal
Extension methods for Options of single- and multi-column values
- Source
- ExtensionMethods.scala
- Alphabetic
- By Inheritance
- AnyOptionExtensionMethods
- AnyVal
- Any
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AnyOptionExtensionMethods(r: O)
Value Members
- def filter[T](p: (P) => T)(implicit wt: CanBeQueryCondition[T]): O
Return this Option if it is non-empty and applying the predicate p to this Option's value returns true.
Return this Option if it is non-empty and applying the predicate p to this Option's value returns true. Otherwise, return None.
- def flatMap[QO](f: (P) => Rep[Option[QO]]): Rep[Option[QO]]
Return the result of applying
f
to this Option's value if this Option is non-empty, otherwise None. - def flatten[QO](implicit ev: <:<[P, Rep[Option[QO]]]): Rep[Option[QO]]
Flatten a nested Option.
- def fold[B, BP](ifEmpty: B)(f: (P) => B)(implicit shape: Shape[FlatShapeLevel, B, _, BP]): BP
Apply
f
to the value inside this Option, if it is non-empty, otherwise returnifEmpty
. - def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def getOrElse[M, P2 <: P](default: M)(implicit shape: Shape[FlatShapeLevel, M, _, P2], ol: OptionLift[P2, O]): Unconst[P]
Get the value inside this Option, if it is non-empty, otherwise the supplied default.
- def isDefined: Rep[Boolean]
Check if this Option is non-empty.
- def isEmpty: Rep[Boolean]
Check if this Option is empty.
- def map[Q, QO](f: (P) => Q)(implicit ol: OptionLift[Q, Rep[Option[QO]]]): Rep[Option[QO]]
Transform the value inside this Option
- def nonEmpty: Rep[Boolean]
Check if this Option is non-empty.
- val r: O
edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...