Decoder

ldbc.dsl.codec.Decoder
See theDecoder companion object
trait Decoder[A]

Trait to get the DataType that matches the Scala type information from the ResultSet.

Type parameters

A

Scala types that match SQL DataType

Attributes

Companion
object
Source
Decoder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
Decoder[A]

Members list

Value members

Abstract methods

def decode(resultSet: ResultSet, index: Int): Either[Error, A]

Method to retrieve data from a ResultSet using an Index number.

Method to retrieve data from a ResultSet using an Index number.

Value parameters

index

Index number of the data to be retrieved from the ResultSet.

resultSet

A table of data representing a database result set, which is usually generated by executing a statement that queries the database.

Attributes

Source
Decoder.scala

Concrete methods

def emap[B](f: A => Either[String, B]): Decoder[B]

Map decoded results to a new type B or an error, yielding a Decoder[B].

Map decoded results to a new type B or an error, yielding a Decoder[B].

Attributes

Source
Decoder.scala
def map[B](f: A => B): Decoder[B]

Map decoded results to a new type B, yielding a Decoder[B].

Map decoded results to a new type B, yielding a Decoder[B].

Attributes

Source
Decoder.scala
def offset: Int

Offset value for the next data to be retrieved from the ResultSet.

Offset value for the next data to be retrieved from the ResultSet.

Attributes

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

Lift this Decoder into Option.

Lift this Decoder into Option.

Attributes

Source
Decoder.scala
def product[B](fb: Decoder[B]): Decoder[(A, B)]

Decoder is semigroupal: a pair of decoders make a decoder for a pair.

Decoder is semigroupal: a pair of decoders make a decoder for a pair.

Attributes

Source
Decoder.scala