SqlTypeConversion

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

inline def apply[A](using a: SqlTypeConversion[A]): SqlTypeConversion[A]

Summoner method. Allows the syntax

Summoner method. Allows the syntax

 val intType = SqlTypeConversion[Int]
inline def getElemLabels[A <: Tuple]: List[String]

Used to get a list of names of the values inside of a product

Used to get a list of names of the values inside of a product

def instance[A](sqlType: SqlType): SqlTypeConversion[A]

Factory constructor - allows easier construction of instances. e.g:

Factory constructor - allows easier construction of instances. e.g:

 val instance = SqlTypeConversion.instance[Option[Int]](SqlInt(Nullable))
def instanceStructProduct[T](s: ProductOf[T], elems: List[(String, SqlTypeConversion[_])]): SqlTypeConversion[T]

Creates an SqlStruct for the given Product

Creates an SqlStruct for the given Product

Type Params
T

a Product

Value Params
elems

List of tuples with names and SqlTypeConversions

s

Mirror

inline def summonAll[Names <: Tuple, Types <: Tuple]: List[SqlTypeConversion[_]]

Givens

Givens

Type class derivation for Repeated / Iterable types

Type class derivation for Repeated / Iterable types

type class derivation for Option

type class derivation for Option

given derived

Derives anything asked as SqlTypeConversion. Only products are implemented

Derives anything asked as SqlTypeConversion. Only products are implemented