Encoder

ldbc.dsl.codec.Encoder
See theEncoder companion object
trait Encoder[A]

Trait for converting Scala types to types that can be handled by PreparedStatement.

Type parameters

A

Types handled in Scala

Attributes

Companion
object
Source
Encoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def encode(value: A): Encoded

Method to convert Scala types to types that can be handled by PreparedStatement.

Method to convert Scala types to types that can be handled by PreparedStatement.

Value parameters

value

Scala types

Attributes

Returns

Types that can be handled by PreparedStatement

Source
Encoder.scala

Concrete methods

def contraemap[B](func: B => Either[String, A]): Encoder[B]

Map outputs to a new type B, yielding an Encoder[B].

Map outputs to a new type B, yielding an Encoder[B].

Attributes

Source
Encoder.scala
def contramap[B](func: B => A): Encoder[B]

Contramap inputs from a new type B, yielding an Encoder[B].

Contramap inputs from a new type B, yielding an Encoder[B].

Attributes

Source
Encoder.scala
def opt: Encoder[Option[A]]

Lift this Decoder into Option.

Lift this Decoder into Option.

Attributes

Source
Encoder.scala
def product[B](that: 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