SqlDbValueApi

dataprism.platform.sql.value.SqlDbValuesBase.SqlDbValueApi

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait H2Api
trait MySqlApi
trait PostgresApi
trait SqliteApi

Members list

Type members

Types

type BinOp[LHS, RHS, R] = BinOp[LHS, RHS, R]
type CastType[A] = CastType[A]
type Codec[A] = Codec[A]
type Type[A] = Type[A]
type UnaryOp[V, R] = UnaryOp[V, R]

Value members

Concrete methods

inline def Case: CaseCompanion
inline def DbMath: DbMath
inline def Many: Many.type
inline def Nullability: Nullability.type

Extensions

Extensions

extension [A](optVal: DbValue[Option[A]])(using ev: NotGiven[A <:< Option[_]])
inline def filter(f: (DbValue[A]) => DbValue[Boolean]): DbValue[Option[A]]
inline def flatMap[B](f: (DbValue[A]) => DbValue[Option[B]]): DbValue[Option[B]]
inline def getOrElse(other: DbValue[A]): DbValue[A]
inline def isDefined: DbValue[Boolean]
inline def isEmpty: DbValue[Boolean]
inline def map[B](f: (DbValue[A]) => DbValue[B]): DbValue[Option[B]]
inline def orElse(other: DbValue[Option[A]]): DbValue[Option[A]]
inline def unsafeGet: DbValue[A]
extension [T](t: T)(using mr: MapRes[Many, T])
inline def mapManyN[B](f: (mr.K[DbValue]) => DbValue[B]): Many[B]
extension [T](t: T)(using mr: MapRes[Compose2[DbValue, Option], T])
inline def mapNullableN[B](f: (mr.K[DbValue]) => DbValue[B]): DbValue[Option[B]]
extension [A](v: A)
inline def as(tpe: Type[A]): DbValue[A]
inline def asNullable(tpe: Type[A])(using NotGiven[A <:< Option[_]]): DbValue[Option[A]]

Exports

Defined exports

Exported from SqlDbValuesBase
Exported from SqlDbValuesBase
Exported from SqlDbValuesBase
final type SqlIntegral = SqlIntegral
Exported from SqlDbValuesBase
final type SqlLogic = SqlLogic
Exported from SqlDbValuesBase
final type SqlNumeric = SqlNumeric
Exported from SqlDbValuesBase
final type SqlOrdered = SqlOrdered
Exported from SqlDbValuesBase
final type ValueCase0 = ValueCase0
Exported from SqlDbValuesBase
final type ValueCase1 = ValueCase1
Exported from SqlDbValuesBase