Encoder

ldbc.connector.codec.Encoder
trait Encoder[A] extends TwiddleSyntax[Encoder]

Encoder of MySQL text-format data from Scala types.

Attributes

Source
Encoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Codec[A]
Self type
Encoder[A]

Members list

Value members

Abstract methods

def encode(a: A): List[Option[Encoded]]

Encode a value of type A, yielding a list of MySQL text-formatted strings, lifted to Option to handle NULL values. Encoding failures raise unrecoverable errors.

Encode a value of type A, yielding a list of MySQL text-formatted strings, lifted to Option to handle NULL values. Encoding failures raise unrecoverable errors.

Attributes

Source
Encoder.scala
def types: List[Type]

Types of encoded fields, in order.

Types of encoded fields, in order.

Attributes

Source
Encoder.scala

Concrete methods

def product[B](fb: Encoder[B]): Encoder[(A, B)]

Encoder is semigroupal: a pair of encoders make a encoder for a pair.

Encoder is semigroupal: a pair of encoders make a encoder for a pair.

Attributes

Source
Encoder.scala

Concrete fields

lazy protected val empty: List[Option[Encoded]]

Attributes

Source
Encoder.scala

Extensions

Inherited extensions

extension [A <: Tuple](fa: Encoder[A])
inline def dropUnits(using Invariant[Encoder]): Encoder[DropUnits[A]]

Attributes

Inherited from:
TwiddleSyntax
Source
Twiddles.scala

Implicits

Inherited implicits

implicit def toTwiddleOpCons[B <: Tuple](fb: Encoder[B]): TwiddleOpCons[Encoder, B]

Attributes

Inherited from:
TwiddleSyntax
Source
Twiddles.scala
implicit def toTwiddleOpTo[A](fa: Encoder[A]): TwiddleOpTo[Encoder, A]

Attributes

Inherited from:
TwiddleSyntax
Source
Twiddles.scala
implicit def toTwiddleOpTwo[B](fb: Encoder[B]): TwiddleOpTwo[Encoder, B]

Attributes

Inherited from:
TwiddleSyntax
Source
Twiddles.scala